import { Cluster } from '../cluster/models/cluster.models'; import { Config } from '../dimension/models/config.models'; import { AttributeMap } from '../model/models/attribute-map.models'; /** * Groups normalised fact sheets into named clusters based on up to 2 clustering dimensions. * Fact sheets with multiple values for a cluster field appear in multiple clusters. * The returned clusters are sorted per the sort configuration on each `ClusterConfig`. * * @param data - Normalised fact sheets (`AttributeMap[]` from `mapFactSheetsToAttributeMaps`) * @param config - Configuration with `clustering` (1–2 `ClusterConfig` items) and optional `view` * @returns A sorted array of `Cluster` objects, each containing an `id`, `label`, `color`, and `items` * @throws Error if `config.clustering` contains more than 2 entries */ export declare function computeClusters(data: AttributeMap[], config: Config): Cluster[];