import type { BoxAccessor } from '../../accessor/box.ts'; import type { IndexCacheStore } from '../../cache/index/store.ts'; import { PathSpec } from '../../types.ts'; /** * Read a file, optionally only a byte range of it. * * Args: * accessor: Box accessor. * path: the path to read. * index: listing cache, consulted for the file id. * options: `{offset, size}`, the byte window, or absent for the whole file. */ export declare function read(accessor: BoxAccessor, path: PathSpec, index?: IndexCacheStore, options?: { offset?: number; size?: number; }): Promise; export declare function stream(accessor: BoxAccessor, path: PathSpec, index?: IndexCacheStore): AsyncIterable; //# sourceMappingURL=read.d.ts.map