/** * Validation recipe interface. */ export interface ValidatorRecipe { code: number; handler: (v?: any, r?: ValidatorRecipe) => boolean | Promise; condition?: (v?: any, r?: ValidatorRecipe) => boolean | Promise; [key: string]: any; } /** * Validator configuration interface. */ export interface ValidatorConfig { context?: any | (() => any); failFast?: boolean | (() => boolean); } /** * Value validator class. */ export declare class Validator { readonly $config: ValidatorConfig; constructor(config?: ValidatorConfig); validate(value: any, recipes?: ValidatorRecipe[]): Promise; } //# sourceMappingURL=validator.d.ts.map