/** * Server-wide error handler for the MastraCode web surface. * * Installed as `server.onError`, which the deployer applies to the top-level * Hono app AND the custom-route sub-app (`/web/*`, `/auth/*`) — without it, * unexpected route errors surface as an opaque `Internal Server Error` with no * server-side trace. */ import type { Context } from 'hono'; /** Handle a route error: log full detail server-side, return structured JSON. */ export declare function handleServerError(err: Error, c: Context): Response; //# sourceMappingURL=server-error.d.ts.map