import * as React from 'react'; import { Animated } from 'react-native'; export interface IMDDoughnutArcSet { color: string; proportion: number; } export interface IMDDoughnutProps { radius: number; strokeWidth: number; animate?: boolean; animateTime?: number; data: IMDDoughnutArcSet[]; } export interface IMDDoughnutState { arcProportAnimatedValues: Animated.Value[]; arcProportValues: number[]; } export default class MDDoughnut extends React.Component { static defaultProps: { animate: boolean; animateTime: number; }; constructor(props: IMDDoughnutProps); private isAnimating; private data; componentDidMount(): void; componentDidUpdate(): void; shouldComponentUpdate(nextProps: IMDDoughnutProps): boolean; componentWillReceiveProps(nextProps: IMDDoughnutProps): void; render(): JSX.Element | null; private startAnimatedFill; private animateDuration; private animateType; private combineCircle; private renderArc; private extractProportion; }