import type { NextFunction, Request, Response } from 'express-serve-static-core'; import type { ExpressError } from '../Model/index.ts'; /** * Express error handler that logs the error and sends a JSON response with the error message and status code. * @param error The Express error to handle. * @param req The incoming request. * @param res The outgoing response. * @param next The next middleware function. */ export declare const errorToJsonHandler: (error: ExpressError, req: Request, res: Response, next: NextFunction) => void; //# sourceMappingURL=errorToJsonHandler.d.ts.map