/** * SQLite database wrapper for Signet * Runtime-detecting: uses bun:sqlite under Bun, better-sqlite3 under Node.js */ import type { Memory } from "./types"; import type { MemoryHistory, MemoryJob } from "./types"; declare function findSqliteVecExtension(): string | null; /** Find the sqlite-vec native extension path, or null if unavailable. */ export { findSqliteVecExtension }; /** * Load sqlite-vec extension onto a database connection. * Returns true if the extension was loaded successfully. */ export declare function loadSqliteVec(db: unknown): boolean; export declare class Database { private dbPath; private db; private options?; private vecEnabled; constructor(dbPath: string, options?: { readonly?: boolean; }); init(): Promise; /** Safe accessor that throws if db isn't initialized. */ private getDb; addMemory(memory: Omit): string; getMemories(type?: string): Memory[]; getMemoryById(id: string): Memory | null; updateMemory(id: string, updates: Partial): void; softDeleteMemory(id: string, deletedBy: string, reason?: string): void; recoverMemory(id: string, recoveredBy: string): void; addHistoryEvent(event: Omit): string; getHistory(memoryId: string): MemoryHistory[]; enqueueJob(job: Omit): string; leaseJob(jobType: string): MemoryJob | null; completeJob(id: string, result?: string): void; failJob(id: string, error: string): void; requeueDead(): number; close(): void; } //# sourceMappingURL=database.d.ts.map