interface Matcher { (input: Input): boolean; } interface Matcher { (input: Input, fields: Fields): boolean; } interface StringMapper { (input: string): any; } declare type ErrorContent = string | StringMapper; export declare function lengthMoreThan(length: number): (input: { length: number; }) => boolean; export declare function lengthLessThan(length: number): (input: { length: number; }) => boolean; export declare function isNumericString(input: string): boolean; export declare function isEmpty(input: any): boolean; export declare function isEmptyString(input: string): boolean; export declare function not(matcher: Matcher): Matcher; export declare function validateNested(validatorDictionary: any): (input: Input, fields: Fields) => any; export declare function validateList(validatorDictionary: any): (input: Input[], fields: Fields) => any[] | undefined; export declare function validate(matcher: Matcher, errorContent: ErrorContent): (input: Input) => ErrorContent | void; declare const validators: { lengthMoreThan(length: number, errorContent: ErrorContent): (input: { length: number; }) => string | void | StringMapper; lengthLessThan(length: number, errorContent: ErrorContent): (input: { length: number; }) => string | void | StringMapper; numericString(errorContent: ErrorContent): (input: string) => string | void | StringMapper; requiredString(errorContent: ErrorContent): (input: string) => string | void | StringMapper; nonNumericString(errorContent: ErrorContent): (input: string) => string | void | StringMapper; required(errorContent: ErrorContent): (input: any) => string | void | StringMapper; }; export default validators;