import type { SankeyNode } from "./sankey.types.js"; /** * Compute the horizontal node position of a node in a Sankey layout with left alignment. * Returns (node.depth) to indicate the desired horizontal position of the node in the generated Sankey diagram. * * @param node Sankey node for which to calculate the horizontal node position. */ export declare function sankeyLeft(node: SankeyNode): number; /** * Compute the horizontal node position of a node in a Sankey layout with right alignment. * Returns (n - 1 - node.height) to indicate the desired horizontal position of the node in the generated Sankey diagram. * * @param node Sankey node for which to calculate the horizontal node position. * @param n Total depth n of the graph (one plus the maximum node.depth) */ export declare function sankeyRight(node: SankeyNode, n: number): number; /** * Compute the horizontal node position of a node in a Sankey layout with justified alignment. * Like d3.sankeyLeft, except that nodes without any outgoing links are moved to the far right. * Returns an integer between 0 and n - 1 that indicates the desired horizontal position of the node in the generated Sankey diagram. * * @param node Sankey node for which to calculate the horizontal node position. * @param n Total depth n of the graph (one plus the maximum node.depth) */ export declare function sankeyJustify(node: SankeyNode, n: number): number; /** * Compute the horizontal node position of a node in a Sankey layout with center alignment. * Like d3.sankeyLeft, except that nodes without any incoming links are moved as right as possible. * Returns an integer between 0 and n - 1 that indicates the desired horizontal position of the node in the generated Sankey diagram. * * @param node Sankey node for which to calculate the horizontal node position. */ export declare function sankeyCenter(node: SankeyNode): number;