import type { IndexEntry } from '@struktoai/mirage-core/cache/index/config'; import type { IndexCacheStore } from '@struktoai/mirage-core/cache/index/store'; import type { PathSpec } from '@struktoai/mirage-core/types'; import type { HfHubAccessor } from '../../accessor/hf_hub.ts'; export interface HfHubReadOptions { offset?: number; size?: number; } /** * The tree row for a path, or the error that says why there is none. * * Shared by every content read so a file, a directory and an absence are told * apart in exactly one place. It also means a read never reaches the network * for a path the listing already knows is absent. */ export declare function resolveEntry(accessor: HfHubAccessor, pathSpec: PathSpec, index: IndexCacheStore | undefined): Promise; export declare function read(accessor: HfHubAccessor, path: PathSpec, index?: IndexCacheStore, options?: HfHubReadOptions): Promise; //# sourceMappingURL=read.d.ts.map