import type { AnyCell } from "@okcontract/cells";
/**
 * convert_CID converts CIDv0 to v1 (as required by some gateways).
 * @param s
 * @returns
 * @todo this function alone adds 20kb to the build output...
 */
export declare const convert_CID: (s: string) => string;
/**
 * ipfs_rewrite rewrites an IPFS URL using gateways.
 * @param url
 * @returns
 * @todo detect browsers (e.g. Brave) that support IPFS directly
 * @todo add multiple gateways (e.g https://ipfs.io/ipfs/...) or
 * @todo write an image component that tries multiple gateways
 * @todo correct CIDv0 case?
 * @todo manage
 * @todo convert to cells
 */
export declare const ipfs_rewrite: (url: AnyCell<string>, gw?: number) => import("@okcontract/cells").MapCell<string, false>;
export declare const ipfs_rewrite_old: (url: string, gw?: number) => string;
