UNPKG

renovate

Version:

Automated dependency updates. Flexible so you don't need to be.

6 lines (5 loc) 410 B
import type { LiteralUnion } from 'type-fest'; export type AlgorithmName = LiteralUnion<'sha1' | 'sha224' | 'sha256' | 'sha384' | 'sha512', string>; export declare function hash(data: string | Buffer, algorithm?: AlgorithmName): string; export declare function toSha256(input: string): string; export declare function hashStream(inputStream: NodeJS.ReadableStream, algorithm?: AlgorithmName): Promise<string>;