import React from 'react'; import { Form as AntForm } from 'antd'; import type { FormProps as AntFormProps } from 'antd/es/form'; import Item from './FormItem'; import { useFormItemChildFeedback } from './FormItemChildFeedback'; import type { FormReValidateMode, FormValidateMode } from './validateMode'; export * from 'antd/es/form'; export type { FormItemProps } from './FormItem'; export type { FormReValidateMode, FormValidateMode, OBFormConfig } from './validateMode'; export type FormProps = AntFormProps & { validateMode?: FormValidateMode; reValidateMode?: FormReValidateMode; }; /** Ref exposed by the underlying antd Form: the form instance plus the native `
` element. */ type FormRef = React.ComponentRef; type FormComponent = (props: React.PropsWithChildren> & React.RefAttributes) => React.ReactElement; type CompoundedComponent = FormComponent & Pick & { Item: typeof Item; List: typeof AntForm.List; ErrorList: typeof AntForm.ErrorList; useForm: typeof AntForm.useForm; useFormInstance: typeof AntForm.useFormInstance; useWatch: typeof AntForm.useWatch; useFormItemChildFeedback: typeof useFormItemChildFeedback; Provider: typeof AntForm.Provider; create: typeof AntForm.create; }; declare const Form: CompoundedComponent; export default Form;