import { ReactElement } from 'react'; import { CartesianCardProps } from '../../cards/cartesian-card'; import { NumericKey } from '../../cards/keys'; import { CandleDisplay } from '../candle-geometry'; /** A line over the price: a simple or exponential average, or Bollinger bands. */ export type IndicatorOverlay = 'sma' | 'ema' | 'bollinger' | { kind: 'sma' | 'ema'; period: number; } | { kind: 'bollinger'; period?: number; deviations?: number; }; /** A linked pane under the price. */ export type IndicatorPane = 'rsi' | 'macd' | 'volume' | { kind: 'rsi'; period: number; } | { kind: 'macd'; fast?: number; slow?: number; signal?: number; }; type SharedProps> = Omit, 'series' | 'headlineSeries' | 'pillSeries' | 'aggregate' | 'target' | 'forecast' | 'bleed' | 'tiles'>; export interface IndicatorChartCardProps> extends SharedProps { /** Field holding each period's close; every indicator derives from it. */ close: Key; /** Fields for candles. With all three, the price draws as candles; otherwise as a line. */ open?: Key; high?: Key; low?: Key; /** Field holding traded volume, for a `volume` pane. */ volume?: Key; /** `candle`, `hollow`, `ohlc`, or `line`. Defaults to candles when open, high and low are set. */ display?: CandleDisplay | 'line'; /** Lines drawn over the price. Defaults to none. */ overlays?: readonly IndicatorOverlay[]; /** Linked panes under the price, top to bottom. Defaults to RSI then MACD. */ panes?: readonly IndicatorPane[]; /** Names the price series in hover. Defaults to "Price". */ label?: string; scale?: 'linear' | 'log'; live?: boolean; /** Height of each indicator pane in pixels. Defaults to 72. */ paneHeight?: number; } /** * Price with technical indicators: moving averages or Bollinger bands over candles or a line, and * RSI, MACD or volume panes below that move together as you hover. */ export declare function IndicatorChartCard>({ close, open, high, low, volume, display: suppliedDisplay, overlays, panes, label, scale, live, data, ranges, delta, valueFormat, locale, paneHeight, ...props }: IndicatorChartCardProps): ReactElement; export {};