import { DataHash } from './DataHash.js'; import { HashAlgorithm } from './HashAlgorithm.js'; import { IDataHasher } from './IDataHasher.js'; export declare const Algorithm: { 4: string; 1: string; 0: string; 2: string; 3: string; }; export declare class NodeDataHasher implements IDataHasher { readonly algorithm: HashAlgorithm; private _hasher; /** * Create Node Hasher * @param {string} algorithm */ constructor(algorithm: HashAlgorithm); /** * Digest the final result * @return {Promise} */ digest(): Promise; /** * Update the hasher content * @param {Uint8Array} data byte array * @return {IDataHasher} */ update(data: Uint8Array): this; /** * Reset hasher. * @return {IDataHasher} */ reset(): this; }