import { HttpClient, HttpParams } from '@angular/common/http'; import { InjectionToken } from '@angular/core'; import { Observable, ReplaySubject } from 'rxjs'; import { AbmDataMapping, AbmRequestLink, AbmResponseData, AbmUser } from '../global/types'; import { AbmConfigService } from './abm-config.service'; export declare enum DATA_STATUS { NORMAL = 0, WARN = 1, ERROR = 2 } export declare const ABM_REQUESTS: InjectionToken; export declare class AbmDataService { private http; private configService; private _requests?; private _apiUrl; private _useMock; dataStatus$: ReplaySubject; private _isCheckingErr; private _dataErrorCount; private _requestMap; constructor(http: HttpClient, configService: AbmConfigService, _requests?: AbmRequestLink[]); private _initApiUrl; private _countDataApiStatus; private _checkError; setRequests(requests: AbmRequestLink[]): void; addRequest(request: AbmRequestLink): AbmRequestLink; getRequest(indexName: string, newName?: string): AbmRequestLink; clearStatus(): void; dataMapping(input: Array, mapping: AbmDataMapping, c: new () => T): Array; getData(request: AbmRequestLink, ops?: { body?: any; params?: HttpParams; }): Observable; login(name: string, password: string): Observable; logout(): Observable; }