import { SankeyData, SankeyStyle, PlotArea, SankeyLink } from '../types'; export interface SankeyNodeLayout { x: number; y: number; width: number; height: number; color: string; value: number; } export interface SankeyLinkLayout { source: SankeyNodeLayout; target: SankeyNodeLayout; sourceOffset: number; targetOffset: number; sourceTotal: number; targetTotal: number; value: number; link: SankeyLink; } export interface SankeyLayoutResult { workingArea: PlotArea; nodeRegistry: Map; links: SankeyLinkLayout[]; nodeInValue: Map; nodeOutValue: Map; style: Required>; } export declare function computeSankeyLayout(data: SankeyData, style: SankeyStyle, plotArea: PlotArea): SankeyLayoutResult | null;