import { Server as AsyncAPIServer , AsyncAPIDocument } from '@asyncapi/parser' ; interface IGleeConnectionConstructor { connection : any ; channels : string [ ] ; serverName : string ; server : AsyncAPIServer ; parsedAsyncAPI : AsyncAPIDocument ; } class GleeConnection { private _rawConnection : any ; private _channels : string [ ] ; private _serverName : string ; private _AsyncAPIServer : AsyncAPIServer ; private _parsedAsyncAPI : AsyncAPIDocument ; param options param { any } options . connection param { String [ ] } options . channels param { String } options . serverName param { AsyncAPIServer } options . server param { AsyncAPIDocument } options . parsedAsyncAPI constructor ( { connection , channels , serverName , server , parsedAsyncAPI } ) { this . _rawConnection = connection ; this . _channels = channels ; this . _serverName = serverName ; this . _AsyncAPIServer = server ; this . _parsedAsyncAPI = parsedAsyncAPI ; } get rawConnection ( ) : any { return this . _rawConnection ; } get channels ( ) : string [ ] { return this . _channels ; } get serverName ( ) : string { return this . _serverName ; } get AsyncAPIServer ( ) : AsyncAPIServer { return this . _AsyncAPIServer ; } get parsedAsyncAPI ( ) : AsyncAPIDocument { return this . _parsedAsyncAPI ; } param { String } channelName return { Boolean } hasChannel ( channelName ) { return this . channels . includes ( channelName ) ; } return { Any } getRaw ( ) { return this . rawConnection ; } } export default GleeConnection ;