UNPKG

ts-ds-tool

Version:

Data structure and algorithm of TypeScript

9 lines (8 loc) 340 B
import { HuffmanTree } from "./HuffmanTree"; export declare class HuffmanTreeBuilder { static buildTree(table: Array<[string, number]>): HuffmanTree; static encode(tree: HuffmanTree, text: string): string; static decode(tree: HuffmanTree, text: string): string; private static lpad8; private static bitStringToString; }