import { Batch, Database, Iterator } from "./types.cjs"; import { KV } from "@cross/kv"; //#region src/db/cross-kv.d.ts /** * Database implementation using @cross/kv. * Maps our Database interface to @cross/kv operations. */ declare class CrossKvDB implements Database { readonly kv: KV; private closed; constructor(filepath?: string); /** * Opens the database at the specified filepath. * Must be called before using the database if filepath is not provided in constructor. */ open(filepath: string, createIfMissing?: boolean): Promise; /** * Converts a Uint8Array key to @cross/kv key format. * Uses ["kv", hexKey] format to ensure valid @cross/kv keys. */ private keyToKvKey; get(key: Uint8Array): Promise; has(key: Uint8Array): Promise; set(key: Uint8Array, value: Uint8Array): Promise; delete(key: Uint8Array): Promise; iterator(start?: Uint8Array, end?: Uint8Array): Promise; reverseIterator(start?: Uint8Array, end?: Uint8Array): Promise; batch(): Batch; close(): Promise; private createIterator; } //#endregion export { CrossKvDB }; //# sourceMappingURL=cross-kv.d.cts.map