/** * Copyright (c) 2017-present, RobotlegsJS. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { ISlot } from "./ISlot"; import { OnceSignal } from "./OnceSignal"; export declare class Promise extends OnceSignal { private _isDispatched; private _valueObjects; /** @inheritDoc */ addOnce(listener: Function): ISlot; /** * @inheritDoc * @throws flash.errors.IllegalOperationError IllegalOperationError: You cannot dispatch() a Promise more than once */ dispatch(...valueObjects: any[]): void; }