import { FC } from 'react'; import { SankeyNodeExtra } from '../utils'; export declare type SankeyLabelPosition = 'inside' | 'outside'; export interface SankeyLabelFormatProps { x: number; y: number; textAnchor: string; node: SankeyNodeExtra; } export interface SankeyLabelProps { /** * Whether the element is active or not. Set internally by `Sankey`. */ active: boolean; /** * Whether the label is disabled. Set internally by `Sankey`. */ disabled: boolean; /** * Width of the chart. Set internally by `Sankey`. */ chartWidth?: number; /** * CSS class to apply. */ className?: string; /** * Fill color. */ fill: string; /** * Label position. */ position?: SankeyLabelPosition; /** * Node data. Set internally by `Sankey`. */ node?: SankeyNodeExtra; /** * Opacity callback. Used internally by `Sankey`. */ opacity: (active: boolean, disabled: boolean) => number; /** * Padding between the label and the node. */ padding?: string | number; /** * Whether to show the label or not. */ visible: boolean; /** * Width of the node set by the 'Sankey'. */ nodeWidth: number; /** * Custom formatting for the label. */ format?: (value: SankeyLabelFormatProps) => any; } export declare const SankeyLabel: FC>;