export declare class Canvas {
canvas: HTMLCanvasElement;
context: CanvasRenderingContext2D;
width: number;
height: number;
scale: number;
constructor(canvas: HTMLCanvasElement);
/**
* Clears the canvas
*/
clear(): void;
/**
* Converts the canvas into a static image
* @return {ImageData} [description]
*/
getImage(): ImageData;
/**
* Creates and returns the canvas data as an HTML png image
* @return {HTMLImageElement} [description]
*/
getPNG(): HTMLImageElement;
/**
* draws an image to the canvas
* @param {ImageData} image [description]
*/
drawImage(image: ImageData): void;
}