import { type StyleProp, type ViewStyle } from "../../style/index.js"; import { type ChartSeries, type ChartSkin } from "../shared/types.js"; export interface ChartDatum { /** * Stable identity for this datum, used as the React key when present. Supply * it when the data can reorder or when labels are not unique; otherwise the * array index is used. */ id?: string | number; /** Bucket label shown under (vertical) or beside (horizontal) the bar. */ label: string; /** The bar's magnitude. Compared against `max` to size the bar. */ value: number; } export interface ChartProps { /** The bars to render, in order (single-series mode). */ data?: ChartDatum[]; /** Category labels along the x axis (grouped mode, with `series`). */ labels?: string[]; /** Multiple series rendered as grouped columns per category, colored by the chart-1..8 tokens (or a series' own `success`/`destructive` tone). */ series?: ChartSeries[]; /** Stack the grouped series within one column per category (composition) instead of clustering them side by side. */ stacked?: boolean; /** Optional heading shown above the plot. */ title?: string; /** Axis maximum. Defaults to the largest value in the data (the largest category TOTAL when `stacked`). */ max?: number; success?: boolean; destructive?: boolean; horizontal?: boolean; compact?: boolean; /** Hide the series legend (grouped mode shows one by default). */ hideLegend?: boolean; /** Press-to-inspect: the selected category index (controlled). Pass null for none. Vertical charts only. */ selected?: number | null; /** Press-to-inspect: the initially selected category (uncontrolled). */ defaultSelected?: number; /** Fired when a press selects a category (or clears it with null). */ onSelect?: (index: number | null) => void; /** E2E hook forwarded to the root element. */ testID?: string; /** Outer layout composition only (width/flex within a parent), never a restyle hook. */ style?: StyleProp; } export declare function createChart(skin: ChartSkin): (props: ChartProps) => import("react").JSX.Element; //# sourceMappingURL=chart.shared.d.ts.map