/** * Information extracted from a JPEG header. */ export type JpegInfo = { width: number; height: number; /** Number of color components: 1 (grayscale), 3 (RGB), or 4 (CMYK). */ numComponents: 1 | 3 | 4; bitsPerComponent: number; /** Raw ICC profile data extracted from APP2 markers, if present. */ iccProfile?: Uint8Array; }; /** * Parses JPEG header to extract image dimensions and color space. * * JPEG files consist of segments, each starting with 0xFF followed by a marker byte. * The SOF (Start of Frame) markers (0xC0-0xCF, excluding 0xC4, 0xC8, 0xCC) contain * the image dimensions and component information. */ export declare function parseJpeg(data: Uint8Array): JpegInfo;