/** * Spreading Activation System * * Implements brain-like spreading activation where accessing a memory * "primes" related memories, making them easier to recall. * * EPHEMERAL: This cache is session-only and does not persist to disk. * Each MCP server restart starts with a fresh activation state. * * Based on spreading activation theory in cognitive psychology: * - Collins & Loftus (1975) semantic network model * - Activation spreads through associative links * - Activation decays over time (exponential decay) */ /** * Activate a memory and spread activation to linked memories * * When a memory is accessed, it becomes fully activated (1.0). * Linked memories receive partial activation based on link strength. * * @param memoryId - The ID of the memory being accessed */ export declare function activateMemory(memoryId: number): void; /** * Get the activation boost for a memory in search scoring * * Returns 0 if memory is not activated or activation has fully decayed. * Returns up to MAX_ACTIVATION_BOOST for fully activated memories. * * @param memoryId - The ID of the memory to check * @returns Activation boost (0 to MAX_ACTIVATION_BOOST) */ export declare function getActivationBoost(memoryId: number): number; /** * Get current activation level for a memory (for debugging/dashboard) * * @param memoryId - The ID of the memory to check * @returns Current activation level (0-1) or null if not activated */ export declare function getActivationLevel(memoryId: number): number | null; /** * Get all currently activated memories with their levels * Useful for dashboard visualization * * @returns Array of {memoryId, activationLevel} for all activated memories */ export declare function getActiveMemories(): Array<{ memoryId: number; activationLevel: number; }>; /** * Clear the activation cache * Useful for testing or manual reset */ export declare function clearActivationCache(): void; /** * Prune stale entries from the activation cache * Call periodically to prevent memory bloat */ export declare function pruneActivationCache(): number; /** * Get activation cache statistics */ export declare function getActivationStats(): { totalEntries: number; activeEntries: number; averageActivation: number; }; //# sourceMappingURL=activation.d.ts.map