import React from 'react'; import { DonutChartData } from './types'; export interface DonutLegendProps { chartData: DonutChartData[]; backgroundColors: string[]; /** 按图索引维护的隐藏集合 */ hiddenDataIndicesByChart: Record>; /** 当前图索引 */ chartIndex: number; onLegendItemClick: (index: number) => void; total: number; baseClassName: string; hashId: string; isMobile: boolean; /** 与 ChartContainer / 图表 theme 一致,用于图例文字与分页按钮 */ theme?: 'light' | 'dark'; } declare const DonutChartLegend: React.FC; export default DonutChartLegend;