import type { HttpHeaderValue } from "../response/http-response"; import type { HttpContext } from "../server/http-context"; export interface SerializedHttpError { status: number; headers?: Record; body: unknown; } export type HttpExceptionHandler = (error: unknown, _ctx: HttpContext) => SerializedHttpError; /** * Default error normalization: * - preserves HttpException metadata * - maps URI parsing errors to 400 * - hides unknown errors behind 500 */ export declare const defaultExceptionHandler: HttpExceptionHandler;