UNPKG

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)

23 lines (22 loc) 670 B
/** @format */ /** * Represents a Huffman code with its bit length and value. */ 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; }