import * as React from 'react'; import type { SemanticClassName } from "../../_util/classNameUtils"; import type { Breakpoint } from "../../_util/responsiveObserver"; import type { FieldProps } from 'rc-field-form/lib/Field'; import type { FormInstance, FormItemLayout } from '../Form'; import useFormItemStatus from '../hooks/useFormItemStatus'; import type { ItemInputProps } from './ItemInput'; import type { ItemLabelProps, LabelTooltipType } from './ItemLabel'; declare const _ValidateStatuses: readonly ["success", "warning", "error", "validating", ""]; export type ValidateStatus = (typeof _ValidateStatuses)[number]; type RenderChildren = (form: FormInstance) => React.ReactNode; type RcFieldProps = Omit, 'children'>; type ChildrenType = RenderChildren | React.ReactNode; export type FeedbackIcons = (itemStatus: { status: ValidateStatus; errors?: React.ReactNode[]; warnings?: React.ReactNode[]; }) => { [key in ValidateStatus]?: React.ReactNode; }; export interface FormItemProps extends Omit, ItemInputProps, RcFieldProps { prefixCls?: string; noStyle?: boolean; style?: React.CSSProperties; className?: SemanticClassName<{ label?: string; field?: string; }>; children?: ChildrenType; id?: string; hasFeedback?: boolean | { icons: FeedbackIcons; }; validateStatus?: ValidateStatus; required?: boolean; hidden?: boolean; initialValue?: any; messageVariables?: Record; tooltip?: LabelTooltipType; layout?: FormItemLayout; span?: number | Partial>; } declare function InternalFormItem(props: FormItemProps): React.ReactElement; type InternalFormItemType = typeof InternalFormItem; type CompoundedComponent = InternalFormItemType & { useStatus: typeof useFormItemStatus; }; declare const FormItem: CompoundedComponent; export default FormItem;