UNPKG

849 BTypeScriptView Raw
1import { Rule, RuleObject, RuleRender } from 'rc-field-form/lib/interface';
2import InternalForm, { useForm, FormInstance, FormProps } from './Form';
3import Item, { FormItemProps } from './FormItem';
4import ErrorList, { ErrorListProps } from './ErrorList';
5import List, { FormListProps } from './FormList';
6import { FormProvider } from './context';
7declare type InternalFormType = typeof InternalForm;
8interface FormInterface extends InternalFormType {
9 useForm: typeof useForm;
10 Item: typeof Item;
11 List: typeof List;
12 ErrorList: typeof ErrorList;
13 Provider: typeof FormProvider;
14 /** @deprecated Only for warning usage. Do not use. */
15 create: () => void;
16}
17declare const Form: FormInterface;
18export { FormInstance, FormProps, FormItemProps, ErrorListProps, Rule, RuleObject, RuleRender, FormListProps, };
19export default Form;