/** * SearchSessionHook * * Subscribes to "search:completed" events on the EventBus and automatically * stores a lightweight session memory for every search that returns results. * * This creates an "intermediate memory" layer that bridges ephemeral search * context (lost on compaction) and explicit persistent memories (remember). * * Design decisions: * - Non-blocking: store failures are logged but never surfaced to callers. * - Dedup: same (sessionId, projectId, query) is not stored twice within DEDUP_TTL_MS. * - Low importance (0.3): the temporal score and access reinforcement in * MemoryService naturally elevate memories that are accessed repeatedly. * - Prunes the dedup map when it grows beyond MAX_DEDUP_ENTRIES to avoid leaks. */ export declare class SearchSessionHook { private static instance; private unsubscribe; /** dedup key → last stored timestamp */ private readonly recentKeys; private constructor(); static getInstance(): SearchSessionHook; /** Register the hook. Safe to call multiple times — only registers once. */ register(): void; /** Unregister the hook (useful in tests). */ unregisterHook(): void; /** Reset singleton (test utility). */ static reset(): void; private handleSearchCompleted; private pruneDedup; } export declare const searchSessionHook: SearchSessionHook; //# sourceMappingURL=search-session-hook.d.ts.map