export type AlgorithmIdentifier = 'SHA-1' | 'SHA-256' | 'SHA-384' | 'SHA-512'; /** * 为内容生成摘要 * @since 1.8.0 * @param {String | Uint8Array} message 内容字符串 * @param {AlgorithmIdentifier} algorithm 摘要算法 * @returns {Promise} 摘要字符串 */ export declare function digest(message: string | Uint8Array, algorithm: AlgorithmIdentifier): Promise;