import { Observable } from 'rxjs' ; import { BroadcastEventListener } from '../eventing/broadcast.event.listener' ; import { ConnectionStatus } from './connection.status' ; export interface ISignalRConnection { readonly status : Observable < ConnectionStatus > ; readonly errors : Observable < any > ; readonly id : string ; invoke ( method , ... parameters ) : Promise < any > ; listen < T > ( listener ) : void ; listenFor < T > ( listener ) : BroadcastEventListener < T > ; listenForRaw ( listener ) : BroadcastEventListener < any [ ] > ; stop ( ) : void ; start ( ) : Promise < any > ; stopListening < T > ( listener ) : void ; }