import type { Rule, RuleObject, RuleRender } from '@amazebird/form'; import { FormProvider } from './context'; import ErrorList from './ErrorList'; import type ParentField from '@amazebird/form'; import InternalForm, { useForm, useWatch } from './Form'; import Item from './FormItem'; import List from './FormList'; import type { FormInstance } from './Form'; import type { ErrorListProps } from './ErrorList'; import type { FormProps } from './Form'; import type { FormItemProps } from './FormItem'; import type { FormListFieldData, FormListOperation, FormListProps } from './FormList'; import useFormInstance from './hooks/useFormInstance'; type InternalFormType = typeof InternalForm; interface FormInterface extends InternalFormType { useForm: typeof useForm; useFormInstance: typeof useFormInstance; useWatch: typeof useWatch; Item: typeof Item; List: typeof List; ParentField: typeof ParentField; ErrorList: typeof ErrorList; Provider: typeof FormProvider; /** @deprecated Only for warning usage. Do not use. */ create: () => void; } declare const Form: FormInterface; export { FormInstance, FormProps, FormItemProps, ErrorListProps, Rule, RuleObject, RuleRender, FormListProps, FormListFieldData, FormListOperation, Form, }; export default Form;