import type { ContextCallbackParams, DatumItemCallbackParams, HighlightState } from '../../chart/callbackOptions'; import type { AgSeriesTooltipRendererParams } from '../../chart/tooltipOptions'; import type { ContextDefault, DatumDefault, DatumKey } from '../../chart/types'; import type { LineDashOptions, StrokeOptions } from './commonOptions'; export type AgOhlcSeriesItemType = 'up' | 'down'; export type AgOhlcSeriesBaseOptions = AgOhlcSeriesOptionsKeys & AgOhlcSeriesOptionsNames; export interface AgOhlcSeriesOptionsKeys { /** xKey as specified on series options. */ xKey: DatumKey; /** The key to use to retrieve open values from the data. */ openKey: DatumKey; /** The key to use to retrieve close values from the data. */ closeKey: DatumKey; /** The key to use to retrieve high values from the data. */ highKey: DatumKey; /** The key to use to retrieve low values from the data. */ lowKey: DatumKey; } export interface AgOhlcSeriesOptionsNames { /** xName as specified on series options. */ xName?: string; /** yName as specified on series options. */ yName?: string; /** A human-readable description of open values. If supplied, this will be shown in the default tooltip and passed to the tooltip renderer as one of the parameters. */ openName?: string; /** A human-readable description of close values. If supplied, this will be shown in the default tooltip and passed to the tooltip renderer as one of the parameters. */ closeName?: string; /** A human-readable description of high values. If supplied, this will be shown in the default tooltip and passed to the tooltip renderer as one of the parameters. */ highName?: string; /** A human-readable description of low values. If supplied, this will be shown in the default tooltip and passed to the tooltip renderer as one of the parameters. */ lowName?: string; } type OhlcItemCallbackParams = DatumItemCallbackParams; export type AgOhlcSeriesBaseItemStylerParams = OhlcItemCallbackParams & ContextCallbackParams & AgOhlcSeriesOptionsKeys & StrokeOptions & LineDashOptions; export interface AgOhlcSeriesBaseTooltipRendererParams extends AgSeriesTooltipRendererParams, AgOhlcSeriesOptionsKeys, AgOhlcSeriesOptionsNames, StrokeOptions, LineDashOptions { /** Direction of the datum */ itemType: 'up' | 'down'; } export {};