UNPKG

@aws-sdk/middleware-flexible-checksums

Version:

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-flexible-checksums/latest.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-flexible-checksums) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-flexible-checksums.s

6 lines (5 loc) 303 B
import { ChecksumConstructor, HashConstructor } from "@smithy/types"; /** * A function that, given a hash constructor and a string, calculates the hash of the string. */ export declare const stringHasher: (checksumAlgorithmFn: ChecksumConstructor | HashConstructor, body: any) => Promise<Uint8Array>;