import Highcharts from 'highcharts'; export declare type LegendSeriesDataObject = { name: string; index: number; }; export declare type LegendObjectOptions = { title?: string; align?: 'top-left' | 'right-center' | 'bottom-center' | 'right-top'; /** Maximum pixel height for the legend */ maxHeight?: number; /** The width of the legend box. If a number is set, it translates to pixels. */ width?: number | string; /** * Callback function to format each of the series' labels. The `this` * keyword refers to the series object. By default the series name is printed. */ labelFormatter?: (seriesData: LegendSeriesDataObject) => string; /** * The x offset of the legend * Negative x moves it to the left, positive x moves it * to the right. */ x?: number; }; export declare type LegendOptions = false | LegendObjectOptions; export declare function createHighLegendOptions(options?: LegendOptions): Highcharts.LegendOptions; export declare function createTopLeftLegendOptions(): Highcharts.LegendOptions; export declare function createRightCenterLegendOptions(offsetY?: number): Highcharts.LegendOptions; export declare function createRightTopLegendOptions(): Highcharts.LegendOptions; export declare function createBottomCenterLegendOptions(): Highcharts.LegendOptions; export declare function createMapLegendOptions(isDataClassesDefined: boolean): Highcharts.LegendOptions;