13 lines
388 B
TypeScript
13 lines
388 B
TypeScript
import { type IHasher } from "./WASMInterface";
|
|
import type { IDataType } from "./util";
|
|
/**
|
|
* Calculates MD5 hash
|
|
* @param data Input data (string, Buffer or TypedArray)
|
|
* @returns Computed hash as a hexadecimal string
|
|
*/
|
|
export declare function md5(data: IDataType): Promise<string>;
|
|
/**
|
|
* Creates a new MD5 hash instance
|
|
*/
|
|
export declare function createMD5(): Promise<IHasher>;
|