import { Buffer } from "./buffer.js";
import { HashName } from "../crypto/hashes/Hasher.js";

//#region src/utils/MultiHashEncoder.d.ts
declare class MultiHashEncoder {
  /**
   *
   * Encodes a buffer into a hash
   *
   * @param buffer the buffer that has to be encoded
   * @param hashName the hashing algorithm, 'sha-256'
   *
   * @returns a multihash
   */
  static encode(data: Uint8Array, hashName: HashName): Buffer;
  /**
   *
   * Decodes the multihash
   *
   * @param data the multihash that has to be decoded
   *
   * @returns object with the data and the hashing algorithm
   */
  static decode(data: Uint8Array): {
    data: Buffer;
    hashName: string;
  };
  /**
   *
   * Validates if it is a valid mulithash
   *
   * @param data the multihash that needs to be validated
   *
   * @returns a boolean whether the multihash is valid
   */
  static isValid(data: Uint8Array): boolean;
}
//#endregion
export { MultiHashEncoder };
//# sourceMappingURL=MultiHashEncoder.d.ts.map