import type { PieConfig } from '@ant-design/plots'; import React from 'react'; import type { BasePlotProps, Theme } from '../types'; /** * PieDataItem is the type for each data item in the pie chart. * It includes the name of the sector and its corresponding value. * @param category The name of the sector. * @param value The value of the sector. */ type PieDataItem = { category: string; value: number; [key: string]: string | number; }; /** * the props for the Pie * @param data pie data */ export type PieProps = BasePlotProps & Partial & Theme & { innerRadius?: number; }; declare const Pie: (props: PieProps) => React.JSX.Element; export default Pie;