import type { ShortTermMemoryBackend } from './factory.js'; interface ShortTermMemory { id?: number; timestamp: string; type: 'action' | 'observation' | 'thought' | 'goal'; content: string; projectId?: string; importance?: number; } export declare class SQLiteShortTermMemory implements ShortTermMemoryBackend { private db; private projectId; private maxEntries; private cache; constructor(config: { dbPath: string; projectId?: string; maxEntries?: number; }); private initSchema; store(type: ShortTermMemory['type'], content: string, importance?: number): Promise; storeBatch(entries: Array<{ type: ShortTermMemory['type']; content: string; timestamp?: string; importance?: number; }>): Promise; getRecent(limit?: number): Promise; query(searchTerm: string, limit?: number): Promise; /** * Sanitize search term for FTS5 query syntax * Wraps each word in double quotes to prevent FTS5 syntax errors from * special characters like AND, OR, NOT, *, -, parentheses, etc. */ private sanitizeFTS5Query; private queryWithoutCache; getByType(type: ShortTermMemory['type'], limit?: number): Promise; count(): Promise; private prune; clear(): Promise; close(): Promise; exportAll(): Promise; importAll(memories: Array<{ type: ShortTermMemory['type']; content: string; timestamp?: string; }>): Promise; } export {}; //# sourceMappingURL=sqlite.d.ts.map