elearning/Frontend-Learner/node_modules/srvx/dist/adapters/deno.d.mts
2026-01-13 10:48:02 +07:00

21 lines
No EOL
814 B
TypeScript

import { f as Server, h as ServerOptions, r as DenoFetchHandler } from "../_chunks/types.mjs";
import { t as FastURL } from "../_chunks/_url.mjs";
//#region src/adapters/deno.d.ts
declare const FastResponse: typeof globalThis.Response;
declare function serve(options: ServerOptions): DenoServer;
declare class DenoServer implements Server<DenoFetchHandler> {
#private;
readonly runtime = "deno";
readonly options: Server["options"];
readonly deno: Server["deno"];
readonly serveOptions: Deno.ServeTcpOptions | (Deno.ServeTcpOptions & Deno.TlsCertifiedKeyPem);
readonly fetch: DenoFetchHandler;
constructor(options: ServerOptions);
serve(): Promise<this>;
get url(): string | undefined;
ready(): Promise<Server>;
close(): Promise<void>;
}
//#endregion
export { FastResponse, FastURL, serve };