UNPKG

@helia/verified-fetch

Version:

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

26 lines 1.63 kB
import type { ContentType } from '../index.ts'; import type { CID } from 'multiformats/cid'; export declare const MEDIA_TYPE_DAG_CBOR = "application/vnd.ipld.dag-cbor"; export declare const MEDIA_TYPE_CBOR = "application/cbor"; export declare const MEDIA_TYPE_DAG_JSON = "application/vnd.ipld.dag-json"; export declare const MEDIA_TYPE_JSON = "application/json"; export declare const MEDIA_TYPE_RAW = "application/vnd.ipld.raw"; export declare const MEDIA_TYPE_OCTET_STREAM = "application/octet-stream"; export declare const MEDIA_TYPE_IPNS_RECORD = "application/vnd.ipfs.ipns-record"; export declare const MEDIA_TYPE_CAR = "application/vnd.ipld.car"; export declare const MEDIA_TYPE_TAR = "application/x-tar"; export declare const MEDIA_TYPE_DAG_PB = "application/vnd.ipld.dag-pb"; export declare const CONTENT_TYPE_OCTET_STREAM: ContentType; export declare const CONTENT_TYPE_DAG_CBOR: ContentType; export declare const CONTENT_TYPE_CBOR: ContentType; export declare const CONTENT_TYPE_DAG_JSON: ContentType; export declare const CONTENT_TYPE_JSON: ContentType; export declare const CONTENT_TYPE_RAW: ContentType; export declare const CONTENT_TYPE_IPNS: ContentType; export declare const CONTENT_TYPE_CAR: ContentType; export declare const CONTENT_TYPE_TAR: ContentType; export declare const CONTENT_TYPES: ContentType[]; export declare function getContentType(mediaType?: string | null): ContentType | undefined; export declare function getContentTypesForCid(cid?: CID): ContentType[]; export declare function getSupportedContentTypes(protocol?: string, cid?: CID): ContentType[]; //# sourceMappingURL=content-types.d.ts.map