import { Buffer } from 'buffer' ; export type Frame = Buffer | string ; export type Msg = Frame [ ] ; export interface IEndpoint { send ( msg ) : boolean ; close ( ) : void ; readonly address : string ; routingKey : Buffer ; routingKeyString : string ; removeListener ( event , listener ) : this ; on ( event , listener ) : this ; } export interface IListener { readonly address : string ; removeListener ( event , listener ) : this ; on ( event , listener ) : this ; close ( ) : void ; }