import { Tuple } from '../../codec.js'; import { CountOptions, KVStore, KVStoreTransaction, ScanOptions } from '../../types.js'; import { Database } from 'bun:sqlite'; import { SQLiteKVStoreOptions } from '../utils/sqlite.js'; export declare class BunSQLiteKVStore implements KVStore { db: Database; private statements; private transactions; private walGuard?; constructor(databasePath: string, options?: SQLiteKVStoreOptions); constructor(database: Database, options?: SQLiteKVStoreOptions); private startWalGuard; private createTable; private freeStatement; get(key: Tuple, scope?: Tuple): Promise; set(key: Tuple, value: any, scope?: Tuple): Promise; delete(key: Tuple, scope?: Tuple): Promise; scan(options: ScanOptions, scope?: Tuple): AsyncIterable<[Tuple, any]>; scanValues(options: ScanOptions, scope?: Tuple): AsyncIterable; count(options: CountOptions, scope?: Tuple): Promise; clear(scope?: Tuple): Promise; scope(scope: Tuple): KVStore; transact(): KVStoreTransaction; applyEdits(sets: AsyncIterable<[Tuple, any]> | Iterable<[Tuple, any]>, deletes: AsyncIterable | Iterable): Promise; }