import { HashName } from "../crypto/hashes/Hasher.mjs";
//#region src/utils/MultiHashEncoder.d.ts
export 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): Uint8Array;
  /**
   *
   * 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: Uint8Array;
    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
//# sourceMappingURL=MultiHashEncoder.d.mts.map