import { SunburstChartProps as RechartsSunburstChartProps, TooltipProps } from 'recharts'; import { BoxProps, ElementProps, Factory, MantineColor, StylesApiProps } from '@mantine/core'; import { ChartTooltipStylesNames } from '../ChartTooltip/ChartTooltip'; export interface SunburstChartData { name: string; value?: number; color?: MantineColor; children?: SunburstChartData[]; [key: string]: unknown; } export type SunburstChartStylesNames = 'root' | ChartTooltipStylesNames; export type SunburstChartCssVariables = { root: '--chart-stroke-color' | '--chart-size'; }; export interface SunburstChartProps extends BoxProps, StylesApiProps, ElementProps<'div'> { /** Data used to render chart */ data: SunburstChartData[]; /** Key in data object for the value @default 'value' */ dataKey?: string; /** Determines whether the tooltip should be displayed when a node is hovered @default true */ withTooltip?: boolean; /** Tooltip animation duration in ms @default 0 */ tooltipAnimationDuration?: number; /** Props passed down to `Tooltip` recharts component */ tooltipProps?: Omit, 'ref'>; /** Props passed down to recharts `SunburstChart` component */ sunburstChartProps?: Partial>; /** Controls color of the sectors stroke, by default depends on color scheme */ strokeColor?: MantineColor; /** Controls chart width and height @default 300 */ size?: number; /** Controls the radius of the inner circle at the center of the chart @default 50 */ innerRadius?: number; /** Gap between sectors and rings in px @default 1 */ gap?: number; /** Angle in degrees from which the chart should start @default 0 */ startAngle?: number; /** Angle in degrees at which the chart should end @default 360 */ endAngle?: number; /** Determines whether value labels are displayed inside each sector @default false */ withLabels?: boolean; /** A function to format values inside the tooltip and labels */ valueFormatter?: (value: number) => string; /** Additional elements rendered inside `SunburstChart` component */ children?: React.ReactNode; } export type SunburstChartFactory = Factory<{ props: SunburstChartProps; ref: HTMLDivElement; stylesNames: SunburstChartStylesNames; vars: SunburstChartCssVariables; }>; export declare const SunburstChart: import("@mantine/core").MantineComponent<{ props: SunburstChartProps; ref: HTMLDivElement; stylesNames: SunburstChartStylesNames; vars: SunburstChartCssVariables; }>;