import type http from "http"; /** * Make a served program shut down cleanly when it is told to stop. A server * does not wait for log uploads before it answers a request, so the logs of * the last few requests may still be on their way when a hosting platform * sends SIGTERM to restart the process. Node's default for that signal is to * die at once, which loses them. * * On SIGTERM or SIGINT this stops accepting connections, waits for the * pending log requests, and exits 0. Requests still running are cut off, as * they were before. `server` is absent for the stdio MCP server. */ export declare function exitOnShutdownSignal(server?: http.Server): void;