import { ComponentType } from 'react'; import 'dayjs/locale/zh-cn'; /** * 简单包装,不做任何处理 * 部分组件ref比较特殊,包一层会解决这个问题 */ export declare function withWrap(Comp: ComponentType): import("react").ForwardRefExoticComponent & import("react").RefAttributes>; /** * 某些组件会用React.Children.only检查子节点 * 需要做处理避免报错 */ export declare function withSingleChild(Comp: ComponentType, needsConvert?: string[]): (props: any) => JSX.Element; export declare function withSingleFunctionChild(Comp: ComponentType): (props: any) => JSX.Element; /** * moment对象在序列化后会被转为字符串 * 需要让日期类组件支持接受字符串值 */ export declare function withMomentProps(Comp: ComponentType, needsConvert?: string[]): import("react").ForwardRefExoticComponent & import("react").RefAttributes>; /** * 组件状态支持 * - `hidden`:当状态为"隐藏"时渲染为`` * - `readOnly`:当状态为"只读"时渲染为`
{value}
` */ export declare function withState(Comp: ComponentType): import("react").ForwardRefExoticComponent & import("react").RefAttributes>; /** * 主题色替换 */ export declare function withTheme(Comp: ComponentType): (props: any) => JSX.Element;