UNPKG

@helia/verified-fetch

Version:

A fetch-like API for obtaining verified & trustless IPFS content on the web

13 lines 577 B
import { BasePlugin } from './plugin-base.js'; import type { PluginContext } from './types.js'; /** * Accepts a UnixFS `CID` and returns a `.tar` file containing the file or * directory structure referenced by the `CID`. */ export declare class TarPlugin extends BasePlugin { readonly id = "tar-plugin"; readonly codes: never[]; canHandle({ cid, accept, query, byteRangeContext }: PluginContext): boolean; handle(context: PluginContext & Required<Pick<PluginContext, 'byteRangeContext'>>): Promise<Response>; } //# sourceMappingURL=plugin-handle-tar.d.ts.map