import * as React from 'react'; import { type SankeyLinkIdentifierWithData, type SankeyNodeIdentifierWithData } from "./sankey.types.js"; import { type SankeyClasses } from "./sankeyClasses.js"; export interface SankeyPlotProps { /** * A CSS class name applied to the root element. */ className?: string; /** * Classes applied to the various elements. */ classes?: Partial; /** * Callback fired when a sankey item is clicked. * @param {React.MouseEvent} event The event source of the callback. * @param {SankeyNodeIdentifierWithData} node The sankey node identifier. */ onNodeClick?: (event: React.MouseEvent, node: SankeyNodeIdentifierWithData) => void; /** * Callback fired when a sankey item is clicked. * @param {React.MouseEvent} event The event source of the callback. * @param {SankeyLinkIdentifierWithData} link The sankey link identifier. */ onLinkClick?: (event: React.MouseEvent, link: SankeyLinkIdentifierWithData) => void; } /** * Renders a Sankey diagram plot. */ declare function SankeyPlot(props: SankeyPlotProps): import("react/jsx-runtime").JSX.Element | null; declare namespace SankeyPlot { var propTypes: any; } export { SankeyPlot };