import { HttpRequest } from './httpInterface'; export type ValidatorOutput = { result: boolean; error?: Error; }; export interface RequestValidatorInterface { validate(request: HttpRequest): ValidatorOutput; } type ValidatorGeneric = { required?: string | string[]; optional?: string | string[]; }; export type ValidatorInput = { body?: ValidatorGeneric; params?: ValidatorGeneric; query?: ValidatorGeneric; headers?: ValidatorGeneric; }; export {};