import { Vec2Array } from "@amodx/math"; import { TextureId } from "../../Textures/Texture.types"; import { CompiledTextureAnimation } from "./CompiledTextureAnimation"; import { TextureAnimationTexture } from "./TextureAnimationTexture"; export declare class CompiledTexture { id: string; static GetAtlasIndex: (x: number, y: number, boundsX: number) => number; static GetAtlasPosition: (index: number, boundsX: number, position?: Vec2Array) => Vec2Array; images: HTMLImageElement[]; /**Maps texture ids to their atlas sizes */ atlasSizeMap: Record; /**Maps texture ids to their index */ textureMap: Record; animations: CompiledTextureAnimation[]; /**To be used by the renderer to store a refernce to the actual texture used for rendering */ shaderTexture: any; animatedTexture: TextureAnimationTexture; constructor(id: string); getTextureIndex(id: TextureId): number; getTexturePath(id: TextureId): string; canvas: HTMLCanvasElement; context: CanvasRenderingContext2D; private setUpCanvas; getTextureData(id: TextureId): Promise; getTextureDataSync(id: TextureId): Uint8ClampedArray; }