import * as React from 'react'; import type { SemanticClassName } from "../_util/classNameUtils"; import { type Breakpoint } from "../_util/responsiveObserver"; import { List, useWatch } from 'rc-field-form'; import type { FormProps as RcFormProps } from 'rc-field-form/lib/Form'; import type { FormRef } from 'rc-field-form/lib/interface'; import type { Options } from 'scroll-into-view-if-needed'; import type { Variant } from '../config-provider'; import type { SizeType } from '../config-provider/SizeContext'; import type { PopoverProps } from '../popover'; import type { FeedbackIcons, FormItemProps } from './FormItem'; import type { FormInstance } from './hooks/useForm'; import useForm from './hooks/useForm'; import type { FormItemConfig, FormLabelAlign } from './interface'; export type RequiredMark = boolean | 'optional' | ((labelNode: React.ReactNode, info: { required: boolean; }) => React.ReactNode); export type FormLayout = 'horizontal' | 'inline' | 'vertical'; export type FormItemLayout = 'horizontal' | 'vertical'; export interface FormProps extends Omit, 'form' | 'className'> { prefixCls?: string; className?: SemanticClassName<{ root?: string; item?: FormItemProps['className']; }>; colon?: boolean; name?: string; layout?: FormLayout; labelAlign?: FormLabelAlign; labelWrap?: boolean; labelWidth?: number | string; form?: FormInstance; feedbackIcons?: FeedbackIcons; size?: SizeType; disabled?: boolean; scrollToFirstError?: Options | boolean; requiredMark?: RequiredMark; variant?: Variant; column?: number | Partial>; errorPopover?: true | Omit; items?: FormItemConfig[]; } declare const Form: ((props: FormProps & { children?: React.ReactNode; } & React.RefAttributes>) => React.ReactElement) & Pick, "displayName">; export { List, useForm, useWatch, type FormInstance }; export default Form;