/** * Build the bounded, stack-free 500 response for a request handler failure, * a real message (for operator diagnosis) with no source snippets or stack * frames leaked onto the wire, and the failure logged with method/path. */ export declare function createHostRequestFailureResponse(surface: string, request: Request, error: unknown): Response; /** * Build a `Bun.serve`-shaped factory that wraps only the `fetch` callback in * the failure boundary above. `surface` names the host in log lines and * failure responses (e.g. "Daemon HTTP listener", "Control-plane listener") so a * multi-listener process can tell which one failed. */ export declare function createSafeHostServeFactory(surface: string, baseServeFactory?: typeof Bun.serve): typeof Bun.serve; //# sourceMappingURL=safe-serve.d.ts.map