import { ProjectedPoint } from './geometry'; import { LineCurve } from '../../charts/src/series/src/types'; export interface DrawSeries { points: ProjectedPoint[]; color: string; } export interface DrawAxisTick { position: number; label: string; } export interface DrawSparkChartOptions { /** CSS pixels; the context is pre-scaled by `dpr` so all maths stays in CSS units. */ width: number; height: number; dpr: number; lineWidth: number; padding: { top: number; right: number; bottom: number; left: number; }; grid: boolean; gridLines: number; gridColor: string; curve: LineCurve; xAxis: boolean; yAxis: boolean; xTicks: DrawAxisTick[]; yTicks: DrawAxisTick[]; axisColor: string; axisTextColor: string; axisFont: string; activeIndex: number | null; activeColor: string; revealProgress: number; series: DrawSeries[]; /** Dashed rule at each series' starting value. */ baseline: boolean; /** Filled dot on each series' last sample; 0 disables it. */ endpointRadius: number; } export declare function drawSparkChart(ctx: CanvasRenderingContext2D, options: DrawSparkChartOptions): void;