/** * [INPUT]: MemoryEntry/WorkEntry, config weights * [OUTPUT]: utility score for eviction ordering * [POS]: Implements Utility-Weighted Memory eviction (Ebbinghaus-aligned) * * Formula: Utility = (w_freq * AccessFrequency + w_impact * BaseImpact) * e^(-lambda * Age) * Uses per-entry adaptive strength for the decay component. */ import type { MemoryEntry, WorkEntry } from "./types.js"; export interface EvictionWeights { accessFrequency: number; baseImpact: number; } export declare function utilityEntry(e: MemoryEntry, defaultHalfLife: Record, w: EvictionWeights): number; export declare function utilityWork(w: WorkEntry, defaultHalfLife: Record, ew: EvictionWeights): number;