import React from 'react'; import { Form } from 'antd'; import { useFormContext } from './FormContext'; import { useFormWatchList, useChildItemFun, getChildItemFun } from './Watch'; import { FormSubscribeProvider, useFormSubscribeProvider, useSubscribeReginsterId, useSubscribe } from './Collect'; import useFormItemHide from './Hide/store'; import HideItem from './Hide/index'; import { ItemWatch, FormColWatchItem } from './Item'; import './index.css'; import { FormInstance } from 'antd/lib/form/hooks/useForm'; import { ItemChildType, ItemChildAttr, SimpleFormConfigProps, SimpleFormProps } from './interface'; import FormColItem, { Cols } from './FormItem'; export type { ItemChildType, ItemChildAttr, SimpleFormConfigProps, SimpleFormProps, }; declare const SimpleFormWarp: (props: React.PropsWithChildren> & { ref?: React.Ref>; }) => React.ReactElement; type InternalFormType = typeof SimpleFormWarp; interface FormInterface extends InternalFormType { useForm: typeof Form.useForm; Item: typeof Form.Item; ColItem: typeof FormColItem; ColWatchItem: typeof FormColWatchItem; Cols: typeof Cols; List: typeof Form.List; Provider: typeof Form.Provider; ItemWatch: typeof ItemWatch; useFormContext: typeof useFormContext; useFormWatchList: typeof useFormWatchList; useChildItemFun: typeof useChildItemFun; getChildItemFun: typeof getChildItemFun; useFormItemHide: typeof useFormItemHide; HideItem: typeof HideItem; useSubscribe: typeof useSubscribe; FormSubscribeProvider: typeof FormSubscribeProvider; useFormSubscribeProvider: typeof useFormSubscribeProvider; useSubscribeReginsterId: typeof useSubscribeReginsterId; } declare const SimpleForm: FormInterface; export default SimpleForm;