import Validator, { ValidatorMessage } from './Validator'; /** * A wrapper which adds emptiness to validator allowed values. */ export default class AllowEmpty implements Validator { private validator; readonly params: P; constructor(validator: Validator); validate(value: string): ValidatorMessage | undefined; } /** * Wrap all validators of the given array into an {@link #AllowEmpty}. * * @param validators - The validators to wrap. * @returns The same validator which will allow an empty value. */ export declare function allowEmpty(validators: Validator[]): Validator[];