import { BackendContext } from './backend-context';
export declare class RenderCanvas {
    static from(canvas: HTMLCanvasElement | OffscreenCanvas, contextAttributes?: WebGLContextAttributes): RenderCanvas;
    private _canvas;
    private _glContext;
    private retainCount;
    constructor(canvas: HTMLCanvasElement | OffscreenCanvas, contextAttributes?: WebGLContextAttributes);
    retain(): void;
    release(): void;
    get canvas(): HTMLCanvasElement | OffscreenCanvas;
    get glContext(): BackendContext;
}
