/** * key-value pairs of validation rules. * Input values not listed in this object will be ignored. */ export interface ValidatorRules { [key: string]: [string, any, ((input: any) => boolean) | string | RegExp | null, ((input: any) => any) | string | null]; } /** * Input value validator and sanitizer. */ export declare class Validator { private rules; constructor(rules: ValidatorRules); validate(input: any): { result: any; errors: string[]; }; }