/** * Explicit lame-duck shutdown state for the renderer. * * This is intentionally separate from the `serverInitialized` health flag, * which is also `false` during startup. Once SIGTERM is received the renderer * enters lame-duck mode: new agent-work requests are rejected with 503 so the * API gets a clean pre-side-effect failure it can retry against another * instance, while in-flight streams continue draining. */ /** Marks the server as entering graceful shutdown (lame-duck mode). */ export declare function markServerShuttingDown(): void; /** Returns true once the server has started graceful shutdown. */ export declare function isServerShuttingDown(): boolean; /** Test-only helper to reset lame-duck state between tests. */ export declare function __resetServerShuttingDownForTests(): void; //# sourceMappingURL=shutdown-state.d.ts.map