import { default as React } from 'react'; import { DefaultLink, DefaultNode } from '@nivo/sankey'; interface DefaultNodeWithUnit extends DefaultNode { unit: string; } interface DefaultLinkWithUnit extends DefaultLink { unit: string; } export interface Props { sankeyData: { nodes: DefaultNodeWithUnit[]; links: DefaultLinkWithUnit[]; }; linktooltip: ({ link }: { link: any; }) => JSX.Element; nodetooltip: ({ node }: { node: any; }) => JSX.Element; customStyle?: object; customMargin?: object; } declare const Sankey: React.FC; export default Sankey;