/** Manages the canvas: creates it, keeps its resolution in sync with the layout, exposes CSS parts. */ export declare class CanvasManager { #private; /** * @param {HTMLElement} host The element that owns the canvas * @param {ShadowRoot} shadowRoot The host's shadow root */ constructor(host: HTMLElement, shadowRoot: ShadowRoot); /** * Creates the internal canvas and starts observing the host size. * @param {{ dpr?: number }} [options] */ init(options?: { dpr?: number; }): void; /** * Adopts a custom canvas, removing any internal one. * @param {HTMLCanvasElement} canvas */ preserveCustomCanvas(canvas: HTMLCanvasElement): void; /** Removes the internal canvas from the shadow root. */ removeInternalCanvas(): void; /** Tags non-internal canvases (e.g. the audio analyzer) as `part="analyzer"`. */ tagAnalyzerCanvases(): void; /** Removes non-internal canvases from the shadow root. */ removeAnalyzerCanvases(): void; /** @returns {HTMLCanvasElement | null} The managed canvas */ get canvas(): HTMLCanvasElement | null; /** @returns {ResizeObserver | null} Test seam */ get resizeObserver(): ResizeObserver | null; /** Stops observing the host. */ disconnect(): void; /** * Recomputes the size after `width`/`height`/`dpr` changes, without recreating the canvas. * @param {number} [dpr] */ refresh(dpr?: number): void; }