import type { COSEALG } from './cose.js'; import type { Uint8Array_ } from '../types/index.js'; /** * Returns the hash of the given data, using the given algorithm when provided. If `data` is * a string, then it's treated like a UTF-8 string. Defaults to hashing using SHA-256. */ export declare function toHash(data: Uint8Array_ | string, algorithm?: COSEALG): Promise; //# sourceMappingURL=toHash.d.ts.map