import type { RetainPolicy, ScopedMemoryEntry } from "./types.js"; export interface RetentionResult { /** 保留的 entry。 */ kept: ScopedMemoryEntry[]; /** 被删除的 entry(超龄或超量)。 */ deleted: ScopedMemoryEntry[]; } /** * 对 entries 应用 retain policies,返回保留与删除的分组。 * - max_age_days:超龄(now - createdAt > max_age_days * 86400000)删除。 * - max_per_type:每 type 按 createdAt 倒序保留 N 条,多余删除。 * 多条 policy 对同一 entry 任一命中即删除。 */ export declare function applyRetention(entries: ScopedMemoryEntry[], policies: RetainPolicy[], now?: number): RetentionResult;