import type { ServeOptions, Server, WebSocketUpgradeResponse } from "../../base.js"; import type { BunNamespace, BunServer as NativeBunServer } from "./types.js"; import { type BunWebSocketData } from "./websocket-adapter.js"; type BunRequestHandler = (request: Request) => Promise | Response | WebSocketUpgradeResponse; type BoundNativeBunServer = NativeBunServer & { readonly hostname: string; readonly port: number; }; export declare class BunServer implements Server { private readonly server; private readonly signal?; private stopped; private stopPromise; private abortListener; constructor(server: BoundNativeBunServer, signal?: AbortSignal | undefined); stop(): Promise; get addr(): { hostname: string; port: number; }; private removeAbortListener; } export declare function createBunServerWithRuntime(runtime: BunNamespace, handler: BunRequestHandler, options?: ServeOptions): Promise; export declare function createBunServer(handler: BunRequestHandler, options?: ServeOptions): Promise; export {}; //# sourceMappingURL=http-server.d.ts.map