import { IncomingMessage, Server, ServerResponse } from 'http'; import type { Container } from '@celljs/core'; export type RequestListener = (req: IncomingMessage, res: ServerResponse) => void; export declare namespace HttpServerUtil { /** * The Node `(req, res)` handler of the application: each request runs through the {@link Dispatcher} * in its own {@link Context}. Requests of another server (a dev server, a test, a serverless proxy) * get the members of {@link HttpRequest} first. */ function createHandler(container: Pick): RequestListener; /** A `node:http` server whose requests are {@link HttpRequest}s from the start. */ function createHttpServer(handler: RequestListener): Server; } //# sourceMappingURL=http-server.d.ts.map