image-in-browser
Version:
Package for encoding / decoding images, transforming images, applying filters, drawing primitives on images on the client side (no need for server Node.js)
24 lines (23 loc) • 669 B
TypeScript
/**
* Represents a Huffman code with its bit length and value.
*
* @format
*/
export declare class HuffmanCode {
/** Number of bits in the Huffman code. */
bits: number;
/** Value of the Huffman code. */
value: number;
/**
* Creates a new HuffmanCode instance.
* @param bits Number of bits in the code.
* @param value Value of the code.
*/
constructor(bits?: number, value?: number);
/**
* Creates a copy of the given HuffmanCode instance.
* @param other HuffmanCode to copy.
* @returns New HuffmanCode instance with the same bits and value.
*/
static from(other: HuffmanCode): HuffmanCode;
}