export declare type Test = (...v: any[]) => boolean; export declare type AsyncTest = (...v: any[]) => Promise; export declare type SchemaValidator = (v?: any) => SchemaValidationResult; export declare type ValueValidator = (...v: any[]) => ValidationResult; export declare type Validator = ValueValidator | SchemaValidator; export declare type AsyncValidator = (...v: any[]) => Promise; export declare type Messager = (v?: any, a?: any[]) => string; export declare type Tester = (t: Test, m: Messager) => ValueValidator; export declare type AsyncTester = (t: AsyncTest, m: Messager) => AsyncValidator; export declare type ResultReducer = (p: any, e: ValidationResult) => any; export declare type SchemaValidationResult = { [P in keyof T]: T[P] extends object ? SchemaValidationResult : ValidationResult; }; export declare type ValidationResult = { error: boolean; message: any; preconditionCheckFailed?: boolean; }; export declare const tester: Tester; export declare const combineWithReducer: (t: ValueValidator[], r: ResultReducer, i: any) => (...as: any[]) => ValidationResult; export declare const defaultReducer: ResultReducer; export declare const combine: (...t: ValueValidator[]) => (...args: any[]) => ValidationResult;