import type { SparkLineGeometry, SparkLinePoint } from '../types'; /** Resolves the legacy boolean and numeric end-dot options into one render count. */ export declare const getDotsToShow: (showEndDot: boolean, endDotCount: number) => number; /** * Splits coordinates at null data values. Runs of two or more points become polylines, while * one-point runs are returned separately because SVG cannot display them as a line. * When nulls are accepted, their already-normalized coordinates remain in the same line. */ export declare const getSegmentSets: (segmentData: (number | null)[], points: SparkLinePoint[], acceptNull: boolean) => { lines: SparkLinePoint[][]; isolatedPoints: SparkLinePoint[]; }; type CalculateGeometryProps = { acceptNull: boolean; data: (number | null)[]; endDotCount: number; endDotRadius: number; endDotStrokeWidth: number; height: number; isArea: boolean; lineLength?: number; lineStrokeWidth: number; showEndDot: boolean; width: number; yMax?: number; yMin?: number; }; /** * Converts SparkLine data into render-ready SVG geometry. This function is deliberately pure so * line, area, null, and resizing behavior can be tested independently from React interaction state. */ export declare const calculateGeometry: ({ acceptNull, data, endDotCount, endDotRadius, endDotStrokeWidth, height, isArea, lineLength, lineStrokeWidth, showEndDot, width, yMax, yMin, }: CalculateGeometryProps) => SparkLineGeometry; export {}; //# sourceMappingURL=geometry.d.ts.map