import type { SankeyLayoutLink, SankeyLayoutModel, SankeyLayoutNode } from '../types/sankey-internal.js'; import type { SankeyShape } from '../types/sankey-shape.js'; /** * The set of nodes and links that should be visually emphasized in the active * interaction state. All other nodes and links are dimmed. */ export interface ActiveConnectedSet { nodes: SankeyLayoutNode[]; links: SankeyLayoutLink[]; } /** * Resolves the active visual connected set from the current click-selection and * hover state, applying click-over-hover precedence. * * Click selection always takes visual precedence: when `selected` is defined * and its identity resolves in the current `layout`, `hovered` is ignored for * visual rendering purposes. When the selected identity is no longer present * (data changed), the function falls through to hover state so the pointer can * recover visually without requiring an explicit deselect. With neither * interaction it returns `undefined` (no dimming). * * Both `selected` and `hovered` carry only stable ids (not layout-object * references) so this function always reads from the current layout, never * stale geometry. */ export declare function getActiveConnectedSet(layout: SankeyLayoutModel, selected: SankeyShape | undefined, hovered: SankeyShape | undefined): ActiveConnectedSet | undefined; //# sourceMappingURL=get-active-connected-set.d.ts.map