import { type LayoutStyle } 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 from `chart-2` on (the candles * own the status pair and the lead accent), or by an overlay's own `success`/`destructive` * tone. A `dashed` overlay draws dashed. */ 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; /** Strip the card surface for nesting inside an existing card (mirrors Stats). */ plain?: boolean; hideLegend?: boolean; /** A note at the end of the legend's row, pushed to its right edge (what the colours mean, a data source). */ legendCaption?: string; 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; /** Composition within a parent only, never a restyle hook and never a width: the parent layout container provides the bounds. */ style?: LayoutStyle; } /** 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