import { Subscription } from '../events/event-emitters' ; import { BridgeMessage } from './bridge-message.interface' ; export interface BridgeConnection < Message = BridgeMessage > { send ( message ) ; listen ( handleIncomingMessage ) : Subscription ; }