import 'rxjs/add/operator/catch'; import 'rxjs/add/operator/map'; import 'rxjs/add/observable/throw'; import 'rxjs/add/operator/timeoutWith'; import { AuthService } from '../auth/auth.service'; import { Oauth2Service } from '../resources/oauth-2.service'; import { AppConfigurationService } from '../common/app-configuration.service'; import { DevicesService } from '../resources/devices.service'; import { DatabaseService } from '../storage/database.service'; import { StorageService } from '../storage/storage.service'; import { EventsManagerService } from '../common/events-manager.service'; import { HttpInterceptor } from '../common/http-interceptor.service'; import { ConnectionMonitorService } from '../common/connection-monitor.service'; export declare class LocalConnectionService { private http; authService: AuthService; oauthService: Oauth2Service; devicesService: DevicesService; database: DatabaseService; eventsService: EventsManagerService; AppConfiguration: AppConfigurationService; private storage; private connectionMonitorService; private usingLocalConnection; private apiVersionUrl; private switchingConnection; private syncCollection; constructor(http: HttpInterceptor, authService: AuthService, oauthService: Oauth2Service, devicesService: DevicesService, database: DatabaseService, eventsService: EventsManagerService, AppConfiguration: AppConfigurationService, storage: StorageService, connectionMonitorService: ConnectionMonitorService); private increaseConnectionTries(); private startLocalConnectionTimer(); private testConnection(path, pingUrl, domain, onError?); private testConnections(domains, assignConnection?, refreshToken?); useRemoteAPI(assignConnection: boolean, anyConnectionAssigned: boolean, refreshToken: boolean): void; checkRemoteConnections(assignRemoteConnection?: boolean, testConnections?: boolean, refreshToken?: boolean): void; private checkGateways(localGateways, assignRemoteConnection?, testConnections?, refreshToken?); private setNewAPIURL(url, gateway, refreshToken?); checkLocalConnection(refreshToken?: boolean): void; }