import { Observable } from 'rxjs'; import { BusEvent } from './BusEvent'; /** * An event that can be cancelled. * @export * @class Cancellable * @extends {BusEvent} * @template T The target type. */ export declare class Cancellable extends BusEvent { /** * Cancels the event. Only valid within the context of the `wait` method. * @see {@link BusEvent#wait} */ cancel(): void; /** * Creates an observable that waits for the results of the event. * @returns {Observable} * @example * const event = new Cancellable(null); * * bus.emit(event); * * event.results().subscribe(() => { * // The event was successful and NOT cancelled. * }); */ results(): Observable; }