import type { AppOptions, RequestContext } from "../types/index.js"; /** * Handle 500 Internal Server Error responses. * Uses custom onError handler if provided, otherwise returns default JSON response. * * In production (`NODE_ENV=production`), the default handler returns a generic * "Internal Server Error" message to avoid leaking sensitive information. * In development and test, the full error message is included. */ export declare function handleError(ctx: RequestContext, error: unknown, options?: AppOptions): Promise; //# sourceMappingURL=error.d.ts.map