import Intl, { Messages } from 'intl-ts'; import AsyncValidator from './AsyncValidator'; import Validator from './Validator'; /** * Validate the value with the validator. * * @param value - The value to validate. * @param validator - The validator. * @returns True if the value is validated, false otherwise. */ export declare function validate(value: string, validator: Validator): boolean; /** * Validate the value with the validator. * * @param value - The value to validate. * @param validator - The validator. * @param lang - The internationalization object. * @returns Undefined if the value is validated, an error message otherwise. */ export declare function validate(value: string, validator: Validator, lang: Intl): string | undefined; /** * Validate the value with the async validator. * * @param value - The value to validate. * @param validator - The validator. * @returns True if the value is validated, false otherwise. */ export declare function asyncValidate(value: string, validator: AsyncValidator): Promise; /** * Validate the value with the async validator. * * @param value - The value to validate. * @param validator - The validator. * @param lang - The internationalization object. * @returns Undefined if the value is validated, an error message otherwise. */ export declare function asyncValidate(value: string, validator: AsyncValidator, lang: Intl): Promise;