/** * Read theme tokens from a DOM element's computed style. * Every returned value is a resolved CSS color string. */ export function readTokens(el: any): { primary: string; secondary: string; surface: string; text: string; textHint: string; textSecondary: string; cardBg: string; border: string; info: string; success: string; warning: string; error: string; }; /** * Generate a palette of n colors cycling through the theme's status colors. * For n > 6, alpha-reduced repeats are used (no external color deps). */ export function palette(n: any, tokens: any): any[]; /** * Build a Chart.js data object from the canonical user-facing API. */ export function buildData(type: any, { data, series, labels }: { data: any; series: any; labels: any; }, tokens: any): { datasets: { label: undefined; data: any; backgroundColor: any; }[]; labels?: undefined; } | { labels: any; datasets: any; }; /** * Build a full Chart.js options object inferred from type, style, and tokens. * @param {string} type - chart type * @param {string} style - visual design language * @param {object} tokens - resolved CSS theme tokens * @param {{ title, legend, animated, userOptions, seriesCount, xAxisLabel, yAxisLabel }} params */ export function buildOptions(type: string, style: string, tokens: object, { title, legend, animated, userOptions, seriesCount, xAxisLabel, yAxisLabel, }: { title: any; legend: any; animated: any; userOptions: any; seriesCount: any; xAxisLabel: any; yAxisLabel: any; }): { responsive: boolean; maintainAspectRatio: boolean; animation: boolean | { duration: number; easing: string; animateRotate: boolean; animateScale: boolean; animations?: undefined; } | { duration: number; easing: string; animateRotate?: undefined; animateScale?: undefined; animations?: undefined; } | { duration: number; easing: string; animations: { x: { type: string; easing: string; duration: number; from: number; }; }; animateRotate?: undefined; animateScale?: undefined; }; color: any; font: { family: string; }; plugins: { legend: { display: boolean; position: string; labels: { color: any; usePointStyle: boolean; padding: number; font: { size: number; }; }; }; tooltip: { enabled: boolean; backgroundColor: any; titleColor: any; bodyColor: any; borderColor: any; borderWidth: number; padding: number; cornerRadius: number; boxPadding: number; }; title: { display: boolean; text: any; color: any; font: { size: number; weight: string; }; padding: { bottom: number; }; } | undefined; }; };