/** * IPFS Client — CLI wrapper over @poa-box/core/ipfs. * * Pin/fetch (Graph IPFS endpoint, gateway cascade, retries, CIDv0 guard) live * in core, environment-free. The CLI binds the historical env vars per call: * POP_IPFS_API_URL, POP_IPFS_GATEWAY_URL, and POP_READONLY=1 (which refuses * pinning — publishing to IPFS is public and irreversible). */ import { ipfsOptionsFromEnv, bytes32ToIpfsCid, ipfsCidToBytes32 } from '@poa-box/core/ipfs'; import type { IpfsOptions } from '@poa-box/core/ipfs'; export { bytes32ToIpfsCid, ipfsCidToBytes32, ipfsOptionsFromEnv }; export type { IpfsOptions }; /** * Pin JSON content to IPFS via The Graph's endpoint. * Uses FormData POST to match frontend behavior exactly. * Returns CIDv0 (Qm...) string. */ export declare function pinJson(content: string): Promise; /** Pin a file (binary) to IPFS. */ export declare function pinFile(content: Buffer): Promise; /** * Fetch JSON content from IPFS. * Accepts CIDv0 (Qm...) or bytes32 (0x...) hash. */ export declare function fetchJson(hashOrCid: string): Promise;