import { Job } from '@deot/helper-fp'; import { Parallel } from '@deot/helper-fp'; import { Task } from '@deot/helper-fp'; declare type Func = (_?: T) => void; export declare class Interrupter { static of(options?: InterrupterOptions): Interrupter; options: InterrupterOptions; _success?: Func; _fail?: Func; _task: Promise; _finish: boolean; constructor(options?: InterrupterOptions); _generateTask: () => void; next: (v?: T) => Promise; nextWithError: (v?: any) => Promise; finish: (v?: T) => this; finishWithError: (v?: T) => this; then(resolve: Func, reject?: Func): Promise; catch(callback?: Func): Promise; finally(callback?: Func): Promise; } export declare interface InterrupterOptions { timeout?: number; } export { Job } export { Parallel } export { Task } export { }