import type { PathSpec } from '@struktoai/mirage-core/types'; import type { GridFSAccessor } from '../../accessor/gridfs.ts'; export declare function stream(accessor: GridFSAccessor, path: PathSpec): AsyncIterable; /** * The resource-level `range_read(path, start, end)`, end exclusive. * * Every other backend's `rangeRead` and all of python's spell the window this * way; gridfs read its fourth argument as a length, so `range_read(p, 10, 20)` * returned twenty bytes from offset ten where python returned ten. * * @param accessor the GridFS accessor * @param path the file path * @param start first byte to read * @param end one past the last byte to read */ export declare function rangeRead(accessor: GridFSAccessor, path: PathSpec, start: number, end: number): Promise; //# sourceMappingURL=stream.d.ts.map