UNPKG

@aws-amplify/core

Version:
12 lines (11 loc) 469 B
import { HttpRequest } from '../../../../../types'; /** * Returns the hashed payload. * * @param body `body` (payload) from the request. * @returns String created using the payload in the body of the HTTP request as input to a hash function. This string * uses lowercase hexadecimal characters. If the payload is empty, return precalculated result of an empty hash. * * @internal */ export declare const getHashedPayload: (body: HttpRequest['body']) => string;