import { Selection } from 'd3-selection'; import { SankeyInputLink, SankeyInputNode, SankeyLink } from '../types'; import { SankeyConfigInterface } from '../config'; export type LinkPathOptions = { x0: number; x1: number; y0: number; y1: number; width: number; }; export declare function linkPath({ x0, x1, y0, y1, width }: LinkPathOptions): string; export declare function getLinkPathOptions(d: SankeyLink): LinkPathOptions; export type LinkAnimState = { x0: number; x1: number; y0: number; y1: number; width: number; }; export interface LinkElement extends SVGPathElement { _animState?: LinkAnimState; } export declare function createLinks(sel: Selection, SVGGElement, unknown>): void; export declare function updateLinks(sel: Selection, SVGGElement, unknown>, config: SankeyConfigInterface, duration: number): void; export declare function removeLinks(sel: Selection, SVGGElement, unknown>): void;