import type { IPFS } from "ipfs-core-types";
import { IPFSPackage } from "./types.js";
export declare const DEFAULT_CDN_URL = "https://unpkg.com/ipfs-core@0.15.4/dist/index.min.js";
/**
 * Set the currently active IPFS node.
 * The default is a node based on the ipfs-core package from a CDN (see `DEFAULT_CDN_URL`)
 */
export declare const set: (userIpfs: unknown) => void;
/**
 * Get the currently active IPFS node.
 * Will automatically create one if none is active yet.
 */
export declare const get: () => Promise<IPFS>;
/**
 * Create an IPFS Node given a `IPFSPackage`,
 * which you can get from `pkgFromCDN` or `pkgFromBundle`.
 */
export declare const nodeWithPkg: (pkg: IPFSPackage) => Promise<IPFS>;
/**
 * Loads ipfs-core from a CDN.
 * NOTE: Make sure to cache this URL with a service worker if you want to make your app available offline.
 */
export declare const pkgFromCDN: (cdn_url: string) => Promise<IPFSPackage>;
