import type { ComputedRef, Ref } from 'vue'; import type { FormProps, FormSchema, FormActionType } from '../types/form'; import type { NamePath } from 'ant-design-vue/lib/form/interface'; interface UseFormActionContext { emit: EmitType; getProps: ComputedRef; getSchema: ComputedRef; formModel: Recordable; defaultValueRef: Ref; formElRef: Ref; schemaRef: Ref; handleFormValues: Fn; } export declare function useFormEvents({ emit, getProps, formModel, getSchema, defaultValueRef, formElRef, schemaRef, handleFormValues, }: UseFormActionContext): { handleSubmit: (e?: Event) => Promise; clearValidate: (name?: string | string[]) => Promise; validate: (nameList?: NamePath[] | undefined) => Promise; validateFields: (nameList?: NamePath[] | undefined) => Promise; getFieldsValue: () => Recordable; updateSchema: (data: Partial | Partial[]) => Promise; resetSchema: (data: Partial | Partial[]) => Promise; appendSchemaByField: (schema: FormSchema, prefixField?: string, first?: boolean) => Promise; removeSchemaByFiled: (fields: string | string[]) => Promise; resetFields: () => Promise; setFieldsValue: (values: Recordable) => Promise; scrollToField: (name: NamePath, options?: ScrollOptions | undefined) => Promise; }; export {};