import { PromiseOrValue } from "./interfaces"; import { PromiseCallback, PromiseErrback, PromiseProgback } from "./promise/Promise"; /** * Transparently applies callbacks to values and/or promises. */ export declare function when(value: PromiseOrValue): PromiseLike; export declare function when(value: PromiseOrValue, callback?: PromiseCallback, errback?: PromiseErrback, progress?: PromiseProgback): PromiseOrValue;