import BufferCursor from './BufferCursor'; import { Pixel } from './types'; export default class RunLengthEncoder { private destination; private lastPixel; private lastPixelValid; private pixelCount; /** Offset into the destination buffer to place the section header. */ private headerIndex; private willCompress; constructor(destination: BufferCursor, bytesPerPixel: number); private writePixelToSection; private get isSectionFull(); private setLastPixel; flush(): void; private internalFlush; encode(pixel: Pixel): void; }