import { ResourceEvent } from './events'; import { ResourceEventDispatcher, ResourceEventEmitter } from './interfaces'; export * from './interfaces'; export * from './events'; export * from './internal'; export * from './simple-events'; export declare let dispatcher: ResourceEventDispatcher; export declare let events$: ResourceEventEmitter; /** * Dispatch a resource control event. * These event's are fired to local listeners, not the user's listeners. * The local listeners will trigger user's listeners. * * @param event * @param async When not set, fire's the event sync within the current task. * When set to true the event is fired at the end of the current micro task * When set to a number, the even if fired as a macro task, after an amount of ms provided as the number. */ export declare function dispatchEvent(event: ResourceEvent, async?: number | true): void;