import { FieldError, FieldErrors, FieldErrorsImpl, Merge } from 'react-hook-form';
import type { FormInputsType } from '../@types';
export declare const sanitizeErrors: (errors: FieldErrors<FormInputsType> | {
    [k: string]: string | FieldError | Merge<FieldError, FieldErrorsImpl<any>>;
}) => {
    [k: string]: any;
};
export declare const unpackErrorMessage: (errors: FieldErrors<FormInputsType>, name: string) => string | boolean | FieldError | Merge<FieldError, FieldErrorsImpl<any>>;
