import type { RefObject } from 'react'; /** Default palette — token-driven series colors, cycled by index. */ export declare const CHART_COLORS: string[]; export declare function seriesColor(index: number, explicit?: string): string; /** * Readable label colour for text drawn on `color`: the matching `--color-*-on` * token for role colours (theme-aware), black/white by luminance for #hex / * rgb() literals, otherwise `undefined` (caller keeps its default). */ export declare function readableOn(color: string | undefined): string | undefined; /** * Measures the host element's width with a ResizeObserver and returns a fluid * width. Falls back to `fallback` when measurement is unavailable (SSR/jsdom). */ export declare function useChartWidth(fallback?: number): [RefObject, number]; /** "Nice" max + evenly spaced ticks for a [0, max] axis. */ export declare function niceTicks(max: number, count?: number): { max: number; ticks: number[]; }; /** SVG path for a (possibly donut) pie slice. Angles in radians, 0 at 12 o'clock. */ export declare function arcPath(cx: number, cy: number, rOuter: number, rInner: number, startAngle: number, endAngle: number): string;