import { FC, PropsWithChildren } from 'react'; import { CategoricalWithCustomColor } from '../../lib/tokens/CategoricalColors'; import { Status } from '../../lib/types/props'; import * as Aria from "react-aria-components"; export interface DonutChartSegment { value: number; title: string; color?: CategoricalWithCustomColor; valueText?: string; } export interface DonutChartProps extends Omit, PropsWithChildren { /** The status the donut chart is colored by. */ status?: Exclude; /** The size variant of the donut chart. @default "m" */ size?: "m" | "l"; /** Divides the fill of the donut chart into segments */ segments?: DonutChartSegment[]; /** * Whether the legend component is shown when segments are used. @default: * true */ showLegend?: boolean; /** The position of the legend. @default "right" */ legendPosition?: "top" | "left" | "bottom" | "right"; } /** @flr-generate all */ export declare const DonutChart: FC; export default DonutChart;