import { type Op } from '@geoprotocol/grc-20'; import type { FetchLike } from './client/context.js'; import type { Id } from './id.js'; export type PublishEditParams = { name: string; ops: Op[]; /** The author's personal space ID. Used as the `authors` field in the GRC-20 Edit message. */ author: Id | string; }; export type PublishEditResult = { cid: `ipfs://${string}`; editId: Id; }; export type PublishImageParams = { blob: Blob; } | { url: string; }; export declare function publishEditCore({ name, ops, author, apiOrigin, fetch: fetchFn, }: PublishEditParams & { apiOrigin: string; fetch: FetchLike; }): Promise; export declare function uploadImageCore(params: PublishImageParams & { apiOrigin: string; fetch: FetchLike; alternativeGateway?: boolean; }): Promise<{ cid: `ipfs://${string}`; dimensions: { width: number; height: number; }; } | { cid: `ipfs://${string}`; dimensions?: undefined; }>; export declare function uploadCSVCore({ csvString, apiOrigin, fetch: fetchFn, }: { csvString: string; apiOrigin: string; fetch: FetchLike; }): Promise<`ipfs://${string}`>; //# sourceMappingURL=ipfs-core.d.ts.map