import { Key } from 'interface-datastore'; import { KeyTransformDatastore } from './keytransform.ts'; import type { AbortOptions } from 'abort-error'; import type { Datastore, Query, Pair, KeyQuery } from 'interface-datastore'; /** * Wraps a given datastore into a keytransform which * makes a given prefix transparent. * * For example, if the prefix is `new Key(/hello)` a call * to `store.put(new Key('/world'), mydata)` would store the data under * `/hello/world`. */ export declare class NamespaceDatastore extends KeyTransformDatastore { private readonly iChild; private readonly iKey; constructor(child: Datastore, prefix: Key); query(q: Query, options?: AbortOptions): Generator | AsyncGenerator; queryKeys(q: KeyQuery, options?: AbortOptions): Generator | AsyncGenerator; } //# sourceMappingURL=namespace.d.ts.map