import type { Canvas2D, Context2D } from "../canvas-types"; export interface ChromeCacheChart { _chromeCanvas: Canvas2D | null; _chromeCache: ImageBitmap | null; _chromeCacheDirty: boolean; _chromeCacheGen: number; } /** * Run the static-chrome cache pattern shared by sunburst + treemap. * Resizes the canvas, paints the static layer (and snapshots it as an * `ImageBitmap`) when dirty, otherwise blits the cache; then runs the * caller-provided overlay layer for hover/highlight state. * * Returns the prepared `ctx` already in DPR-scaled space so the overlay * callback can paint in CSS pixels — except `null` if either the canvas * is missing a 2D context or the chart has nothing to paint. */ export declare function withChromeCache(chart: ChromeCacheChart, canvas: Canvas2D, dpr: number, cssWidth: number, cssHeight: number, drawStatic: (ctx: Context2D) => void, drawOverlay: ((ctx: Context2D) => void) | null): void;