import type { FormInstance } from 'ant-design-vue'; import type { NamePath } from 'ant-design-vue/lib/form/interface'; import type { Ref } from 'vue'; export interface ProFormInstanceMethods { getFieldsFormatValue?: (nameList?: true, omitNil?: boolean) => T; getFieldFormatValue?: (nameList?: NamePath) => T; getFieldFormatValueObject?: (nameList?: NamePath) => T; validateFieldsReturnFormatValue?: (nameList?: NamePath[]) => Promise; setFieldsValue: (values: Record) => void; setFieldValue: (name: NamePath, value: any) => void; } export interface ProFormContextProp { formRef: Ref; formModel: Ref>; formMethods?: ProFormInstanceMethods; } export declare function useProvideProFormContext(props: ProFormContextProp): void; export declare function useInjectProFormContext(): ProFormContextProp;