export type EventCallback = (event: string, data: any) => void; /** * A module that hooks into the event bus fire method to dispatch all events to the callbacks * registered via the on() method. */ declare class GlobalEventListenerUtil { private listeners; constructor(eventBus: any); /** * Registers a new callback that will receive all events fired by bpmn.io. * * @param callback The callback to register */ on: (callback: EventCallback) => void; /** * Unregisters a previously registered callback. * * @param callback The callback to unregister */ off: (callback: EventCallback) => void; } export default GlobalEventListenerUtil;