import type { GDriveAccessor } from '../../accessor/gdrive.ts'; import type { IndexCacheStore } from '../../cache/index/store.ts'; import { PathSpec } from '../../types.ts'; import type { TokenManager } from '../google/client.ts'; export declare function readFileVersioned(tm: TokenManager, fileId: string, virtual: string, label: string, offset?: number, size?: number | null): Promise; /** * Read a Drive file, optionally only a byte range of it. * * Only a binary file has a remote range to ask for. A google-apps file * is rendered here into JSON, so its bytes do not exist until we make * them and the window can only be taken afterwards. * * Args: * accessor: Drive 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: GDriveAccessor, path: PathSpec, index?: IndexCacheStore, options?: { offset?: number; size?: number; }): Promise; export declare function stream(accessor: GDriveAccessor, path: PathSpec, index?: IndexCacheStore): AsyncIterable; //# sourceMappingURL=read.d.ts.map