import { DataHash } from './DataHash.js'; import { HashAlgorithm } from './HashAlgorithm.js'; import { IDataHasher } from './IDataHasher.js'; export declare const Algorithm: { 4: null; 1: null; 0: string; 2: string; 3: string; }; /** * Does hashing with asynchronous way */ export declare class SubtleCryptoDataHasher implements IDataHasher { readonly algorithm: HashAlgorithm; private _data; /** * Create DataHasher instance the hash algorithm * @param {string} algorithm */ constructor(algorithm: HashAlgorithm); /** * Add data for hashing * @param {Uint8Array} data byte array * @returns {SubtleCryptoDataHasher} */ update(data: Uint8Array): this; /** * Create hashing Promise for getting result DataHash * @returns Promise. */ digest(): Promise; /** * Resets the hash calculation. * @returns {SubtleCryptoDataHasher} The same data hasher object object for chaining calls. */ reset(): this; }