import { Request, Response, NextFunction } from 'express';
export declare class AppError extends Error {
    code: string;
    message: string;
    statusCode: number;
    details?: Record<string, any> | undefined;
    constructor(code: string, message: string, statusCode?: number, details?: Record<string, any> | undefined);
}
export declare function errorHandler(err: Error, req: Request, res: Response, next: NextFunction): void;
export declare function notFoundHandler(req: Request, res: Response): void;
//# sourceMappingURL=errorHandler.d.ts.map