import { HttpClient } from '@angular/common/http'; import { InjectionToken } from '@angular/core'; import { AbmDataMapping, AbmEchartsConfig } from '../global/types'; export declare const ECHARTS_CONFIG: InjectionToken; export declare class AbmConfigService { private http; echartsConfig?: AbmEchartsConfig; config: { [name: string]: any; }; mappings: AbmDataMapping[]; staticData: { [name: string]: any; }; echartTheme: { name: string; options: any; }[]; private _dataDir; constructor(http: HttpClient, echartsConfig?: AbmEchartsConfig); loadStaticData(): Promise; private _loadConfig; private _loadMapping; /** * 用于在启动时加载静态数据,也可以用在程序中动态加载 data 目录的数据。 * @param fileName Optional, 位于 data path 的需加载的文件名。默认为 static-data.json */ _loadStaticData(fileName?: string): Promise; private _loadEchartTheme; private _loadEchartsMapCities; getConfig(name: string): any; getMapping(name: string): AbmDataMapping; getStaticData(name: string): any; getDataServerConfig(): { apiEnable: boolean; url: string; api: string; }; getBeConfig(): { apiEnable: boolean; url: string; api: string; }; getWsConfig(): { wsEnable: boolean; url: string; ws: string; }; }