import type { BlockOutput, Runnable, IHass, IEventBus } from '../types/index.ts'; import type { Block } from './block.ts'; export declare enum BlockExecutionMode { Parallel = "Parallel", Sequence = "Sequence" } type Output = (BlockOutput & { success: boolean; }) | undefined; /** * Responsible for executing groups of blocks and emitting the associated events for * each execution. */ export declare class Executor implements Runnable { private client; private events; triggerId: string; private input?; private executionMode?; private parent?; private executionQueue; private bus; private result; private aborted; constructor(sequence: Block[], client: IHass, events: IEventBus, triggerId: string, input?: I | undefined, executionMode?: BlockExecutionMode | undefined, parent?: Block | undefined); private runPromiseOrRejectWhenAborted; private executeBlock; emitPendingMessages(): void; private waitOrAbort; /** * Run blocks associated with this executor. Call `finished()` to get the execution outcome */ run(): Promise; finished(): Promise[]>; abort(): void; } export {}; //# sourceMappingURL=executor.d.ts.map