import type { CID, globSource } from 'ipfs-http-client'; import { UploadProxyClient } from './uploadProxy'; export type IpfsFile = { path?: string; content: ArrayBuffer | string; }; export type IpfsClientOptions = { uploadProxyClient: UploadProxyClient; }; export type AddAllOptions = { basename?: string; wrapWithDirectory?: boolean; searchParams?: URLSearchParams; siteId?: string; }; export type AddFromPathOptions = { wrapWithDirectory?: boolean; searchParams?: URLSearchParams; siteId?: string; }; export type UploadResult = { cid: CID; size: number; path: string; }; export declare class IpfsClient { private uploadProxyClient; constructor(options: IpfsClientOptions); private pinToUploadResult; add: (file: IpfsFile) => Promise; addAll: (files: Array | ReturnType, options?: AddAllOptions) => Promise; addFromPath: (path: string, options?: AddFromPathOptions) => Promise<{ cid: CID; size: number; path: string; }[]>; addSitesToIpfs: (path: string, options?: AddFromPathOptions) => Promise<{ cid: CID; size: number; path: string; }[]>; }