import type { Enum } from '../../../shared/src/enum.ts'; import { BTreeRead } from '../btree/read.ts'; import type { Read as DagRead } from '../dag/store.ts'; import * as FormatVersion from '../format-version-enum.ts'; import type { FrozenJSONValue } from '../frozen-json.ts'; import type { Hash } from '../hash.ts'; import { Commit, type Meta } from './commit.ts'; import { IndexRead } from './index.ts'; type FormatVersion = Enum; export declare class Read { #private; map: BTreeRead; readonly indexes: Map; constructor(dagRead: DagRead, map: BTreeRead, indexes: Map); has(key: string): Promise; get(key: string): Promise; isEmpty(): Promise; getMapForIndex(indexName: string): BTreeRead; get closed(): boolean; close(): void; } export declare function readFromDefaultHead(dagRead: DagRead, formatVersion: FormatVersion): Promise; export declare function readFromHead(name: string, dagRead: DagRead, formatVersion: FormatVersion): Promise; export declare function readFromHash(hash: Hash, dagRead: DagRead, formatVersion: FormatVersion): Promise; export declare function readIndexesForRead(commit: Commit, dagRead: DagRead, formatVersion: FormatVersion): Map; export {}; //# sourceMappingURL=read.d.ts.map