/** * PackReader is responsible for reading packs from the store. * With the UnixFSPackReader, we can read both multihash digests and paths from different stores * behind the same reader. This is useful for keeping original raw files in a separate store and * UnixFS Dag files in another store. * * @implements {API.PackReader} */ export class UnixFsPackReader implements API.PackReader { /** * @param {API.PackStoreStreamer} packStoreStreamer * @param {API.PackStoreStreamer} pathStoreStreamer */ constructor(packStoreStreamer: API.PackStoreStreamer, pathStoreStreamer: API.PackStoreStreamer); storeStreamer: API.PackStoreStreamer; pathStoreStreamer: API.PackStoreStreamer; /** * @param {API.MultihashDigest | API.Path} target * @param {Array<{ offset: number, length?: number, multihash: API.MultihashDigest }>} [ranges] * @returns {AsyncIterable} */ stream(target: API.MultihashDigest | API.Path, ranges?: Array<{ offset: number; length?: number; multihash: API.MultihashDigest; }>): AsyncIterable; } import * as API from '@hash-stream/pack/types'; //# sourceMappingURL=unixfs-pack-reader.d.ts.map