import type { StdioServerHandle } from "@modelcontextprotocol/server/stdio"; import { RestServer } from "./rest/server.js"; /** * Tears the running server down, delivers the queued metrics, and returns the process exit code: 0 * on a clean shutdown, 1 when teardown failed, so a failed shutdown is not reported to the * orchestrator as success. * * Kept out of index.ts (whose import starts a server) so the signal path is testable. */ export declare function shutdown(server: RestServer | StdioServerHandle): Promise;