import { AttributeMap } from '../model/models/attribute-map.models'; import { Item } from '../model/models/item.models'; import { Legend, LegendItem } from '../model/models/legend.models'; import { ViewConfig } from '../model/models/view-config.models'; import { Aggregation } from './models/aggregation.models'; import { ItemViewValue } from './models/item-view-value.model'; /** * Computes view (colour) assignments for all fact sheets in a single pass. * Combines legend computation and view application without cluster-aware aggregation. * For cluster-aware colouring, use the two-step {@link computeLegendAndViewAggregation} + {@link applyViewToItem} instead. * * @param data - Normalised fact sheets (`AttributeMap[]` from `mapFactSheetsToAttributeMaps`) * @param config - View configuration specifying the attribute to colour by and its strategy * @returns `{ items, legend }` — each item has a `viewIndex` and `color`; legend maps indices to labels/colours */ export declare function computeViews(data: AttributeMap[], config: ViewConfig): { items: Item[]; legend: LegendItem[]; }; export declare function applyView(attributeMap: AttributeMap, viewConfig: ViewConfig, legend: Legend, aggregation?: Aggregation): ItemViewValue;