import { ChartUnit } from '../../../../core/types/chart-unit.js'; import { HistogramBin } from '../../../types/histogram.js'; export type CumulativePoint = { binsCumulative: number; baseCumulative: number; seriesId: string; }; export type MapStackedPoint = Map; /** * Gets the stacked key for the mapStackedPoints Map * * @param bin - Current bin * @param unit - Current series unit * @returns - Stacked key to access the mapStackedPoints */ export declare function getStackedKeyByUnit(bin: HistogramBin, unit: ChartUnit): string; /** * Gets the cumulative point value from the mapStackedPoints given the new value. * * @param mapStackedPoints - Given MapStackedPoint map * @param bin - Current datapoint * @param unit - Current series unit * @param seriesId - Current series id * @param value - Current modified value of the datapoint * @returns - CumulativePoint */ export declare function getCumulativeValue(mapStackedPoints: MapStackedPoint, bin: HistogramBin, unit: ChartUnit, seriesId: string, value?: number): { cumulativeValue: number; binsCumulative: number; baseCumulative: number; key: string; }; /** * Set the new CumulativePoint to the mapStackedPoints * * @param mapStackedPoints - Given MapStackedPoint map * @param unit - Current series unit * @param seriesId - Current series id * @param binsCumulative - Current cumulative value of bins * @param baseCumulative - Current base cumulative value */ export declare function setCumulativeBins(mapStackedPoints: MapStackedPoint, seriesId: string, key: string, binsCumulative: number, baseCumulative: number): void;