import { type NumericalDatapoint, type TimeframeDatapoint } from '../../../../core/utils/get-data-point-is-gap.js'; import type { XYChartAxisInternal } from '../../../types/xy-chart-internals.js'; import type { AreaDatapoint, LineDatapoint } from '../../../types/xy-chart.js'; /** * Gets the gap policy for a given axis. * - Categorical axes always return 'connect' * - Time axes return the configured gapPolicy or default to 'gap' * - Numerical/Log axes return the configured gapPolicy or default to 'connect' * * @param axis - The axis configuration * @returns The gap policy for the axis */ export declare function getAxisGapPolicyThreshold(axis: XYChartAxisInternal): number; export declare function getXDatapointDimensionValues(datapoint: LineDatapoint | AreaDatapoint, axis: XYChartAxisInternal): TimeframeDatapoint | NumericalDatapoint; export declare function getYDatapointDimensionValues(datapoint: LineDatapoint | AreaDatapoint, axis: XYChartAxisInternal): TimeframeDatapoint | NumericalDatapoint; /** * Detects if there's a gap between two consecutive datapoints based on axis gap policies. * Checks both X and Y axes if their gap policy thresholds are defined. * * @param lastDatapoint - The previous datapoint in the series * @param currentDatapoint - The current datapoint being processed * @param xAxis - X-axis configuration with gap policy * @param yAxis - Y-axis configuration with gap policy * @returns true if a gap is detected on either axis, false otherwise */ export declare function detectGapBetweenDatapoints(lastDatapoint: LineDatapoint | AreaDatapoint, currentDatapoint: LineDatapoint | AreaDatapoint, xAxis: XYChartAxisInternal, yAxis: XYChartAxisInternal): boolean;