summaryrefslogtreecommitdiff
path: root/cli/bench/testdata/npm/hono/dist/utils/crypto.d.ts
blob: 540afb3991bf950d2ae5a74ba579e30c6ad040e1 (plain)
1
2
3
4
5
6
7
8
9
10
declare type Algorithm = {
    name: string;
    alias: string;
};
declare type Data = string | boolean | number | object | ArrayBufferView | ArrayBuffer | ReadableStream;
export declare const sha256: (data: Data) => Promise<string | null>;
export declare const sha1: (data: Data) => Promise<string | null>;
export declare const md5: (data: Data) => Promise<string | null>;
export declare const createHash: (data: Data, algorithm: Algorithm) => Promise<string | null>;
export {};