import { default as CHART_SERIES_COLORS_MARKDOWN } from './docs/colors/chart-series.md?raw'; export { CHART_SERIES_COLORS_MARKDOWN }; /** * A single list-valued color token exposed by a chart theme function. */ export interface ChartColorToken { /** Token name as used in the Sass theme function's argument (kebab-case), e.g. 'brushes'. */ name: string; /** * Whether this token's default value is the shared series brush palette * (`series`, resolving to `var(--chart-brushes)`) or a fixed, chart-specific * default (e.g. category-chart's `negative-brushes` defaults to a fixed red). */ defaultSource: "series" | "fixed"; /** Human-readable description of what this token colors. */ description: string; } /** * Color token information for a single chart type. */ export interface ChartTypeColorInfo { /** Display name, e.g. 'Category Chart'. */ displayName: string; /** Sass theme function name, e.g. 'category-chart-theme'. */ themeFunctionName: string; /** The chart type's list-valued series color tokens. */ colorTokens: ChartColorToken[]; } /** * Chart type keys intentionally excluded from `CHART_TYPE_COLOR_TOKENS`. * Kept as an explicit list (not just a comment) so tests can assert the * exclusion holds even as the map above is edited. */ export declare const EXCLUDED_CHART_TYPES: readonly ["sparkline"]; /** * Per-chart-type list-valued series color tokens, scoped to chart types that * expose an array-valued brush/outline palette (category, data, doughnut, * pie, funnel, shape, financial, linear/radial gauge, bullet graph). * * Sourced from `packages/theming/sass/themes/schemas/charts/light/*.scss`. */ export declare const CHART_TYPE_COLOR_TOKENS: Record; /** * List of in-scope chart type keys (stable order matching the map above). */ export declare const CHART_TYPES: string[]; /** * The default (regular) 10-color chart series palette, in order. */ export declare const CHART_BRUSHES_REGULAR: string[]; /** * The color-blind-friendly 10-color chart series palette, in order. * Activated via `configure-colors($enhanced-accessibility: true)`. */ export declare const CHART_BRUSHES_COLOR_BLIND: string[]; /** * Get color token info for a chart type. * @param chartType - The chart type key (e.g. 'category-chart'). * @returns The chart type's color token info, or undefined if not found or * intentionally excluded (e.g. 'sparkline'). */ export declare function getChartTypeColorTokens(chartType: string): ChartTypeColorInfo | undefined; /** * Resolve the series brush palette for a given mode. * @param mode - 'regular' (default) or 'color-blind'. * @returns The ordered 10-color palette for that mode. */ export declare function getChartBrushPalette(mode?: "regular" | "color-blind"): string[];