import { ReactElement, ReactNode } from 'react'; export type NestedKeys = { [Key in keyof ObjectType & (string | number)]: ObjectType[Key] extends object ? `${Key}.${NestedKeys}` : Key; }[keyof ObjectType & (string | number)]; export type ChildrenType = ReactNode | undefined; export type AnyObject = Record; export type RenderFunction = ReturnType | ((data: Arguments) => ReturnType); export type CustomRenderFunction = (data: Arguments) => ReactNode; export type StrictReactElements = ReactElement | null | undefined | Array | null | undefined>;