export interface SqlDatabase { run(sql: string, params?: (string | number | Uint8Array | null)[]): void; exec(sql: string, params?: (string | number)[]): Array<{ columns: string[]; values: unknown[][]; }>; export(): Uint8Array; close(): void; } export interface SqliteStoreInitOptions { /** Human store name for honest versioning messages. */ readonly storeName?: string | undefined; /** Target `PRAGMA user_version` for this store (default 1). */ readonly schemaVersion?: number | undefined; /** * Ordered migrations to the target version. When omitted, the base schema * function doubles as the single migration to the target version (safe * because every base schema here is IF NOT EXISTS-idempotent). */ readonly migrations?: ReadonlyArray<{ readonly toVersion: number; readonly migrate: (db: SqlDatabase) => void; }> | undefined; } export declare class SQLiteStore { private db; private readonly dbPath; private initPromise; private saveBatchDepth; private saveDirty; constructor(dbPath?: string); get isReady(): boolean; /** The on-disk database path, or null for an ephemeral/in-memory store. */ get databasePath(): string | null; init(schema: (db: SqlDatabase) => void, options?: SqliteStoreInitOptions): Promise; run(sql: string, params?: (string | number | Uint8Array | null)[]): void; exec(sql: string, params?: (string | number)[]): Array<{ columns: string[]; values: unknown[][]; }>; batch(operation: () => Promise): Promise; save(): Promise; close(): void; private initialize; private getDb; } //# sourceMappingURL=sqlite-store.d.ts.map