import React from 'react'; import { Arc as ArcType, PieArcDatum as PieArcDatumType, Pie as PieType } from 'd3-shape'; import { $TSFIXME, AddSVGProps, ArcPathConfig, PiePathConfig } from '../types'; export declare type PieArcDatum = PieArcDatumType; export declare type ProvidedProps = { path: ArcType<$TSFIXME, PieArcDatum>; arcs: PieArcDatum[]; pie: PieType<$TSFIXME, Datum>; }; export declare type PieProps = { /** className applied to path element. */ className?: string; /** Top offset of rendered Pie. */ top?: number; /** Left offset of rendered Pie. */ left?: number; /** Array of data to generate a Pie for. */ data?: Datum[]; /** Optional render function invoked for each Datum to render something (e.g., a Label) at each pie centroid. */ centroid?: (xyCoords: [number, number], arc: PieArcDatum) => React.ReactNode; /** Invoked for each datum, returns the value for a given Pie segment/arc datum. */ pieValue?: PiePathConfig['value']; /** Comparator function to sort *arcs*, overridden by pieSortValues if defined. If pieSort and pieSortValues are null, arcs match input data order. */ pieSort?: PiePathConfig['sort']; /** Comparator function to sort arc *values*, overrides pieSort if defined. If pieSort and pieSortValues are null, arcs match input data order. */ pieSortValues?: PiePathConfig['sortValues']; /** Render function override which is passed the configured arc generator as input. */ children?: (provided: ProvidedProps) => React.ReactNode; } & Pick, 'startAngle' | 'endAngle' | 'padAngle'> & Pick>, 'innerRadius' | 'outerRadius' | 'cornerRadius' | 'padRadius'>; export default function Pie({ className, top, left, data, centroid, innerRadius, outerRadius, cornerRadius, startAngle, endAngle, padAngle, padRadius, pieSort, pieSortValues, pieValue, children, ...restProps }: AddSVGProps, SVGPathElement>): JSX.Element; //# sourceMappingURL=Pie.d.ts.map