/**任务收集器 * ``` * const tl = new AggregateList(); * tl.next = sleep(1) * tl.next = sleep(2) * await tl.toPromise(); * ``` */ export declare class AggregateList { private _toPromise?; private _errors; toPromise(): Promise; private _total; private _finished; set next(task: Promise | T); private _onSuccess; private _onError; private _reset; private _getError; constructor(); } export declare const wrapAggregateList: (cb: (aggregateList: AggregateList) => unknown) => Promise;