/** * Predictive Consolidation Module * * Phase 4 Organic Brain Feature * * Determines when to run consolidation early based on memory pressure * and activity patterns, rather than waiting for the 4-hour cycle. */ import { WorkerConfig, PredictiveDecision } from './types.js'; /** * Memory statistics type (matches getMemoryStats return type) */ export interface MemoryStats { total: number; shortTerm: number; longTerm: number; episodic: number; byCategory: Record; averageSalience: number; } /** * Determine if consolidation should run early * More intelligent than just waiting for the 4-hour cycle * * @param stats - Current memory statistics * @param config - Worker configuration * @returns Decision object with shouldRun, reason, and urgency */ export declare function shouldTriggerPredictiveConsolidation(stats: MemoryStats, config: WorkerConfig): PredictiveDecision; /** * Get detailed memory pressure information * Useful for dashboard visualization and debugging * * @param stats - Current memory statistics * @param config - Worker configuration * @returns Object with detailed pressure metrics */ export declare function getMemoryPressure(stats: MemoryStats, config: WorkerConfig): { stmFullness: number; totalFullness: number; ltmFullness: number; isWarning: boolean; isCritical: boolean; recommendation: string; }; //# sourceMappingURL=predictive-consolidation.d.ts.map