@helia/verified-fetch
Version:
A fetch-like API for obtaining verified & trustless IPFS content on the web
23 lines • 638 B
TypeScript
export declare const SUBDOMAIN_GATEWAY_REGEX: RegExp;
export interface ParsedURL {
url: URL;
protocol: 'ipfs' | 'ipns';
cidOrPeerIdOrDnsLink: string;
path: string[];
query: Record<string, any>;
fragment: string;
}
/**
* Accepts the following url strings:
*
* - /ipfs/Qmfoo/path
* - /ipns/Qmfoo/path
* - ipfs://cid/path
* - ipns://name/path
* - http://cid.ipfs.example.com/path
* - http://name.ipns.example.com/path
* - http://example.com/ipfs/cid/path
* - http://example.com/ipns/name/path
*/
export declare function parseURLString(urlString: string): URL;
//# sourceMappingURL=parse-url-string.d.ts.map