import { KVStore, KVStoreTransaction, ScanOptions } from '../types.js'; import { Tuple } from '../codec.js'; import { BTreeKVStore } from './memory-btree.js'; /** * This is a in-memory implementation of a KVStore that's used for testing that can have a provided delay for each operation */ export declare class InMemoryTestKVStore implements KVStore { private store; readonly delay: number | undefined; readonly txDelay: number | undefined; readonly prefix: Tuple; constructor(options?: { prefix?: Tuple; store?: BTreeKVStore; delay?: number; txDelay?: number; }); scope(prefix: Tuple): KVStore; clear(): Promise; get(key: Tuple, prefix?: Tuple): Promise; set(key: Tuple, value: any, prefix?: Tuple): Promise; delete(key: Tuple, prefix?: Tuple): Promise; scan(scanOptions: ScanOptions): AsyncIterable<[Tuple, any]>; transact(): KVStoreTransaction; applyEdits(sets: AsyncIterable<[Tuple, any]> | Iterable<[Tuple, any]>, deletes: AsyncIterable | Iterable): Promise; }