import type { SankeyLayoutLink, SankeyLayoutNode } from '../types/sankey-internal.js'; /** The transitive data flow reachable from a node: its related nodes and every link crossed while collecting them. */ export interface SankeyRelatedFlow { nodes: SankeyLayoutNode[]; links: SankeyLayoutLink[]; } /** * Traverses the full data flow of `node`: every node feeding into it * (following `targetLinks` upstream) and every node it feeds into (following * `sourceLinks` downstream), transitively, plus every link crossed while * doing so, including links between two related nodes that never touch * `node` itself. `node` itself is excluded from `nodes`. * * The two directions are walked separately on purpose. A single undirected * traversal would step back down from an ancestor into that ancestor's other * branches and end up returning the whole connected component, pulling in * siblings that neither feed the hovered node nor are fed by it. */ export declare function getRelatedSankeyFlow(node: SankeyLayoutNode): SankeyRelatedFlow; //# sourceMappingURL=get-related-sankey-flow.d.ts.map