site-panzai/node_modules/srvx/dist/adapters/bun.d.mts

20 lines
790 B
TypeScript
Raw Permalink Normal View History

2026-11-13 13:57:04 +01:00
import { BunFetchHandler, Server, ServerOptions } from "../_chunks/types.mjs";
import { FastURL } from "../_chunks/_url.mjs";
import * as bun from "bun";
declare const FastResponse: typeof globalThis.Response;
declare function serve(options: ServerOptions): BunServer;
declare class BunServer implements Server<BunFetchHandler> {
#private;
readonly runtime = "bun";
readonly options: Server["options"];
readonly bun: Server["bun"];
readonly serveOptions: bun.Serve.Options<any> | undefined;
readonly fetch: BunFetchHandler;
readonly waitUntil?: Server["waitUntil"];
constructor(options: ServerOptions);
serve(): Promise<this>;
get url(): string | undefined;
ready(): Promise<this>;
close(closeAll?: boolean): Promise<void>;
}
export { FastResponse, FastURL, serve };