import EventBusHandler from "./eventbus.handler"; export default class EventBusChannel { channel: string | symbol; /** * The list of the handlers for the event */ handlers: EventBusHandler[]; /** * Create an event bus channel * * @param channel The name of the channel */ constructor(channel: string | symbol); /** * Helper method to stop extra handlers * from being added when the max number * has been met * * @param max */ getHandlersIfAllowed(max: number): EventBusHandler[]; }