import { ComponentType } from 'react'; /** * Simple wrap with no extra logic. * Some component refs are special; wrapping fixes that. */ export declare function withWrap(Comp: ComponentType): (props: any) => JSX.Element; /** * Some components use React.Children.only on children. * Handle that to avoid runtime errors. */ export declare function withSingleChild(Comp: ComponentType, needsConvert?: string[]): (props: any) => JSX.Element; export declare function withSingleFunctionChild(Comp: ComponentType): (props: any) => JSX.Element; /** * moment objects become strings after serialization. * Date components need to accept string values. */ export declare function withMomentProps(Comp: ComponentType, needsConvert?: string[]): (props: any) => JSX.Element;