import TinyHtmlTemplate from './TinyHtmlTemplate.mjs'; /** * TinyHtmlCanvas is a helper for elements, * providing a direct way to configure its size and retrieve the rendering context. * * @example * const canvas = new TinyHtmlCanvas({ width: 800, height: 600 }); * const ctx = canvas.getContext('2d'); * * @extends TinyHtmlTemplate */ declare class TinyHtmlCanvas extends TinyHtmlTemplate { /** * Creates a new TinyHtmlCanvas instance. * @param {Object} config * @param {number} [config.width] - Canvas width in pixels. * @param {number} [config.height] - Canvas height in pixels. * @param {string|string[]|Set} [config.tags=[]] - Initial CSS classes. * @param {string} [config.mainClass=""] - Main CSS class. */ constructor({ width, height, tags, mainClass }?: { width?: number; height?: number; tags?: string | string[] | Set; mainClass?: string; }); /** * Gets the rendering context of the canvas. * @param {string} [type="2d"] - Context type ("2d", "webgl", etc.). * @param {any} [options={}] - Context options. * @returns {RenderingContext|null} */ getContext(type?: string, options?: any): RenderingContext | null; } export default TinyHtmlCanvas; //# sourceMappingURL=TinyHtmlCanvas.d.mts.map