export default class SpriteSheet { private spriteSheet; private tileWidth; private tileHeight; /** * @param gridWidth The width of the grid, in tiles * @param gridHeight The height of the grid, in tiles * @param canvasWidth The width of the canvas, in pixels * @param canvasHeight The height of the canvas, in pixels */ constructor(gridWidth: number, gridHeight: number, canvasWidth: number, canvasHeight: number, colors: string[]); /** * Draw a sprite to a canvas * @param spriteId - The id of the sprite to draw * @param context - The canvas context to draw to * @param x - The x position on the canvas to draw the sprite to * @param y - The y position on the canvas to draw the sprite to */ drawSprite(spriteId: number, colorIndex: number, context: CanvasRenderingContext2D, x: number, y: number): void; }