import * as i0 from '@angular/core'; import { ElementRef, OnInit, OnDestroy, OnChanges, SimpleChanges, InjectionToken } from '@angular/core'; import Highcharts from 'highcharts/esm/highcharts.src'; import { Observable } from 'rxjs'; import Highmaps from 'highcharts/esm/highmaps.src'; import Highstock from 'highcharts/esm/highstock.src'; import Highcharts$1 from 'highcharts/esm/highcharts-gantt.src'; /** * @license * Copyright Felix Itzenplitz. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at * https://github.com/cebor/angular-highcharts/blob/master/LICENSE * @author Felix Itzenplitz * @author Timothy A. Perez (contributor) */ type Point = number | [number, number] | Highcharts.Point; declare class Chart { private options; private refSubject; ref$: Observable; /** * @deprecated Deprecated. Please use `ref$`. */ ref: Highcharts.Chart | undefined; constructor(options?: Highcharts.Options); /** * Add Point * @param point Highcharts.DataPoint, number touple or number * @param serieIndex Index position of series. This defaults to 0. * @param redraw Flag whether or not to redraw point. This defaults to true. * @param shift Shift point to the start of series. This defaults to false. */ addPoint(point: Point, serieIndex?: number, redraw?: boolean, shift?: boolean): void; /** * Add Series * @param series Series Configuration * @param redraw Flag whether or not to redraw series. This defaults to true. * @param animation Whether to apply animation, and optionally animation configuration. This defaults to false. */ addSeries(series: Highcharts.SeriesOptionsType, redraw: boolean | undefined, animation: boolean): void; /** * Remove Point * @param pointIndex Index of Point * @param serieIndex Specified Index of Series. Defaults to 0. */ removePoint(pointIndex: number, serieIndex?: number): void; /** * Remove Series * @param seriesIndex Index position of series to remove. */ removeSeries(seriesIndex: number): void; init(el: ElementRef): void; destroy(): void; } /** * @license * Copyright Felix Itzenplitz. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at * https://github.com/cebor/angular-highcharts/blob/master/LICENSE */ declare class MapChart { private options; private refSubject; ref$: Observable; /** * @deprecated Deprecated. Please use `ref$`. */ ref: Highmaps.Chart | undefined; constructor(options?: Highmaps.Options); init(el: ElementRef): void; destroy(): void; } /** * @license * Copyright Felix Itzenplitz. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at * https://github.com/cebor/angular-highcharts/blob/master/LICENSE * * @author Felix Itzenplitz * @author Timothy A. Perez (contributor) */ declare class StockChart { private options; private refSubject; ref$: Observable; /** * @deprecated Deprecated. Please use `ref$`. */ ref: Highstock.Chart | undefined; constructor(options?: Highstock.Options); init(el: ElementRef): void; destroy(): void; } /** * @license * Copyright Felix Itzenplitz. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at * https://github.com/cebor/angular-highcharts/blob/master/LICENSE */ declare class HighchartsGantt { private options; private refSubject; ref$: Observable; /** * @deprecated Deprecated. Please use `ref$`. */ ref: Highcharts$1.Chart | undefined; constructor(options?: Highcharts$1.Options); init(el: ElementRef): void; destroy(): void; } /** * @license * Copyright Felix Itzenplitz. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at * https://github.com/cebor/angular-highcharts/blob/master/LICENSE */ declare class ChartDirective implements OnInit, OnDestroy, OnChanges { private el; chart: Chart | StockChart | MapChart | HighchartsGantt | undefined; constructor(el: ElementRef); ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; ngOnDestroy(): void; private init; private destroy; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * @license * Copyright Felix Itzenplitz. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at * https://github.com/cebor/angular-highcharts/blob/master/LICENSE */ declare let HIGHCHARTS_MODULES: InjectionToken; declare class ChartService { private chartModules; constructor(chartModules: any[]); initModules(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class ChartModule { private cs; constructor(cs: ChartService); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { Chart, ChartDirective, ChartModule, HIGHCHARTS_MODULES, HighchartsGantt, MapChart, StockChart };