/** One decoded TIFF image: 8-bit chunky samples plus an optional alpha plane. */ export interface DecodedTiff { readonly width: number; readonly height: number; /** Samples per pixel in {@link data} — 1 (grey), 3 (RGB) or 4 (CMYK). */ readonly channels: 1 | 3 | 4; /** Row-major 8-bit samples, `width * height * channels` long. */ readonly data: Uint8Array; /** One byte per pixel when the file carries an alpha channel. */ readonly alpha?: Uint8Array; } /** Whether the bytes open with a TIFF header (§2: `II*\0` or `MM\0*`). */ export declare function isTiff(bytes: Uint8Array): boolean; /** * Decode the first image of a baseline TIFF into 8-bit chunky samples. * * @throws Error when the file is malformed or uses a feature outside baseline * TIFF (planar separation, JPEG/fax compression, floating-point samples). */ export declare function decodeTiff(bytes: Uint8Array): DecodedTiff;