import { type StyleProp, type ViewStyle } from "../../style/index.js"; import { type StackedSegment } from "../shared/types.js"; export interface PieChartProps { /** The slices, in order; each takes its share of the circle. */ slices: StackedSegment[]; /** What the pie measures (e.g. "Traffic sources"); leads the accessible name. */ label?: string; /** Draw an annular ring with the total and label centered inside. */ donut?: boolean; /** Hide the legend (the labelled dots beside percentages). */ hideLegend?: boolean; /** Smaller diameter. */ compact?: boolean; /** Press-to-inspect: the selected slice index (controlled). Pass null for none. */ selected?: number | null; /** Press-to-inspect: the initially selected slice (uncontrolled). */ defaultSelected?: number; /** Fired when a press selects a slice (or clears it with null). */ onSelect?: (index: number | null) => void; /** E2E hook forwarded to the root element. */ testID?: string; /** For sizing/composition only. */ style?: StyleProp; } export declare function PieChart(props: PieChartProps): import("react").JSX.Element; //# sourceMappingURL=pie-chart.shared.d.ts.map