/** * In-memory memory store — default implementation, no external dependencies. */ import { MemoryItem } from '../types/memory-item.types'; import { MemoryQuery, MemorySearchOptions, MemoryStats, PruneOptions } from '../types/store.types'; import { MemoryStore } from './memory-store.interface'; export interface InMemoryStoreOptions { /** Max total items across all users (evict oldest by updatedAt when exceeded). */ maxTotalItems?: number; /** Max items per user per category (evict oldest when exceeded). */ maxItemsPerUserPerCategory?: number; /** Default TTL in ms for items with expiresAt (emotional). Applied on read for lazy expiry. */ defaultEmotionalTtlMs?: number; } /** * In-memory store with Map by id and in-memory indexes for fast query. */ export declare class InMemoryStore implements MemoryStore { private items; private byUser; private byUserCategory; private byUserCategoryKey; private options; constructor(options?: InMemoryStoreOptions); initialize(): Promise; private indexItem; private unindexItem; private evictIfNeeded; private evictGlobalIfNeeded; save(item: MemoryItem): Promise; saveBatch(items: MemoryItem[]): Promise; get(id: string): Promise; update(id: string, updates: Partial): Promise; delete(id: string): Promise; deleteBatch(ids: string[]): Promise; query(options: MemoryQuery): Promise; search(query: string | number[], options: MemorySearchOptions): Promise; getStats(userId?: string): Promise; prune(options?: PruneOptions): Promise; } /** * Create the default in-memory store (no external dependencies). */ export declare function createDefaultMemoryStore(options?: InMemoryStoreOptions): MemoryStore; //# sourceMappingURL=in-memory.store.d.ts.map