import { CID } from 'multiformats/cid';
/**
 * Takes a resource and returns a session cache key as an IPFS or IPNS path with
 * any trailing segments removed.
 *
 * E.g.
 *
 * - Qmfoo -> /ipfs/Qmfoo
 * - https://Qmfoo.ipfs.gateway.org -> /ipfs/Qmfoo
 * - https://gateway.org/ipfs/Qmfoo -> /ipfs/Qmfoo
 * - https://gateway.org/ipfs/Qmfoo/bar.txt -> /ipfs/Qmfoo
 * - etc
 */
export declare function resourceToSessionCacheKey(url: string | CID): string;
//# sourceMappingURL=resource-to-cache-key.d.ts.map