cmux/node_modules/srvx/dist/adapters/service-worker.d.mts
2026-01-29 17:36:26 -08:00

9 lines
No EOL
490 B
TypeScript

import { Server, ServerOptions, ServerRequest } from "../_chunks/types-BtByT9ny.mjs";
//#region src/adapters/service-worker.d.ts
declare const FastURL: typeof globalThis.URL;
declare const FastResponse: typeof globalThis.Response;
type ServiceWorkerHandler = (request: ServerRequest, event: FetchEvent) => Response | Promise<Response>;
declare function serve(options: ServerOptions): Server<ServiceWorkerHandler>;
//#endregion
export { FastResponse, FastURL, ServiceWorkerHandler, serve };