/**
 * Startup windows for the RPC MCP inventory (senpi#4828).
 *
 * While a session's MCP attach is running, and until every connect that attach backgrounded has settled (connected,
 * failed, or timed out by its own `connectTimeoutMs`), inventory changes for that session are held instead of being
 * announced one by one. How many intermediate inventories a capture happens to see depends on how parallel connects
 * interleave and on how often a client reads the inventory, so announcing them made the startup event count depend on
 * timing. When the session's last open window closes it releases what it held exactly once: a `startup-settled`
 * announcement when any of its attaches started a connect, otherwise the plain change it withheld, if any.
 */
export type StartupWindowRelease = "startup-settled" | "withheld";
export interface McpStartupWindow {
    /** Close after `connects` settle; `release` runs once, for the session's last open window, when it held anything. */
    close(connects: readonly Promise<void>[], release: (kind: StartupWindowRelease) => Promise<unknown>): Promise<void>;
}
export declare class McpStartupWindows {
    #private;
    open(sessionId: string): McpStartupWindow;
    /** True while `sessionId` has an open window; the change it was asked about is then held for the release. */
    hold(sessionId: string | undefined): boolean;
    clear(): void;
}
//# sourceMappingURL=startup-window.d.ts.map