/**
 * Error Routing
 * Centralizes 404/500 handling and HTML error page rendering.
 */
import type { IRouter } from './Router';
import type { IRequest } from '../http/Request';
import type { IResponse } from '../http/Response';
import type * as http from '../node-singletons/http';
/**
 * Debug routes to always render 404/500 responses.
 */
export declare const registerErrorRoutes: (router: IRouter) => void;
type ErrorRoutingApi = {
    getPublicRoot: () => string;
    registerErrorRoutes: (router: IRouter) => void;
    handleNotFound: (request: IRequest, response: IResponse, requestId?: string) => Promise<void>;
    handleInternalServerErrorWithWrappers: (request: IRequest, response: IResponse, error: unknown, requestId?: string) => Promise<void>;
    handleInternalServerErrorRaw: (res: http.ServerResponse) => void;
};
export declare const ErrorRouting: ErrorRoutingApi;
export default ErrorRouting;
//# sourceMappingURL=error.d.ts.map