import { Key } from 'interface-datastore'; import { BaseDatastore } from './base.ts'; import type { Shard } from './index.ts'; import type { AbortOptions } from 'abort-error'; import type { Batch, KeyQuery, Pair, Query, Datastore } from 'interface-datastore'; /** * Backend independent abstraction of go-ds-flatfs. * * Wraps another datastore such that all values are stored * sharded according to the given sharding function. */ export declare class ShardingDatastore extends BaseDatastore { private readonly child; private shard; constructor(store: Datastore, shard: Shard); open(): Promise; _convertKey(key: Key): Key; _invertKey(key: Key): Key; static create(store: Datastore, shard?: Shard): Promise; 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=sharding.d.ts.map