export declare const imageKind: any; export declare const maximumCount: number; /** * Converts a source buffer into RGBA destination buffer based on the image kind. * * @private * @param {any} kind Image format kind. * @param {any} src Source pixel buffer . * @param {Uint32Array} dest Destination buffer. * @param {number} width Image width in pixels. * @param {number} height Image height in pixels. * @param {boolean} inverseDecode For 1bpp grayscale: whether to invert decode mapping. * @returns {Promise} A promise resolving to conversion result or `null` if not handled here. */ export declare function _convertToRGBA(kind: any, src: any, dest: Uint32Array, width: number, height: number, inverseDecode: boolean): Promise; /** * Converts a 1-bit grayscale source into RGBA. * * @private * @param {Uint8Array} src Source buffer. * @param {any} srcPos Start bit/byte position index in `src`. * @param {any} dest Destination buffer to write RGBA pixels into. * @param {number} width Image width in pixels. * @param {number} height Image height in pixels. * @param {number} [nonBlackColor=0xffffffff] Color used for '1' bits. * @param {boolean} [inverseDecode=false] If `true`, swaps mapping of 0/1 bits. * @returns {any} Object with updated srcPos, destPos. */ export declare function _convertBlackAndWhiteToRGBA(src: Uint8Array, srcPos: any, dest: any, width: number, // eslint-disable-line height: number, nonBlackColor?: number, inverseDecode?: boolean): any; /** * Converts an RGB source buffer into an RGBA destination buffer . * * @private * @param {any} src Source buffer containing RGB bytes. * @param {number} [srcPos=0] Start offset in the source buffer. * @param {Uint32Array} dest Destination buffer to receive packed RGBA pixels. * @param {number} [destPos=0] Start index in the destination buffer (in 32-bit words). * @param {number} width Image width in pixels. * @param {number} height Image height in pixels. * @returns {any} Object with updated srcPos, destPos. */ export declare function _convertRGBToRGBA(src: any, srcPos: number, dest: Uint32Array, destPos: number, width: number, // eslint-disable-line height: number): any; /** * Converts a grayscale image represented by a Uint8Array into an RGBA format stored in a Uint32Array. * * @private * @param {Uint8Array} src - The source array containing grayscale pixel values (0 to 255). * @param {Uint32Array} dest - The destination array where converted RGBA values will be stored. * @returns {void} This function does not return a value. */ export declare function _grayToRGBA(src: Uint8Array, dest: Uint32Array): void;