UNPKG

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