import { Context } from 'koishi'; import type { AgenticMemorySnapshotItem, MemoryScope, MemorySnapshotRecord } from '../../contracts/memory'; import type { SnapshotRepository } from '../../contracts/workflows'; import type { LivingMemoryTransact } from './types'; export declare class LivingMemorySnapshotRepository implements SnapshotRepository { private readonly ctx; private readonly transact; constructor(ctx: Context, transact: LivingMemoryTransact); /** * 已移除的 embedding-rerank 策略只存记忆 id 引用、不带 finalText; * 策略列已不在模型中,只能按快照项形状识别并删除,交给后续召回重建。 */ removeLegacyReferenceSnapshots(): Promise; getLatestSnapshotByScope(scope: Pick): Promise; listSnapshotsByPreset(presetId: string): Promise; upsertSnapshot(scope: MemoryScope, query: string, items: AgenticMemorySnapshotItem[]): Promise; private loadSortedSnapshotsByScope; deleteSnapshot(snapshotId: string): Promise; deleteSnapshotsByConversation(conversationId: string): Promise; deleteSnapshotsByPreset(presetId: string): Promise; }