import { ChangeEvent, FormEvent } from 'react'; declare type Validator = (value: any) => string | false; export interface Validators { [key: string]: Validator; } export interface Values { [key: string]: any; } interface Errors { [key: string]: string; } interface Arguments { defaultValues: Values; validators?: Validators; callback?: () => void; } interface ReturnObject { values: Values; errors: Errors; isValid: boolean; isDirty: boolean; isSubmitting: boolean; validateAll: () => void; onChange: (e: ChangeEvent) => void; onSubmit: (e: FormEvent) => void; } export declare function useValidationForm({ defaultValues, validators, callback, }: Arguments): ReturnObject; export {};