import { IN3 } from '../../in3/sdk-wasm.js'; export declare class Ipfs { in3: IN3; /** initialiazes the Ipfs API * @param in3 - the incubed Client */ constructor(in3: IN3); /** Fetches the data for a requested ipfs-hash. If the node is not able to resolve the hash or find the data a error should be reported. * @param ipfshash - the ipfs multi hash * @param encoding - the encoding used for the response. ( `hex` , `base64` or `utf8`) * @return the content matching the requested hash encoded in the defined encoding. * * **Example** * * ```js * let result = await sdk.ipfs.get("QmSepGsypERjq71BSm4Cjq7j8tyAUnCw6ZDTeNdE8RUssD", "utf8") * // result = I love Incubed * ``` * */ get(ipfshash: string, encoding: string): Promise; /** Stores ipfs-content to the ipfs network. * Important! As a client there is no garuantee that a node made this content available. ( just like `eth_sendRawTransaction` will only broadcast it). * Even if the node stores the content there is no gurantee it will do it forever. * * @param data - the content encoded with the specified encoding. * @param encoding - the encoding used for the request. ( `hex` , `base64` or `utf8`) * @return the ipfs multi hash * * **Example** * * ```js * let result = await sdk.ipfs.put("I love Incubed", "utf8") * // result = QmSepGsypERjq71BSm4Cjq7j8tyAUnCw6ZDTeNdE8RUssD * ``` * */ put(data: string, encoding: string): Promise; } export default Ipfs;