declare class Async { static sequence(steps: Function[], verify?: Function, done?: Function): Promise<{}>; /** * Waits for given event on EventEmitter * @param {EventEmitter} emitter Instance of EventEmitter-compatible entity * @param {string} eventName Name of event to wait * @param {function} [condition] Event is being ignored if condition passed and returns false * @returns {Promise} */ static waitForEvent(emitter: any, eventName: string, condition?: Function): Promise<{}>; /** * Gives control to the event loop for one tick * Useful to execute some asynchronous events in test */ static tick(): Promise<{}>; } export default Async; export { Async };