import { AsArray } from '../../interface'; import { SyncSeriesHook } from '../sync-series-hook/sync-series-hook'; /** * 串联钩子,按照注册顺序执行 * * @export * @class AsyncSeriesHook * @template T 输入值类型 * @template C 上下文声明对象 */ export declare class AsyncSeriesHook extends SyncSeriesHook { /** * 触发钩子,当某个钩子返回「null」时,中断后续执行。 * * @param {C} context * @param {...AsArray} args * @return {*} {Promise} * @memberof AsyncSeriesHook */ call(context: C, ...args: AsArray): Promise; /** * 注册异步钩子 * * @param {((...args: AsArray) => Promise)} fn 回调 * @memberof AsyncSeriesHook */ tapPromise(fn: (context: C, ...args: AsArray) => Promise): void; /** * 删除异步钩子注册 * * @author chitanda * @date 2021-04-30 14:04:42 * @param {(context: C, ...args: AsArray) => Promise} callBack */ removeTapPromise(callBack: (context: C, ...args: AsArray) => Promise): void; } //# sourceMappingURL=async-series-hook.d.ts.map