import { Dimensions, Interpolation, Point, Rect, Scale, SparklineMark } from '../internal';
export declare const PRECISION = 2;
export declare const VIEW_HEIGHT = 100;
export declare function toValidData(data: unknown): number[];
export declare function calculateViewBox(mark: SparklineMark, pointCount: number, intervalLength?: number): Dimensions;
export declare function calculateDomain(values: number[], options?: {
    explicitMin?: number;
    explicitMax?: number;
    includeZero?: boolean;
}): Scale | undefined;
export declare function valueToY(value: number, range: {
    min: number;
    max: number;
}, viewHeight?: number): number;
export declare function toPlotPoints(values: number[], range: {
    min: number;
    max: number;
}, view: {
    width: number;
    height?: number;
}): Point[];
export declare function calculateSymbolIndices(values: number[], denote: {
    first: boolean;
    last: boolean;
    min: boolean;
    max: boolean;
}): Set<number>;
export declare function toInterpolation(interpolation: unknown): Interpolation;
export declare function toLinePath(points: Point[], interpolation: Interpolation, viewWidth: number): string;
export declare function toAreaPath(points: Point[], interpolation: Interpolation, viewHeight?: number): string;
export declare function toColumnRects(points: Point[], baselineY: number, width: number): Rect[];
export declare function toWinLossRects(values: number[], baselineY: number, dimensions: {
    width: number;
    height: number;
}): (Rect & {
    className: 'win' | 'loss' | 'draw';
})[];
