import { AggregatedItemGroup, AggregateItem, AggregationMode } from '../cluster/models/aggregation.models'; import { Config } from '../dimension/models/config.models'; import { ViewRequirements } from './models/view-requirements.models'; /** * Groups coloured fact sheets by their view index (colour bucket) for rollup display. * Each group corresponds to one legend entry and contains all items assigned to that colour. * Currently only `{ type: 'rollup' }` aggregation is implemented. * * @param items - Fact sheets paired with their cluster membership (used to apply view-per-cluster logic) * @param config - Configuration with `clustering` and `view` settings * @param viewRequirements - Legend and aggregation from {@link computeLegendAndViewAggregation} * @param aggregationMode - The grouping strategy; only `{ type: 'rollup' }` is supported * @returns One `AggregatedItemGroup` per legend entry, each containing its matched items */ export declare function aggregateItems(items: AggregateItem[], config: Config, viewRequirements: ViewRequirements, aggregationMode: AggregationMode): AggregatedItemGroup[];