import * as d3 from 'd3'; import { calculateChartAxisMinMax, DataPoint, Line, LineCurve } from './types'; import { SharedValue } from 'react-native-reanimated'; export type PathObject = { d: string | null; x: d3.ScaleTime; y: d3.ScaleLinear; data: DataPoint[]; }; export declare const getChartMinMaxValue: ({ allData, alwaysStartYAxisFromZero, calculateChartYAxisMinMax, calculateChartXAxisMinMax, }: { allData: DataPoint[]; alwaysStartYAxisFromZero: boolean; calculateChartYAxisMinMax?: calculateChartAxisMinMax | undefined; calculateChartXAxisMinMax?: calculateChartAxisMinMax | undefined; }) => { minY: number; maxY: number; minX: number; maxX: number; }; export declare const createNewPath: ({ svgWidth, svgHeight, endSpacing, data, isFilled, curve, axisMinMax, }: { svgWidth: number; svgHeight: number; endSpacing: number; data: DataPoint[]; isFilled?: boolean | undefined; curve?: LineCurve | undefined; axisMinMax: ReturnType; }) => PathObject; export declare const getIndexOfTheNearestXPoint: (array: DataPoint[], value: number) => number; export declare const useForceReRender: () => () => void; /** * Fast deep equality comparison function * Based on fast-deep-equal library * Note: Functions are treated as equal without deep comparison */ export declare function isEqual(a: any, b: any): boolean; export declare const useActiveIndex: ({ activeTouchX, lines, activeLineIndex, axisMinMax, svgWidth, endSpacing, initialActivePoint, }: { activeTouchX: SharedValue; lines: Line[]; activeLineIndex: number; axisMinMax: { minX: number; maxX: number; minY: number; maxY: number; }; svgWidth: number; endSpacing: number; initialActivePoint?: number | undefined; }) => import("react-native-reanimated").DerivedValue; //# sourceMappingURL=utils.d.ts.map