export { ChartSelectionCallbackFunction } from 'highcharts'; /** * Axis context of the selection. */ export interface SelectionAxisContextObject { /** * The maximum axis value, either automatic or set manually. */ max: number; /** * The minimum axis value, either automatic or set manually. */ min: number; } /** * The primary axes are `xAxis[0]` and `yAxis[0]`. Remember the unit of a * datetime axis is milliseconds since 1970-01-01 00:00:00. */ export interface SelectionContextObject extends Event { /** * Arrays containing the axes of each dimension and each axis' min and max * values. */ xAxis: SelectionAxisContextObject[]; /** * Arrays containing the axes of each dimension and each axis' min and max * values. */ yAxis: SelectionAxisContextObject[]; } export declare type EventsOptions = { /** * Fires when an area of the chart * has been selected. Selection is enabled by setting the chart's zoomType. * One parameter, `event`, is passed to the function, containing common * event information. The default action for the selection event is to zoom * the chart to the selected area. It can be prevented by calling * `event.preventDefault()` or return false */ selection?: (event: SelectionContextObject) => boolean | undefined; };