import type { LiveChartPalette, SeriesConfig, ThemeMode } from "./types"; /** Parse a CSS color string to [r, g, b]. Supports `#rgb`, `#rrggbb`, `rgb()`, and `rgba()`. */ export declare function parseColorRgb(color: string): [number, number, number]; /** * Parse a color into `[r, g, b, a]` — RGB channels 0–255, alpha 0–1. Extends * {@link parseColorRgb} with the alpha channel of an `rgba(...)` string; * `rgb(...)` and `#hex` (which carry no alpha) default to `a = 1`. Used to feed * the area-dots shader a vec4 color uniform. */ export declare function parseColorRgba(color: string): [number, number, number, number]; /** * Default left-edge fade gradient stops for `dstOut` blending: same RGB as the chart * background (`palette.bgRgb`), opacity 1 → 0. Matches the container `backgroundColor`. */ export declare function leftEdgeFadeColorsFromBgRgb(bgRgb: [number, number, number]): { startColor: string; endColor: string; }; /** * Derive a full palette from a single accent color + theme mode. * Momentum colors are always semantic green/red regardless of accent. */ export declare function resolveTheme(color: string, mode: ThemeMode): LiveChartPalette; /** * Merge caller palette overrides on top of a derived palette. Only the keys * present on `override` are replaced; everything else keeps the derived value. * Returns the original palette unchanged when no override is supplied. */ export declare function applyPaletteOverride(palette: LiveChartPalette, override: Partial | undefined): LiveChartPalette; /** * Default multi-series line colors — Tailwind 500 scale, order: blue, red, green, * amber, violet, pink, cyan, orange. */ export declare const SERIES_COLORS: ("#22c55e" | "#ef4444" | "#3b82f6" | "#f59e0b" | "#8b5cf6" | "#ec4899" | "#06b6d4" | "#f97316")[]; /** Derive per-series palettes from series definitions. */ export declare function resolveSeriesPalettes(series: SeriesConfig[], mode: ThemeMode): Map; //# sourceMappingURL=theme.d.ts.map