/** * This module provides utility functions for interacting with the default * IPFS gateway in TypeScript. * * @since 0.1.1 */ import type { Op } from '@geoprotocol/grc-20'; import type { Id } from './id.js'; import type { Network } from './types.js'; type PublishEditProposalParams = { name: string; ops: Op[]; /** The author's personal space ID. Used as the `authors` field in the GRC-20 Edit message. */ author: Id | string; network?: Network; }; type PublishEditResult = { cid: string; editId: Id; }; /** * Generates correct GRC-20 v2 binary encoding for an Edit and uploads it to IPFS. * * @deprecated Use `createGeoClient({ network }).personalSpaces.publishEdit(...)` or * `createGeoClient({ network }).daoSpaces.proposeEdit(...)`. */ export declare function publishEdit(args: PublishEditProposalParams): Promise; type PublishImageParams = { blob: Blob; } | { url: string; }; /** * @deprecated Use `createGeoClient({ network }).storage.uploadImage(...)`. */ export declare function uploadImage(params: PublishImageParams, network?: Network, alternativeGateway?: boolean): Promise<{ cid: `ipfs://${string}`; dimensions: { width: number; height: number; }; } | { cid: `ipfs://${string}`; dimensions?: undefined; }>; /** * Uploads a CSV file to IPFS and returns the CID. This CSV * file will be compressed using gzip before being uploaded. * * @deprecated Use `createGeoClient({ network }).storage.uploadCSV(...)`. */ export declare function uploadCSV(csvString: string, network?: Network): Promise<`ipfs://${string}`>; export {}; //# sourceMappingURL=ipfs.d.ts.map