import { AvailableChartColorsKeys } from '../../atoms/Charts/chartUtils'; export type DonutChartVariant = 'donut' | 'pie'; export type BaseEventProps = { eventType: 'sector'; categoryClicked: string; [key: string]: number | string; }; export type DataItem = Record & { color?: string; }; export type DonutChartEventProps = BaseEventProps | null | undefined; export type DonutChartProps = React.HTMLAttributes & { data: DataItem[]; labelKey: string; valueKey: string; variant?: DonutChartVariant; valueFormatter?: (value: number) => string; valueLabel?: string; captionLabel?: string; isTooltipVisible?: boolean; legendPosition?: 'bottom' | 'right' | 'none'; }; export type DonutChartContextProps = DonutChartProps & { categoryColors?: Map; }; export type TooltipProps = Pick; export type LegendProps = { data: DataItem[]; labelKey: string; position?: 'bottom' | 'right' | 'none'; }; export type PayloadItem = { category: string; value: number; color: string; payload: DataItem; }; export type ChartTooltipProps = { active: boolean | undefined; payload: PayloadItem[]; }; //# sourceMappingURL=types.d.ts.map