UNPKG

png-async

Version:

A simple and non-blocking PNG encoder / decoder.

15 lines (14 loc) 403 B
/// <reference types="node" /> import stream = require("stream"); import png = require("./index"); export = Packer; declare class Packer extends stream.Readable { private _option; constructor(option: png.IImageOptions); pack(data: Buffer, width: number, height: number): void; _read(): void; private _packChunk; private _packIHDR; private _packIDAT; private _packIEND; }