import { Buffer } from 'node:buffer'; /** * Normalizes PNG image data to a standard RGBA format * * @param indata - Input image data buffer * @param imageData - Image metadata and parameters * @param skipRescale - Whether to skip bit depth rescaling * @returns Normalized image data buffer * @throws {Error} If palette index is invalid */ export declare function normalizeFormat(indata: Buffer, imageData: ImageData, skipRescale?: boolean): Buffer; declare interface ImageData { depth: number width: number height: number colorType: number transColor?: number[] palette?: Color[] } /** * Format normalizer for PNG image data. * Handles palette conversion, transparency, and bit depth scaling. */ declare type Color = [number, number, number, number]; // Default export for backward compatibility export default normalizeFormat;