import type { MemoryEntry, MemoryEntryType, MemoryFilter, MemoryConflict, ConflictResolution, BoundaryVerificationStatus, BoundaryClaim } from './types.js'; export declare class SharedMemoryStore { private entries; private conflicts; /** * Add a new entry to shared memory. * Checks for conflicts with existing entries by the same tags. * Returns the entry ID and any detected conflicts. */ add(type: MemoryEntryType, content: string, author: string, opts?: { tags?: string[]; verificationStatus?: BoundaryVerificationStatus; claims?: readonly BoundaryClaim[]; confidence?: number; supersedes?: string; }): { entryId: string; conflicts: MemoryConflict[]; }; /** * Query entries by filter criteria. */ query(filter: MemoryFilter): readonly MemoryEntry[]; /** Get entries by tag. */ getByTag(tag: string): readonly MemoryEntry[]; /** Get entries by author agent ID. */ getByAgent(agentId: string): readonly MemoryEntry[]; /** Get only entries where all claims passed verification. */ getVerified(): readonly MemoryEntry[]; /** Get all detected conflicts. */ getConflicts(): readonly MemoryConflict[]; /** Get only open (unresolved) conflicts. */ getOpenConflicts(): readonly MemoryConflict[]; /** Resolve a conflict. */ resolveConflict(conflictId: string, resolution: ConflictResolution): boolean; /** Escalate a conflict for human resolution. */ escalateConflict(conflictId: string): boolean; /** Get all entries (for snapshots and audit). */ getAllEntries(): readonly MemoryEntry[]; /** Get entry by ID. */ getEntry(entryId: string): MemoryEntry | undefined; /** Get the entry that superseded a given entry. */ getSuperseding(entryId: string): MemoryEntry | undefined; /** Update verification status of an entry after boundary verification. */ updateVerification(entryId: string, status: BoundaryVerificationStatus, claims?: readonly BoundaryClaim[], confidence?: number): void; private detectConflicts; }