import type { Server } from "node:net"; /** * Wraps a module's `createServer` so every server it hands out counts the * requests it serves. * * Its own module rather than a helper inside `bootstrap.ts`, because the * bootstrap is an entry point that runs on import and lands inside the * *measured* process — where no coverage instrumentation reaches it, and where * a mistake is only visible as a run whose numbers came from a process that * served nothing. * * `http.createServer` and `https.createServer` have different signatures, so * there is no shared type to borrow. Only the return value is touched, and the * arguments are forwarded untyped and unchanged. */ export declare function countServedRequests Server; }>(module: T): void;