/** * This class is used to create a custom error. * Purpose of custom error is to provide consistent error response to application depends on it. * Class will define a structure which will be extended by other Userdefined errors. */ export declare abstract class CustomError extends Error { abstract statusCode: number; constructor(); abstract serializeError(): { status: string; statusCode: number; data: { message: string; field?: string; }[]; }; }