/** @public */ export type HashAlgorithm = "SHA-512" | "SHA-384" | "SHA-256"; /** @public */ export interface Hash { digest(data: Uint8Array): Promise; mac(key: Uint8Array, data: Uint8Array): Promise; verifyMac(key: Uint8Array, mac: Uint8Array, data: Uint8Array): Promise; } export declare function refhash(label: string, value: Uint8Array, h: Hash): Promise>;