import { type StyleProp, type ViewStyle } from "../../style/index.js"; import { type ChartSkin } from "../shared/types.js"; export interface WaterfallStep { /** Stable identity, used as the React key when present. */ id?: string | number; /** The step label under the bar. */ label: string; /** Signed change for this step. On a `total` step, a non-zero value * (re)sets the running total to that absolute level instead. */ value?: number; /** Render an absolute bar from zero: the running total so far (omit * `value` or pass 0), or an opening/re-based total (a non-zero `value`). */ total?: boolean; } export interface WaterfallChartProps { /** The bridge's steps, in order. */ steps: WaterfallStep[]; /** Optional heading shown above the plot. */ title?: string; compact?: boolean; hideGrid?: boolean; hideAxes?: boolean; /** Formats tick labels, the flag, and the accessible name. */ formatValue?: (v: number) => string; /** Scrub-to-inspect: the selected step index (controlled). Pass null for none. */ selected?: number | null; /** Scrub-to-inspect: the initially selected step (uncontrolled). */ defaultSelected?: number; /** Fired when a press/scrub selects a step (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; } /** Build a WaterfallChart from a platform skin. */ export declare function createWaterfallChart(skin: ChartSkin): (props: WaterfallChartProps) => import("react").JSX.Element; //# sourceMappingURL=waterfall-chart.shared.d.ts.map