import { HttpResponse } from "../http/index.js"; /** * Represents an error handler which converts any error into a response. * * Any error handler must be infallible and never throw an error by itself, as * this would short-circuit any upper middleware and prevent them from running. */ export type ErrorHandler = (error: unknown) => HttpResponse; /** * The default error handler which converts any error into a response. */ export declare const defaultErrorHandler: (error: unknown) => HttpResponse;