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)

30 lines (29 loc) 734 B
/** @format */ import { HuffmanNode } from './huffman-node.js'; /** * Represents a JPEG Huffman tree. */ export declare class JpegHuffman { /** * The children nodes of the Huffman tree. */ private readonly _children; /** * Gets the children nodes of the Huffman tree. * @returns {Array<HuffmanNode | undefined>} The children nodes. */ get children(): Array<HuffmanNode | undefined>; /** * The current index in the Huffman tree. */ private _index; /** * Gets the current index in the Huffman tree. * @returns {number} The current index. */ get index(): number; /** * Increments the current index by one. */ incrementIndex(): void; }