@helia/verified-fetch
Version:
A fetch-like API for obtaining verified & trustless IPFS content on the web
13 lines • 651 B
TypeScript
import type { RequestFormatShorthand } from '../types.js';
import type { CID } from 'multiformats/cid';
/**
* Selects an output mime-type based on the CID and a passed `Accept` header
*/
export declare function selectOutputType(cid: CID, accept?: string): string | undefined;
export declare const FORMAT_TO_MIME_TYPE: Record<RequestFormatShorthand, string>;
/**
* Converts a `format=...` query param to a mime type as would be found in the
* `Accept` header, if a valid mapping is available
*/
export declare function queryFormatToAcceptHeader(format?: RequestFormatShorthand): string | undefined;
//# sourceMappingURL=select-output-type.d.ts.map