UNPKG

393 BTypeScriptView Raw
1/// <reference types="node" />
2
3import { Hmac } from "crypto";
4
5export = createHmac;
6
7declare function createHmac(algo: createHmac.Algorithm, key: string | Buffer): Hmac;
8
9declare namespace createHmac {
10 type Algorithm =
11 | "rmd160"
12 | "ripemd160"
13 | "md5"
14 | "sha"
15 | "sha1"
16 | "sha224"
17 | "sha256"
18 | "sha384"
19 | "sha512";
20}