serverless-spy
Version:
CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.
14 lines (13 loc) • 414 B
TypeScript
import { Checksum, SourceData } from "@smithy/types";
/**
* @internal
*/
export declare class Hash implements Checksum {
private readonly algorithmIdentifier;
private readonly secret?;
private hash;
constructor(algorithmIdentifier: string, secret?: SourceData);
update(toHash: SourceData, encoding?: "utf8" | "ascii" | "latin1"): void;
digest(): Promise<Uint8Array>;
reset(): void;
}