import React from 'react'; import PropTypes from 'prop-types'; import { BaseFormAdapter } from '@douyinfe/semi-foundation/lib/es/form/foundation'; import BaseComponent from '../_base/baseComponent'; import Section from './section'; import Label from './label'; import ErrorMessage from './errorMessage'; import FormInputGroup from './group'; import '@douyinfe/semi-foundation/lib/es/form/form.css'; import { BaseFormProps, FormApi } from './interface'; import useForm from './hooks/useForm'; interface BaseFormState { formId: string; } declare class Form = any> extends BaseComponent, BaseFormState> { static propTypes: { 'aria-label': PropTypes.Requireable; onSubmit: PropTypes.Requireable<(...args: any[]) => any>; onSubmitFail: PropTypes.Requireable<(...args: any[]) => any>; onChange: PropTypes.Requireable<(...args: any[]) => any>; onReset: PropTypes.Requireable<(...args: any[]) => any>; onValueChange: PropTypes.Requireable<(...args: any[]) => any>; autoScrollToError: PropTypes.Requireable>; allowEmpty: PropTypes.Requireable; className: PropTypes.Requireable; component: PropTypes.Requireable any)>>; disabled: PropTypes.Requireable; extraTextPosition: PropTypes.Requireable; getFormApi: PropTypes.Requireable<(...args: any[]) => any>; initValues: PropTypes.Requireable; validateFields: PropTypes.Requireable<(...args: any[]) => any>; validator: PropTypes.Requireable<(...args: any[]) => any>; layout: PropTypes.Requireable; labelPosition: PropTypes.Requireable; labelWidth: PropTypes.Requireable>; labelAlign: PropTypes.Requireable; labelCol: PropTypes.Requireable; render: PropTypes.Requireable<(...args: any[]) => any>; style: PropTypes.Requireable; showValidateIcon: PropTypes.Requireable; stopValidateWithError: PropTypes.Requireable; stopPropagation: PropTypes.Requireable; reset: PropTypes.Requireable; }>>; id: PropTypes.Requireable; wrapperCol: PropTypes.Requireable; trigger: PropTypes.Requireable>; form: PropTypes.Requireable; }; static defaultProps: { onChange: (...args: any[]) => void; onSubmitFail: (...args: any[]) => void; onSubmit: (...args: any[]) => void; onReset: (...args: any[]) => void; onValueChange: (...args: any[]) => void; onErrorChange: (...args: any[]) => void; layout: string; labelPosition: string; allowEmpty: boolean; autoScrollToError: boolean; showValidateIcon: boolean; }; static Input: React.ComponentType & React.RefAttributes, keyof import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & React.RefAttributes>; static TextArea: React.ComponentType & React.RefAttributes, keyof import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & React.RefAttributes>; static InputNumber: React.ComponentType, keyof import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & React.RefAttributes>; static Select: React.ComponentType void; multiple?: boolean; filter?: boolean | ((inpueValue: string, option: import("../select").OptionProps) => boolean); max?: number; maxTagCount?: number; maxHeight?: string | number; style?: React.CSSProperties; className?: string; size?: import("../select").SelectSize; disabled?: boolean; emptyContent?: React.ReactNode; expandRestTagsOnClick?: boolean; onDropdownVisibleChange?: (visible: boolean) => void; zIndex?: number; position?: "left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver"; onSearch?: (value: string, event: React.KeyboardEvent | React.MouseEvent) => void; dropdownClassName?: string; dropdownStyle?: React.CSSProperties; dropdownMargin?: number | { marginLeft: number; marginTop: number; marginRight: number; marginBottom: number; }; ellipsisTrigger?: boolean; outerTopSlot?: React.ReactNode; innerTopSlot?: React.ReactNode; outerBottomSlot?: React.ReactNode; innerBottomSlot?: React.ReactNode; optionList?: import("../select").OptionProps[]; dropdownMatchSelectWidth?: boolean; loading?: boolean; defaultOpen?: boolean; validateStatus?: "default" | "error" | "warning" | "success"; defaultActiveFirstOption?: boolean; onChangeWithObject?: boolean; suffix?: React.ReactNode; searchPosition?: string; searchPlaceholder?: string; prefix?: React.ReactNode; insetLabel?: React.ReactNode; insetLabelId?: string; inputProps?: Omit) => void; onChange?: (value: string, e: React.ChangeEvent) => void; }>; showClear?: boolean; showArrow?: boolean; renderSelectedItem?: import("../select").RenderSelectedItemFn; renderCreateItem?: (inputValue: string | number, focus: boolean, style?: React.CSSProperties) => React.ReactNode; renderOptionItem?: (props: import("../select").optionRenderProps) => React.ReactNode; onMouseEnter?: (e: React.MouseEvent) => any; onMouseLeave?: (e: React.MouseEvent) => any; clickToHide?: boolean; onExceed?: (option: import("../select").OptionProps) => void; onCreate?: (option: import("../select").OptionProps) => void; remote?: boolean; onDeselect?: (value: any[] | import("../select").BasicSelectValue, option: Record) => void; onSelect?: (value: any[] | import("../select").BasicSelectValue, option: Record) => void; allowCreate?: boolean; triggerRender?: (props: import("../select").TriggerRenderProps) => React.ReactNode; onClear?: () => void; virtualize?: import("../select").virtualListProps; onFocus?: (e: React.FocusEvent) => void; onBlur?: (e: React.FocusEvent) => void; onListScroll?: (e: React.UIEvent) => void; children?: React.ReactNode; preventScroll?: boolean; showRestTagsPopover?: boolean; restTagsPopoverProps?: import("../popover").PopoverProps; } & Pick & import("./interface").CommonFieldProps, keyof import("./interface").CommonexcludeType>> & import("./interface").SelectStatic; static Checkbox: React.ComponentType & import("../checkbox").CheckboxProps & import("./interface").RCIncludeType>; static CheckboxGroup: React.ComponentType & import("./interface").CommonFieldProps & React.RefAttributes>; static Radio: React.ComponentType & import("../radio").RadioProps & import("./interface").RCIncludeType>; static RadioGroup: React.ComponentType & import("./interface").CommonFieldProps & React.RefAttributes>; static DatePicker: React.ComponentType, keyof import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & React.RefAttributes>; static TimePicker: React.ComponentType & import("./interface").CommonFieldProps & React.RefAttributes>; static Switch: React.ComponentType & import("./interface").CommonFieldProps & React.RefAttributes>; static Slider: React.ComponentType & import("./interface").CommonFieldProps & React.RefAttributes>; static TreeSelect: React.ComponentType & import("./interface").CommonFieldProps & React.RefAttributes>; static Cascader: React.ComponentType & import("./interface").CommonFieldProps & React.RefAttributes>; static Rating: React.ComponentType & import("./interface").CommonFieldProps & React.RefAttributes>; static AutoComplete: React.ComponentType, keyof import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & React.RefAttributes>; static Upload: React.ComponentType & import("./interface").CommonFieldProps & React.RefAttributes>; static TagInput: React.ComponentType & import("./interface").CommonFieldProps & React.RefAttributes>; static PinCode: React.ComponentType & import("./interface").CommonFieldProps & React.RefAttributes>; static Slot: (props: import("./slot").SlotProps) => React.JSX.Element; static ErrorMessage: typeof ErrorMessage; static InputGroup: typeof FormInputGroup; static Label: typeof Label; static Section: typeof Section; static useForm: typeof useForm; formApi: FormApi; constructor(props: BaseFormProps); componentDidMount(): void; componentWillUnmount(): void; get adapter(): BaseFormAdapter, BaseFormState, Values>; get content(): React.ReactNode; submit(e: React.FormEvent): void; reset(e: React.FormEvent): void; render(): React.JSX.Element; } export default Form;