import * as signalR from '@aspnet/signalr'; import { EventEmitter } from '@angular/core'; import { Observable } from 'rxjs'; import { HttpClient, HttpHeaders } from '@angular/common/http'; export declare class RealTimeConnection { protected http: HttpClient; protected actionUrl: string; protected connectionAttempts: number; protected rtUrl: string; ConnectionError: EventEmitter; Hub: signalR.HubConnection; MaxConnectionRetryAttempts: number; ReconnectionAttempt: EventEmitter; Started: EventEmitter; constructor(http: HttpClient, rtUrl: string, actionUrl: string, maxConnectionRetryAttempts?: number); Start(transport?: signalR.HttpTransportType): void; RegisterHandler(methodName: string): Observable; InvokeAction(methodName: string, headers: HttpHeaders | { [header: string]: string | string[]; }, args: {}): Observable>; Invoke(methodName: string, ...args: any[]): Observable; protected buildHub(transport: signalR.HttpTransportType): Promise; protected stop(): Promise; /** * Retry connection */ protected retryConnection(): void; /** * Attempt to reconnect */ protected reconnect(): void; } //# sourceMappingURL=real-time.connection.d.ts.map