import { type ThresholdIndicatorData } from '../../../core/components/threshold-bar/indicators/ThresholdIndicator.js'; import type { ThresholdMarker } from '../../../core/components/threshold-bar/types.js'; import type { MinMax } from '../../../core/types/min-max.js'; import type { AxisIdToScales } from '../../context/XYChartScales.context.js'; import type { AxisIdToFormatter, XYChartAxisInternal, XYChartThresholdsPropsInternal } from '../../types/xy-chart-internals.js'; import type { XYChartThresholdDynamicData, XYChartXAxisPosition, XYChartYAxisPosition } from '../../types/xy-chart.js'; interface ThresholdMarkersReducerConfig { axis: 'left' | 'right'; axisConfig?: XYChartAxisInternal; axesIdToScales: AxisIdToScales; axesIdToFormatter: AxisIdToFormatter; width: number; axes: XYChartAxisInternal[]; } export declare function getDynamicThresholdDomain(data: XYChartThresholdDynamicData[], side: 'left' | 'right', visibleDomain: MinMax): { y0: import("../../types/xy-chart.js").XYChartThresholdValue; y1: import("../../types/xy-chart.js").XYChartThresholdValue; }; /** * Returns a reducer function to accumulate threshold markers with scale and formatted value. */ export declare function markersReducer({ axis, axisConfig, axesIdToScales, axesIdToFormatter, width, axes, }: ThresholdMarkersReducerConfig): (acc: ThresholdMarker[], threshold: XYChartThresholdsPropsInternal[number]) => ThresholdMarker[]; interface XThresholdMarkersReducerConfig { axis: 'top' | 'bottom'; axisConfig?: XYChartAxisInternal; axesIdToScales: AxisIdToScales; axesIdToFormatter: AxisIdToFormatter; width: number; axes: XYChartAxisInternal[]; } /** * Reducer that accumulates the horizontal (X-axis static) threshold markers for the * top/bottom pill bars. Mirrors {@link markersReducer}, using the X scale and binding * to `xAxisId`. Non X-static thresholds are ignored. */ export declare function xMarkersReducer({ axis, axisConfig, axesIdToScales, axesIdToFormatter, width, axes, }: XThresholdMarkersReducerConfig): (acc: ThresholdMarker[], threshold: XYChartThresholdsPropsInternal[number]) => ThresholdMarker[]; export declare const axisPositionIncludes: (expectedPosition: "left" | "right") => (actualPosition: XYChartYAxisPosition | XYChartXAxisPosition) => boolean; export declare const xAxisPositionIncludes: (expectedPosition: "top" | "bottom") => (actualPosition: XYChartYAxisPosition | XYChartXAxisPosition) => boolean; type IndicatorData = (args: { axisIdToScales: AxisIdToScales; threshold: XYChartThresholdsPropsInternal[number]; width: number; height: number; }) => ThresholdIndicatorData[]; export declare const mapIndicatorDataFrom: IndicatorData; export {}; //# sourceMappingURL=utils.d.ts.map