import { Buffer } from 'buffer'; import FormData from 'form-data'; export interface Headers { [key: string]: string | string[] | number | boolean | null; } export declare function compress(data: string): Uint8Array; export declare function uncompress(data: any): string; export declare function getContentCID(value: string | Buffer): Promise; export declare function getContentUrl(content?: any): Promise; export declare function parseIpfsCid(cid: any): string | null; export declare function getIpfsCid(str: any): string | null; export declare function getIpfsUrl(str: any): string | null; export declare function extractValidCid(str: any): string; export declare function prepareFormData(info: any): Promise<{ cid: string; formData: FormData; content: Buffer | Blob; }>; export declare function prepareRawFormData(data: Buffer): Promise<{ cid: string; formData: FormData; }>; export declare function setAxiosRetries(totalRetries?: number): void; export declare function isIpfsGateway(ipfsUrl: string, _customHeaders?: any): Promise; export declare function readRawIpfs({ ipfsUrl, cid, customHeaders, timeout, }: { ipfsUrl: string; cid: string; customHeaders?: Headers; timeout?: number; }): Promise; export declare function readIpfs(ipfsUrl: string, hash: string, customHeaders: Headers | undefined, isGateway: boolean, timeout: number, retries?: number): Promise; export declare function writeRawIpfs({ ipfsUrl, data, customHeaders, timeout, retries, }: { ipfsUrl: string; data: Buffer; customHeaders?: Headers; timeout?: number; retries?: number; }): Promise; export declare function writeIpfs(ipfsUrl: string, info: any, customHeaders: Headers | undefined, isGateway: boolean, timeout: number, retries?: number): Promise; export declare function deleteIpfs(ipfsUrl: string, hash: string, customHeaders: Headers | undefined, isGateway: boolean, timeout: number): Promise; export declare function listPinsIpfs(ipfsUrl: string, customHeaders: Headers | undefined, isGateway: boolean): Promise; export declare function fetchIPFSAvailability(ipfsUrl: string | undefined, cid: string): Promise; //# sourceMappingURL=ipfs.d.ts.map