import * as signalR from '@aspnet/signalr'; import { Injector } from '@angular/core'; import { LCUServiceSettings } from '../lcu-service-settings'; import { Observable, ReplaySubject, Observer, Subject } from 'rxjs'; export declare class RealTimeService { protected injector: Injector; protected attemptingToReconnect: boolean; protected connectionAttempts: number; protected hub: signalR.HubConnection; protected showConnectionError: boolean; protected started: ReplaySubject; protected url: string; private zone; ReconnectionAttempt: Subject; Settings: LCUServiceSettings; Started: Observable; constructor(injector: Injector); Start(): Promise; RegisterHandler(methodName: string): Observable; Invoke(methodName: string, ...args: any[]): Observable; WithHub(action: (hub: signalR.HubConnection) => void | Observable): Observable; protected buildHub(urlRoot: string): Promise; protected buildHubUrl(urlRoot: string): string; protected loadHubPath(): string; protected loadHubUrl(urlRoot: string): string; protected loadStateRoot(): string; protected runWithHub(obs: Observer, action: (hub: signalR.HubConnection) => void | Observable): void; protected start(): void; protected stop(): void; /** * Retry connection */ protected retryConnection(): void; /** * Attempt to reconnect */ protected reconnect(): void; /** * Stop trying to reconnect */ protected stopReconnection(): void; /** * Notify user of reconnection attempt(s) */ protected reconnectionMessage(): void; }