import { Vector } from 'apache-arrow'; import { CosmographData } from ".."; import { ICosmographInternalApi } from '../internal'; /** * Creates a composite key from source and target indices using multiplication. * Uses BigInt to support unlimited unique points (within practical limits). * Uses 2^32 (4,294,967,296) as multiplier for efficient encoding to avoid collisions. * This is precision-lossless and O(1) for Map operations. */ export declare const createPairKey: (sourceIdx: number, targetIdx: number) => bigint; export declare const parsePairKey: (pairKey: bigint) => { sourceIdx: number; targetIdx: number; }; export declare class CosmographLinkAggregationManager { private _; constructor(_: ICosmographInternalApi); private _countCache; private _colorSumCache; private _widthSumCache; private _colorSumCacheColumn; private _widthSumCacheColumn; get countCache(): Map | null; get colorSumCache(): Map | null; get widthSumCache(): Map | null; buildCountCache(linksTable: CosmographData): void; buildColorSumCache(linksTable: CosmographData, column: Vector | null): void; buildWidthSumCache(linksTable: CosmographData, column: Vector | null): void; private _buildSumCacheForType; private _buildSumCache; private _getIndexColumns; aggregateFromCache(linksTable: CosmographData, strategy: 'count' | 'sum' | 'average', useColorCache?: boolean): number[] | undefined; getKeysByValueCondition(cache: Map | null, condition: (value: number) => boolean): bigint[]; getIndicesSetFromKeys(keys: bigint[]): number[]; getIndicesByValueCondition(cache: Map | null, condition: (value: number) => boolean): number[]; getIndicesByAverageCondition(countCache: Map | null, sumCache: Map | null, condition: (average: number) => boolean): number[]; clear(): void; clearColorSumCache(): void; clearWidthSumCache(): void; }