import { TypedArray } from '../tdf/index.js'; export default function digest( hashType: AlgorithmIdentifier, data: TypedArray | ArrayBuffer ): Promise { return crypto.subtle.digest(hashType, data); }