export type WithoutChild = T extends { child?: unknown } ? Omit : T; export type WithoutChildren = T extends { children?: unknown } ? Omit : T; export type WithoutChildrenOrChild = WithoutChildren>; export type WithElementRef = T & { ref?: U | null; };