/** * AutoMemoryManager:自动记忆(对标 wave-agent auto_memory + memory_rule)。 * * memorize(存记忆)/ recall(检索记忆,简单子串匹配)/ forget(删除)。 * addRule + matchRules(条件规则匹配,对标 wave-agent MemoryRuleManager)。 * SDK 简化版:in-memory 存储,不依赖文件系统。生产可用子类扩展为 FTS/文件持久化。 */ export interface MemoryEntry { id: string; type: string; content: string; scope: string; createdAt: number; } export interface MemoryRule { id: string; condition: string; paths: string[]; memory: string; } export declare class AutoMemoryManager { private memories; private rules; memorize(input: { type: string; content: string; scope: string; }): Promise; recall(query: string): Promise; forget(id: string): boolean; list(): MemoryEntry[]; addRule(rule: MemoryRule): void; removeRule(id: string): boolean; matchRules(condition: string, filePath: string): MemoryRule[]; }