/** * Information extracted from a PNG file. */ export type PngInfo = { width: number; height: number; /** Number of color components: 1 (grayscale) or 3 (RGB). */ numComponents: 1 | 3; bitsPerComponent: number; imageData: Uint8Array; alphaData?: Uint8Array; /** Raw ICC profile data extracted from the iCCP chunk, if present. */ iccProfile?: Uint8Array; }; /** * Parses PNG file to extract image data suitable for PDF embedding. * * PNG files consist of chunks, each with a 4-byte length, 4-byte type, * data, and 4-byte CRC. The IHDR chunk contains image metadata, * IDAT chunks contain the compressed image data, and PLTE contains * the palette for indexed color images. */ export declare function parsePng(data: Uint8Array): PngInfo;