import { SpriteSheetConfig, Sprite } from "../types"; /** * Parse a sprite sheet configuration and return an array of sprite positions * Note: spacingX and spacingY represent the gap BETWEEN sprites, not padding around them. * The spacing is added after each sprite to calculate the next sprite's position. */ export declare function parseSpriteSheet(config: SpriteSheetConfig): Sprite[]; /** * Load an image from a URL */ export declare function loadImage(url: string): Promise; /** * Draw a sprite from a sprite sheet onto a canvas */ export declare function drawSprite(ctx: CanvasRenderingContext2D, image: HTMLImageElement, sprite: Sprite, destX: number, destY: number, destWidth?: number, destHeight?: number): void; //# sourceMappingURL=spriteSheet.d.ts.map