/** * Check if a wake key was already processed recently (within DEDUPE_WINDOW_MS). * Used during re-sync to avoid re-spawning after rapid restarts or shared-cursor * races with MCP get_inbox / CLI pickNextTask. */ export declare function isRecentlyProcessed(agentId: string, type: string, key: string): boolean; /** * Record a processed wake key. Call after a successful spawn (or skip). * Also records the reconnect timestamp for logging/debugging. */ export declare function recordProcessed(agentId: string, type: string, key: string): void; /** * Mark the reconnect timestamp for an agent. Called on every (re)connect * so we can track when the agent last came online. */ export declare function recordReconnect(agentId: string): void; /** * Get a summary of processed wake counts for the agent (for logging). */ export declare function getStats(agentId: string): { total: number; lastReconnectAt: string | null; };