export interface MyAsyncCallback { displayName?: string; (...param: Argument): Promise | undefined | undefined | boolean; } /** * like CallbackList, but async run one by one */ export declare class AsyncCallbackList { protected list: MyAsyncCallback[]; protected running: boolean; constructor(); count(): number; reset(): void; /** * @param name optional name of `item` (will assign displayName to `item`) * @returns function list length */ add(item: MyAsyncCallback): number; /** * @returns if removed: return `item`; if did not exists: return null */ remove(item: MyAsyncCallback): null | MyAsyncCallback; /** * Stop run if one callback return `true` * @returns {boolean} true if one callback return true */ run(...argument: Argument): Promise; } //# sourceMappingURL=callback-list.async.d.ts.map