import { FormInstance } from 'antd'; import { NamePath } from 'antd/es/form/interface'; import type { ValuedNotifyInfo } from '@rc-component/form/es/interface'; export type ModifiedFormInstanceType = FormInstance & { isModified?: boolean; /** 默认清空设置值的报错状态 */ setFieldValue: (name: NamePath, value: any, info?: ValuedNotifyInfo) => void; formKey?: string; _init?: boolean; __INTERNAL_CONFIG__?: { fields?: any[]; stopOnFirstError?: boolean; [key: string]: any; }; }; export interface FormInstanceOption { scrollToError?: boolean; optimize?: boolean; formKey?: string; source?: string; } export declare const useForm: (originForm?: ModifiedFormInstanceType | FormInstanceOption, options?: FormInstanceOption) => [ModifiedFormInstanceType];