/** 8 visually distinct colours for chart series. */
export declare const CHART_COLORS: string[];
/**
 * Create a linear scale function that maps values from [domainMin, domainMax]
 * to [rangeMin, rangeMax].
 */
export declare function scaleLinear(domain: [number, number], range: [number, number]): (val: number) => number;
/** Render an SVG <text> element. */
export declare function svgText(x: number, y: number, text: string, opts?: {
    fontSize?: number;
    anchor?: string;
    fill?: string;
}): string;
/** Escape XML special chars for safe SVG embedding. */
export declare function escapeXml(str: string): string;
//# sourceMappingURL=chart-utils.d.ts.map