import React from 'react'; import { color as ValidColor } from './types/color'; export interface BasicSegment { label: string; color: string; } export interface DonutSegment extends BasicSegment { count: number; legendClass?: string; } export interface BadgeRange { percent: number; content: string; color: ValidColor; } export interface PieChartCardProps { title?: React.ReactNode; segments: Array; mainSegment: string; badgeRanges?: Array; hasLegend?: boolean; } export interface PieChartProps { segments: Array; percentages: { [key: string]: number; }; mainSegment?: string; } export declare const PieChart: ({ segments, percentages, mainSegment, }: PieChartProps) => React.JSX.Element; export declare const PieChartLegend: ({ segments, percentages }: PieChartProps) => React.JSX.Element; export declare class PieChartCard extends React.Component { static defaultProps: { hasLegend: boolean; }; render(): React.JSX.Element; private calculatePercentages; private getBadge; } export default PieChartCard;