import { type StyleProp, type ViewStyle } from "../../style/index.js"; import { type ChartSeries, type ChartSkin } from "../shared/types.js"; export interface Candle { open: number; high: number; low: number; close: number; } export interface CandlestickChartProps { /** Period labels along the x axis, one per candle. */ labels: string[]; /** One OHLC candle per label. */ candles: Candle[]; /** Optional volume per candle, drawn as a docked pane under the price plot. */ volume?: number[]; /** Optional overlay series (e.g. moving averages), colored by the chart-1..8 tokens (or an overlay's own `success`/`destructive` tone). */ overlays?: ChartSeries[]; /** Optional heading shown above the plot. */ title?: string; /** Y-axis overrides. Defaults to nice bounds around the lows/highs (not zero-based). */ max?: number; min?: number; compact?: boolean; hideLegend?: boolean; hideGrid?: boolean; hideAxes?: boolean; /** Formats tick labels and accessible values (data formatting, not styling). */ formatValue?: (v: number) => string; /** Scrub-to-inspect: the selected candle index (controlled). Pass null for none. */ selected?: number | null; /** Scrub-to-inspect: the initially selected candle (uncontrolled). */ defaultSelected?: number; /** Fired when a press/scrub selects a candle (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 CandlestickChart from a platform skin. */ export declare function createCandlestickChart(skin: ChartSkin): (props: CandlestickChartProps) => import("react").JSX.Element; //# sourceMappingURL=candlestick-chart.shared.d.ts.map