11 lines
274 B
Plaintext
11 lines
274 B
Plaintext
// @flow
|
|
|
|
declare export var init: Promise<void>;
|
|
declare export function hashString(s: string): string;
|
|
declare export function hashBuffer(b: Buffer): string;
|
|
declare export class Hash {
|
|
writeString(s: string): void;
|
|
writeBuffer(b: Buffer): void;
|
|
finish(): string;
|
|
}
|