import { HttpError } from './errors'; import { ResponseTuple } from '../types'; export interface ValidatorConfig { value?: any; isValid?: (t: T) => boolean | Promise; response?: ResponseTuple | HttpError; } export type Validation = Record>; export interface ValidationError extends HttpError { name: 'ValidationError'; } export declare function isValidationError(error: unknown): error is ValidationError; export declare class Validator { private prefix; private _validators; constructor(prefix?: string); add(config: Validation): void; verify(t: T): Promise; }