/** * ScopedStore — a CortexStore wrapper that prefixes generic collection names. * * Each namespace gets its own underlying CortexStore instance (created by * NamespaceManager) so typed tables (memories, observations, etc.) are already * isolated by the store's namespace prefix. ScopedStore's only job is to * prefix the generic put/get/query collection names so that arbitrary * collections written by one namespace don't collide with another. */ import type { CortexStore, StoreCapabilities } from '../core/store.js'; import type { Memory, Observation, Edge, OpsEntry, OpsFilters, Signal, BeliefEntry, SearchResult, FSRSData, QueryFilter } from '../core/types.js'; export declare class ScopedStore implements CortexStore { private readonly inner; private readonly prefix; constructor(inner: CortexStore, prefix: string); putMemory(memory: Omit): Promise; getMemory(id: string): Promise; updateMemory(id: string, updates: Partial>): Promise; findNearest(embedding: number[], limit: number): Promise; touchMemory(id: string, fsrsUpdates: Partial): Promise; getAllMemories(): Promise; getRecentMemories(days: number, limit: number): Promise; putObservation(obs: Omit): Promise; getUnprocessedObservations(limit: number): Promise; markObservationProcessed(id: string): Promise; putEdge(edge: Omit): Promise; getEdgesFrom(memoryId: string): Promise; getEdgesForMemories(memoryIds: string[]): Promise; appendOps(entry: Omit): Promise; queryOps(filters: OpsFilters): Promise; updateOps(id: string, updates: Partial>): Promise; putSignal(signal: Omit): Promise; putBelief(entry: Omit): Promise; getBeliefHistory(conceptId: string): Promise; put(collection: string, doc: Record): Promise; get(collection: string, id: string): Promise | null>; update(collection: string, id: string, updates: Record): Promise; query(collection: string, filters: QueryFilter[], options?: { limit?: number; orderBy?: string; orderDir?: 'asc' | 'desc'; }): Promise[]>; countDocuments(collection: string, filters?: QueryFilter[]): Promise; delete(collection: string, id: string): Promise; withTransaction(fn: (txn: CortexStore) => Promise): Promise; upsertMemory(memory: Memory): Promise; upsertObservation(obs: Observation): Promise; upsertEdge(edge: Edge): Promise; upsertOpsEntry(entry: OpsEntry): Promise; upsertSignal(signal: Signal): Promise; upsertBelief(belief: BeliefEntry): Promise; getCapabilities(): Promise; } //# sourceMappingURL=scoped-store.d.ts.map