import type { SkPath } from "@shopify/react-native-skia"; /** * Rounds a number to a specified precision. * * @param value The value to round * @param precision The precision to round the value to. Defaults to 15. * @returns The rounded value */ export declare const round: (value: number, precision?: number) => number; /** * Given a path and an x value, gets the closest x and y values on the path for the x value, and * the index of the x value in the path. * @param path The path to get the x and y values from * @param x The raw x value of the gesture * @returns A tuple containing the x, y, and index values */ export declare const getClosestPointForX: (path: SkPath, x: number) => [number, number, number]; export interface ComputePathProps { width: number; height: number; points: [number, number][]; cursorRadius?: number; minValue: number; maxValue: number; minTimestamp: number; maxTimestamp: number; curveType: "linear"; } /** * Computes the path of the chart based on the points array. If the points array is empty, a * horizontal straight line across the center of the chart is returned. * @param param0 * @returns */ export declare const computePath: ({ width, height, points, cursorRadius, minTimestamp, maxTimestamp, minValue, maxValue, }: ComputePathProps) => SkPath; /** * Computes the data needed to render the graph. * * @param points The points to render on the graph * @returns The data used by the graph */ export declare const computeGraphData: (points: [number, number][]) => { points: [number, number][]; minTimestamp: number; maxTimestamp: number; minValue: number; minValueIndex: number; minValueXProportion: number; maxValue: number; maxValueIndex: number; maxValueXProportion: number; }; //# sourceMappingURL=math.d.ts.map