import { StorageTypes } from '@requestnetwork/types'; import { IpfsOptions } from './ipfs-manager'; export declare class IpfsStorage implements StorageTypes.IIpfsStorage { private ipfsManager; private logger; constructor(options?: IpfsOptions); initialize(): Promise; /** * Add the content to ipfs * To be used only in case of persisting the hash on ethereum outside the storage * * @param content Content to add into the storage * @returns Promise resolving id used to retrieve the content */ ipfsAdd(data: string): Promise; getSize(ipfsHash: string): Promise; /** * Gets current configuration */ getConfig(): Promise; /** * Verify the ipfs node (connectivity and network) * Check if the node is reachable and if the list of bootstrap nodes is correct * * @returns nothing but throw if the ipfs node is not reachable or in the wrong network */ private checkIpfsNode; static hasRequiredBootstrapNodes(actualList: string[]): boolean; } //# sourceMappingURL=ipfs-storage.d.ts.map