import { Observation, SceneLayer } from '@graphysdk/react'; import { Box, Outlier } from '../../utils/read-boxplot'; export interface BoxplotKeys { /** What a box and the outliers standing over it share: its category and group. */ readBoxKey: (observation: Observation) => string; /** One key per outlier of a list, in its order: its box's key and its value, then which repeat of it it is. */ readOutlierKeys: (outliers: readonly Outlier[]) => string[]; } /** * A box keys on its category and group, read from the raw values rather than the band: the band moves with * the domain, the very change a mark should spring through, not remount on. An outlier keys on its value * too, so one that stays an outlier across a data change springs to its new place. */ export declare const createBoxplotKeys: (layer: SceneLayer) => BoxplotKeys; /** * The source outliers a highlight matched. An outlier keeps its whole row, so it is found by every value it * carries: two outliers of one box and value that differ elsewhere (`region`) are told apart, and two that * differ nowhere no predicate could tell apart either. */ export declare const selectMatchedOutliers: (sourceLayer: SceneLayer, sourceOutliers: readonly Outlier[], matchedOutliers: readonly Outlier[]) => Outlier[]; /** The outliers standing over any of the given boxes: a hovered or highlighted box raises its own. */ export declare const selectOutliersOfBoxes: (outliers: readonly Outlier[], boxes: readonly Box[], readBoxKey: BoxplotKeys["readBoxKey"]) => Outlier[];