import * as React from 'react'; import { Linecap, TextAnchor } from 'react-native-svg'; export interface IMDChartDataSet { color?: string; theme?: string; width?: number; values: number[]; } export interface IMDLineProps { stroke: string; strokeWidth: number; strokeLinecap: Linecap; } export interface IMDTextProps { fill: string; fontSize: number; textAnchor: TextAnchor; } export interface IMDChartProps { size?: number[]; datasets: IMDChartDataSet[]; lines?: number; format?: (val: number) => string; max?: number; min?: number; step?: number; labels: string[]; lineProps?: IMDLineProps; pathProps?: IMDLineProps; textXProps?: IMDTextProps; textYProps?: IMDTextProps; } export interface IMDPathStyle { fill: string; stroke: string; strokeWidth?: number; } export interface IMDPathObject { style: IMDPathStyle; value: string; area?: IMDPathObject; } export default class MDChart extends React.Component { static defaultProps: { size: any[]; lines: number; format: (val: number) => number; lineProps: IMDLineProps; pathProps: IMDLineProps; textXProps: IMDTextProps; textYProps: IMDTextProps; }; constructor(props: IMDChartProps); render(): JSX.Element; private renderLinearGradient; private renderAxisY; private renderAxisX; private renderPath; private calcPaths; private calcMax; private calcMin; private calcStep; private calcOffsetTop; private calcOffsetBottom; private calcOffsetLeft; private calcOffsetRight; }