import "../index.d-BiUz7kM_.cjs"; import { AnyRouter } from "../unstable-core-do-not-import.d-Dh9CT5RO.cjs"; import "../index.d-CvZXeEyR.cjs"; import { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions, NodeHTTPRequest, NodeHTTPResponse } from "../index.d-fBAdSX6g.cjs"; import http from "http"; import * as http2 from "http2"; //#region src/adapters/standalone.d.ts type StandaloneHandlerOptions = NodeHTTPHandlerOptions & { /** * The base path to handle requests for. * This will be sliced from the beginning of the request path * (Do not miss including the trailing slash) * @default '/' * @example '/trpc/' * @example '/trpc/api/' */ basePath?: string; }; type CreateHTTPHandlerOptions = StandaloneHandlerOptions; type CreateHTTPContextOptions = NodeHTTPCreateContextFnOptions; /** * @internal */ declare function createHTTPHandler(opts: CreateHTTPHandlerOptions): http.RequestListener; declare function createHTTPServer(opts: CreateHTTPHandlerOptions): http.Server; type CreateHTTP2HandlerOptions = StandaloneHandlerOptions; type CreateHTTP2ContextOptions = NodeHTTPCreateContextFnOptions; declare function createHTTP2Handler(opts: CreateHTTP2HandlerOptions): (req: http2.Http2ServerRequest, res: http2.Http2ServerResponse) => void; //#endregion export { CreateHTTP2ContextOptions, CreateHTTP2HandlerOptions, CreateHTTPContextOptions, CreateHTTPHandlerOptions, createHTTP2Handler, createHTTPHandler, createHTTPServer }; //# sourceMappingURL=standalone.d.cts.map