import EventBus from './eventbus/eventbus'; import Service from './service/service'; export default class Portals { /** * Holds the key/value table for the event buses */ private buses; /** * Holds the key/value table for the services */ private services; /** * Create and/or retrieve an event bus * * @param name The name of the event bus */ bus(name: string): EventBus; /** * Create and/or retrieve a service * * @param name The name of the service */ service(name: string): Service; /** * Destroy a bus * * @param name The name of the bus */ destroyBus(name: string): void; /** * Destroy a service * * @param name The name of the service */ destroyService(name: string): void; }