/** * Creates a texture atlas from an array of ImageData objects. * * A texture atlas is a single large texture that contains multiple smaller images. * This allows efficient rendering by reducing the number of texture bindings needed. * * The atlas uses a grid layout where each image gets a square region sized to * accommodate the largest image dimension. Images are placed left-to-right, top-to-bottom. * * @param imageDataArray - Array of ImageData objects to pack into the atlas * @param webglMaxTextureSize - WebGL maximum texture size limit (default: 16384) * @returns Atlas data object containing: * - atlasData: RGBA pixel data as Uint8Array * - atlasSize: Total atlas texture size in pixels * - atlasCoords: UV coordinates for each image as Float32Array * - atlasCoordsSize: Grid size (number of rows/columns) * Returns null if creation fails or no valid images provided */ export declare function createAtlasDataFromImageData(imageDataArray: ImageData[], webglMaxTextureSize?: number): { atlasData: Uint8Array; atlasSize: number; atlasCoords: Float32Array; atlasCoordsSize: number; } | null;