import * as IPFS from "ipfs-http-client"; export type FileContent = Uint8Array; export declare class Pinner { #private; /** * @param ipfsOptions - Options to pass to IPFS.create(); only used if `where` is "provider". * @param ipfs - IPFS instance to use. If not provided, a new one will be created. * @param where - Where to pin the content. "local" or "provider". Defaults to "local". * @returns The CID of the pinned content. * * Note: the available options are part of the "ipfs-http-client" package. * The `Options` object is inclusive of: * host?: string * port?: number * protocol?: string * headers?: Headers | Record * timeout?: number | string * apiPath?: string * url?: URL|string|Multiaddr * ipld?: Partial * agent?: HttpAgent | HttpsAgent */ ipfsOptions: IPFS.Options; ipfs: IPFS.IPFSHTTPClient; where: string; constructor(ipfsOptions?: {}, where?: string); pin(content: string | FileContent): Promise; resolveCid(cid: string): Promise; } export declare function pinToLocal(opts?: IPFS.Options): import("../processor").PrepareResult; export declare function pinToProvider(opts?: IPFS.Options): import("../processor").PrepareResult;