/** * Reconnect snapshot — persists active session thread IDs to disk before * server shutdown so the next server instance can skip the full memory * briefing for threads that were mid-session when the restart occurred. * * The snapshot is valid for 10 minutes. After that it is either deleted * by the auto-cleanup timer or ignored (too old) by isReconnectCandidate. */ /** * Write the set of active thread IDs to the reconnect snapshot file. * Called just before the server process exits. */ export declare function writeReconnectSnapshot(threadIds: number[]): void; /** * Returns true if the given thread ID was active in the previous server * instance AND the snapshot is less than 10 minutes old. * * Consume-on-use: the thread ID is removed from the snapshot after a * successful match so that each thread can only lightweight-reconnect * **once** per MCP restart. This prevents a fresh agent process (crash, * keeper restart, compaction) from falsely matching within the 10-min window. */ export declare function isReconnectCandidate(threadId: number): boolean; /** * Delete the reconnect snapshot file. * Called 10 minutes after server start so stale snapshots don't persist * across multiple restarts. */ export declare function clearReconnectSnapshot(): void; //# sourceMappingURL=reconnect-snapshot.service.d.ts.map