import { FC, ReactElement } from 'react'; import { ChartProps } from '../common/containers/ChartContainer'; import { ColorSchemeType } from '../common/color'; import { SankeyNodeProps, SankeyNode } from './SankeyNode'; import { SankeyLinkProps, SankeyLink } from './SankeyLink'; export declare type Justification = 'justify' | 'center' | 'left' | 'right'; export declare type NodeElement = ReactElement; export declare type LinkElement = ReactElement; export interface SankeyProps extends ChartProps { /** * Whether to animate the enter/update/exit. Set internally by `SankeyNode` and `SankeyLink`. */ animated?: boolean; /** * Color scheme for the nodes. Set internally by `SankeyNode`. */ colorScheme?: ColorSchemeType; /** * The node alignment method. */ justification?: Justification; /** * Width of the node. */ nodeWidth?: number; /** * Vertical padding between nodes in the same column. */ nodePadding?: number; /** * Nodes that are rendered. */ nodes: NodeElement[]; /** * Links that are rendered. */ links: LinkElement[]; } export declare const Sankey: FC;