export class CanvasRenderingContext2D { /** * @param {HTMLCanvasElement} canvas - The canvas element to create the context from. * @param {Object} [contextAttributes] - Optional attributes for the context. */ constructor(canvas: HTMLCanvasElement, contextAttributes?: any); /** @type {HTMLCanvasElement} */ canvas: HTMLCanvasElement; /** * @returns {Object} The context attributes. */ getContextAttributes(): any; #private; }