import type { SankeyLink as D3SankeyLink, SankeyNode as D3SankeyNode } from '../vendor/d3-sankey/index.js'; /** A node in the resolved domain graph model (accessor join output). */ export interface SankeyGraphNode extends Record { id: string; /** Resolved from `nodeLabelAccessor`, falling back to the node id. */ label: string; /** Resolved from `columnAccessor`; undefined when topology-inferred. */ column?: number; } /** A directed edge in the resolved domain graph model. */ export interface SankeyGraphLink extends Record { source: string; target: string; value: number; } /** The resolved domain graph model exposed via the data context. */ export interface SankeyGraphModel { nodes: SankeyGraphNode[]; links: SankeyGraphLink[]; } /** * A node after the d3-sankey layout pass: carries the domain fields plus the * computed geometry (`x0`/`x1`/`y0`/`y1`, `depth`, `value`, link references). */ export type SankeyLayoutNode = D3SankeyNode; /** * A link after the d3-sankey layout pass: `source`/`target` are resolved to * node objects and `width`/`y0`/`y1` describe the ribbon geometry. */ export type SankeyLayoutLink = D3SankeyLink; /** The computed layout model exposed via the layout context. */ export interface SankeyLayoutModel { nodes: SankeyLayoutNode[]; links: SankeyLayoutLink[]; } //# sourceMappingURL=sankey-internal.d.ts.map