import { BaseDatastore } from './base.ts'; import type { KeyTransform } from './index.ts'; import type { AbortOptions } from 'abort-error'; import type { Batch, Datastore, Key, KeyQuery, Pair, Query } from 'interface-datastore'; /** * A datastore shim, that wraps around a given datastore, changing * the way keys look to the user, for example namespacing * keys, reversing them, etc. */ export declare class KeyTransformDatastore extends BaseDatastore { private readonly child; transform: KeyTransform; constructor(child: Datastore, transform: KeyTransform); put(key: Key, val: Uint8Array, options?: AbortOptions): Promise; get(key: Key, options?: AbortOptions): Promise; has(key: Key, options?: AbortOptions): Promise; delete(key: Key, options?: AbortOptions): Promise; putMany(source: Iterable | AsyncIterable, options?: AbortOptions): Generator | AsyncGenerator; getMany(source: Iterable | AsyncIterable, options?: AbortOptions): Generator | AsyncGenerator; deleteMany(source: Iterable | AsyncIterable, options?: AbortOptions): Generator | AsyncGenerator; batch(): Batch; query(q: Query, options?: AbortOptions): Generator | AsyncGenerator; queryKeys(q: KeyQuery, options?: AbortOptions): Generator | AsyncGenerator; } //# sourceMappingURL=keytransform.d.ts.map