import { ComputedRef, Ref } from "vue"; import { FormProps, FormSchema, FormActionType, FormValidateCallback, ApplyRule } from "../types/form"; import { NForm } from "naive-ui"; interface UseFormActionContext { emit: EmitType; getProps: ComputedRef; getSchema: ComputedRef; formModel: Recordable; defaultValueRef: Ref; formElRef: Ref; formItemElRefs: Array | null>; schemaRef: Ref; handleFormValues: Fn; } export declare function useFormEvents({ emit, getProps, formModel, getSchema, defaultValueRef, formElRef, formItemElRefs, schemaRef, handleFormValues }: UseFormActionContext): { handleSubmit: (e?: Event | undefined) => Promise; clearValidate: () => Promise; validate: (validateCallback?: FormValidateCallback | undefined, shouldRuleBeApplied?: ApplyRule) => Promise; validateFields: (field: string[], options?: { trigger?: string; callback?: FormValidateCallback; shouldRuleBeApplied?: ApplyRule; }) => Promise; getFieldsValue: () => Recordable; updateSchemaByPath: (data: (Partial & { path: string; }) | Array & { path: string; }>) => Promise; resetSchema: (data: Partial | Partial[]) => Promise; appendSchemaByPath: (schema: FormSchema[] | FormSchema, prefixField: string, first?: boolean) => Promise; removeSchemaByPath: (path: string | string[]) => Promise; resetFields: (formModalValue?: Recordable | undefined) => Promise; setFieldsValue: (values: T_1) => Promise; updateFieldsValue: >(values: T_2) => Promise; appendArraySchemaItems: (items: FormSchema[] | FormSchema, path: string, index?: number | undefined) => void; removeArraySchemaItems: (path: string, index?: number | undefined) => Promise; getSchemaByPath: (path: string) => { schemaListVal: FormSchema[]; pathIndex: number; }; }; export {};