import { ReactElement } from 'react'; import { CartesianCardProps } from '../../cards/cartesian-card'; import { NumericKey } from '../../cards/keys'; import { ChartTooltipContext } from '../../types'; import { CandleDisplay } from '../candle-geometry'; type SharedProps> = Omit, 'series' | 'headlineSeries' | 'pillSeries' | 'aggregate' | 'target' | 'forecast' | 'bleed' | 'tiles'>; export interface CandlestickChartCardProps> extends SharedProps { /** Fields holding each period's open, high, low and close. */ open: Key; high: Key; low: Key; close: Key; /** Field holding traded volume, drawn as a linked pane under the price. */ volume?: Key; /** * `candle` (default), `hollow` rising bodies, `ohlc` bars, or `area` for the close alone, * colored by the period's direction. */ display?: CandleDisplay | 'area'; /** * Draws each candle body as a solid block receding up and to the right; the front keeps open * and close. OHLC bars and the area stay flat. */ depth?: boolean; /** `log` spaces prices by ratio, for long histories. Defaults to `linear`. */ scale?: 'linear' | 'log'; /** Names the price series in hover. Defaults to "Price". */ label?: string; /** Follow the newest candle as rows arrive, with a control to return to it. */ live?: boolean; /** Plot height in pixels. Defaults to 240. */ height?: number; /** Volume pane height in pixels. Defaults to 64. */ volumeHeight?: number; } /** Change from the first open to the last close. */ export declare function periodChange(data: readonly Row[], open: string, close: string): number | undefined; /** A hovered candle's open, high and low, formatted for the headline caption. */ export declare function describeCandle(format: (value: number) => string): (inspection: ChartTooltipContext) => string | null; /** * A market chart card: open-high-low-close candles (or an area of the close) with an optional * linked volume pane, a headline that follows the hovered candle, and its open, high and low * beside the date. */ export declare function CandlestickChartCard>({ open, high, low, close, volume, display, depth, scale, label, live, data, ranges, delta, valueFormat, locale, volumeHeight, ...props }: CandlestickChartCardProps): ReactElement; export {};