/** * A version of dojo.when, but you can provide the binding scope. * @example * // object style version * ct.when(asyncProgress(),{ * progressCounter:0, * onProgress : function(){ * ++this.progressCounter; * }, * onResolve : function(){ * var x = this.progressCounter; * t.assert(d, function(){ * doh.assertEqual(expectedCount,x); * }); * }, * onError : function(){ * d.errback(true); * } * }); * * @example * // direct/method style version * var scope = { * progressCounter : 0 * }; * ct.when(asyncProgress(), * function(){ * var x = this.progressCounter; * t.assert(d, function(){ * doh.assertEqual(expectedCount,x); * }); * }, * function(){ * d.errback(true); * }, * function(){ * ++this.progressCounter; * }, * scope * ); */ declare function _default(promiseOrValue: any, ...args: any[]): any; export { _default as default };