import { ThemeType } from '../../../types'; /** A single value the way callers pass it. */ export type RawPoint = number | { x?: string | number; y: number; label?: string; }; /** A caller-supplied series. */ export interface RawSeries { name?: string; /** Tone name (`primary`, `blue`, …) or any CSS color. */ color?: ThemeType | string; data: RawPoint[]; } /** Normalized point used internally by every chart. */ export interface Point { /** Numeric x for scaling (index if labels are categorical). */ x: number; y: number; /** Display label for the x value. */ label: string; } /** Normalized series used internally by every chart. */ export interface Series { name: string; /** Resolved CSS color (already `var(--bgl-…)` or a raw color). */ color?: ThemeType | string; points: Point[]; } export interface NormalizeOptions { /** Shared x labels; overrides per-point labels when provided. */ labels?: (string | number)[]; /** Fallback color (tone name or CSS) for series that don't set their own. Lets a single-series chart honor a top-level `color` prop. */ defaultColor?: ThemeType | string; } /** * Resolve `data` / `series` props into a uniform `Series[]`. * Exactly one of `data` or `series` is expected; `series` wins if both given. */ export declare function normalizeSeries(data: RawPoint[] | undefined, series: RawSeries[] | undefined, opts?: NormalizeOptions): Series[]; /** Flatten all y-values across series (for domain calc). */ export declare function allValues(series: Series[]): number[]; /** The x labels of the first/longest series (charts share an x axis). */ export declare function sharedLabels(series: Series[]): string[]; //# sourceMappingURL=data.d.ts.map