import type { Game } from '../../core/game.js'; import type { Stage } from '../../core/stage.js'; import type { DisplayObject } from '../display_object.js'; import type { RenderSession } from '../render_session.js'; export declare class CanvasRenderer { type: number; resolution: number; clearBeforeRender: boolean; transparent: boolean; autoResize: boolean; contextLost: boolean; width: number; height: number; view: HTMLCanvasElement; context: CanvasRenderingContext2D; refresh: boolean; count: number; renderSession: RenderSession; /** * Creates a new CanvasRenderer instance. * @param {Game} _game - The game instance. */ constructor(game: Game); /** * Renders the stage to canvas. * @param {Stage} root - The root stage to render. */ render(root: Stage): void; /** * Destroys this renderer and cleans up resources. * @param {boolean} removeView - Whether to remove the view from the DOM. */ destroy(removeView?: boolean): void; /** * Resizes the canvas to the specified dimensions. * @param {number} width - The new width of the canvas. * @param {number} height - The new height of the canvas. */ resize(width: number, height: number): void; /** * Renders a display object to canvas. * @param {Image} displayObject - The display object to render. * @param {CanvasRenderingContext2D} context - The canvas rendering context. * @param {Matrix} matrix - The transformation matrix. */ renderDisplayObject(displayObject: DisplayObject, context?: CanvasRenderingContext2D): void; /** * Maps blend modes to canvas rendering operations. */ mapBlendModes(): void; /** * Initializes the WebGL context for rendering. * @param {Game} game - The game instance. */ initContext(_game: Game): void; } //# sourceMappingURL=renderer.d.ts.map