import type { AxisId, DatapointMetadata, SeriesId, XYChartAxisInternal } from '../../types/xy-chart-internals.js'; import type { BarDatapoint } from '../../types/xy-chart.js'; export interface GroupingResult { datapointMetadata: DatapointMetadata; } /** * A class that encapsulates grouping operations for series variants. * This class can be instantiated by any series strategy that needs grouping functionality. */ export declare class GroupableSeriesHelper { private static readonly STARTING_POINT; private readonly groupData; readonly axisIdToDimension: Map>; constructor(); /** * Calculate total height of group bin. * Should be called at the beginning of a new grouping calculation cycle (preprocess phase). */ processGroupDomain(datapoint: BarDatapoint, chartOrientation: 'vertical' | 'horizontal', xAxis: XYChartAxisInternal, yAxis: XYChartAxisInternal): void; /** * Returns the total bin domain for a given group key. * The bin domain is the total height of the group, including both positive and negative values. * Note: totalNegative is already stored as an absolute value. */ getGroupBinDomain(groupKey: string): number | undefined; /** * Processes a datapoint for grouping, calculating the bin domain metadata. * Also registers the series in the dimension map for the primary axis. * Returns metadata with binDomain set but no accumulator (bars remain side-by-side). */ processGroupDatapoint(datapoint: BarDatapoint, chartOrientation: 'vertical' | 'horizontal', xAxis: XYChartAxisInternal, yAxis: XYChartAxisInternal, seriesId: string, datapointMetadata: DatapointMetadata): GroupingResult; }