import * as yup from 'yup'; import { Ref } from 'vue'; export type ValidationErrorsType = Partial>; export type ValidationStateType = { isValid: boolean; errors: ValidationErrorsType; }; export type FormValidationSchemaYupType = Record>; export type UseFormValidationType = { formState: Ref; formValidationSchema: FormValidationSchemaYupType; }; export type UseFormValidationReponseType = { validationErrors: ValidationErrorsType; isValid: Ref; validate: (isReactive?: boolean) => void; stopValidating: () => void; }; export declare const scrollToElementByClass: (elementClass: string, index?: number) => void; export declare const scrollToFirstInvalidElement: (validationErrors: Partial>) => void; export declare const yupValidation: (schema: FormValidationSchemaYupType, formState: Ref) => ValidationStateType; export declare const useFormValidation: ({ formState, formValidationSchema, }: UseFormValidationType) => UseFormValidationReponseType;