/** * purpose of this class is to parse errors thrown by 'express-validator' package and convert it into consistent error message. * */ import { ValidationError } from "express-validator"; import { CustomError } from "./custom-error"; export declare class RequestValidationError extends CustomError { private errors; statusCode: number; constructor(errors: ValidationError[]); serializeError(): { status: string; statusCode: number; data: { message: any; field: string; }[]; }; }