/** * Chart.js paints through a canvas, which cannot parse `light-dark()` or * `var()`. The `--seki-chart-*` custom properties resolve to `light-dark(...)` * pairs, and `getPropertyValue` returns such a declared value verbatim (a custom * property is substituted, never evaluated). To get a concrete color we consume * the property on a throwaway probe element inside the chart's shadow root and * read the computed `color`, which the browser always serialises as rgb()/rgba(). */ export interface ChartThemeColors { palette: string[]; grid: string; text: string; background: string; } /** Resolve a CSS value (usually `var(--token)`) to a concrete computed color. */ export declare function resolveColor(element: HTMLElement, cssValue: string, fallback: string): string; export declare function getChartColors(element: HTMLElement): string[]; export declare function getGridColor(element: HTMLElement): string; export declare function getTextColor(element: HTMLElement): string; export declare function getBackgroundColor(element: HTMLElement): string; export declare function getThemeColors(element: HTMLElement): ChartThemeColors; /** Stable key for comparing two resolved themes. */ export declare function themeSignature(theme: ChartThemeColors): string; /** * Apply an alpha to a hex, rgb() or rgba() color. Unparseable input is returned * unchanged. */ export declare function hexToRgba(color: string, alpha: number): string;