huffman-ts
Version:
Huffman ts is an implementation of Huffman Algorithm in Typescript. It provides full compatibility with Huffman algorithm reference.
13 lines (12 loc) • 363 B
TypeScript
/**
* Author: @wizardpisces
* Contact: 1275839779@qq.com
* Date: 2021-3-8
* typescript version of https://github1s.com/wilkerlucio/huffman_js
*/
import { Tree } from "./Tree";
import { HuffmanEncoded } from "./type";
export declare class Huffman {
static treeFromText(text: string): Tree;
static decodeTree(data: HuffmanEncoded): Tree;
}