import { Server as HttpServer } from 'node:http'; /** * Stop an HTTP server without waiting for keep-alive clients forever * * A bare `server.close()` only resolves once every socket is gone, and a keep-alive * client holds its socket open between requests. Idle sockets are therefore dropped * immediately and the sockets still serving a request get a bounded grace period. */ export default function stopHttpServer(server: HttpServer, shutdownTimeoutMs: number): Promise;