import { DeepPartial } from '@maz-ui/utils/ts-helpers/DeepPartial'; import { MaybeRefOrGetter, Ref } from 'vue'; import { BaseFormPayload, ExtractModelKey, FieldsStates, FormSchema, FormValidatorOptions, InferOutputSchemaFormValidator, InferSchemaFormValidator, ValidationIssues } from './useFormValidator/types'; import { scrollToError } from './useFormValidator/dom-events'; export declare function useFormValidator>>({ schema, defaultValues, model, options }: { schema: TSchema; defaultValues?: MaybeRefOrGetter> | undefined | null>; model?: Ref> | undefined | null>; options?: FormValidatorOptions>; }): { identifier: string | symbol; isDirty: import('vue').ComputedRef; isSubmitting: Ref; isSubmitted: Ref; isValid: import('vue').ComputedRef; errors: import('vue').ComputedRef>>, ValidationIssues>>; model: Ref, InferSchemaFormValidator>; fieldsStates: Ref, ExtractModelKey>>>, FieldsStates, ExtractModelKey>>>>; validateForm: (setErrors?: boolean) => Promise; scrollToError: typeof scrollToError; resetForm: () => void; handleSubmit: ) => Promise>> | ReturnType>(successCallback: Func, enableScrollOrSelector?: FormValidatorOptions["scrollToError"], options?: { onError?: (payload: { model: InferSchemaFormValidator; errorMessages: Record>>, string | undefined>; errors: Record>>, ValidationIssues>; }) => void; resetOnSuccess?: boolean; }) => (event?: Event) => Promise | undefined>; errorMessages: import('vue').ComputedRef>>, string | undefined>>; };