/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import { List, useWatch } from '../../../../@ecom/rc-field-form'; import type { FormProps as RcFormProps } from '../../../../@ecom/rc-field-form/es/Form'; import * as React from 'react'; import type { Options } from 'scroll-into-view-if-needed'; import type { SizeType } from '../../config-provider/component/SizeContext'; import type { ColProps } from '../../grid/component/col'; import useForm, { FormInstance } from './hooks/useForm'; import type { FormLabelAlign } from './interface'; import { TooltipProps } from '../../tooltip/ToolTip'; export declare type RequiredMark = boolean | 'optional'; export declare type FormLayout = 'horizontal' | 'inline' | 'vertical'; export interface FormProps extends Omit, 'form'> { prefixCls?: string; colon?: boolean; name?: string; layout?: FormLayout; labelAlign?: FormLabelAlign; labelWrap?: boolean; labelCol?: ColProps; wrapperCol?: ColProps; form?: FormInstance; size?: SizeType; disabled?: boolean; scrollToFirstError?: Options | boolean; requiredMark?: RequiredMark; hideRequiredMark?: boolean; isTooltipError?: boolean; tooltipMessageProps?: Omit; } declare const Form: (props: FormProps & { ref?: ((instance: FormInstance | null) => void) | React.RefObject> | null | undefined; }) => React.ReactElement React.ReactElement | null) | (new (props: any) => React.Component)>; export { useForm, List, FormInstance, useWatch }; export default Form;