import TaskManager, { StopReason } from '../TaskManager.js'; /** * Immediately stops the current task flow with the given reason. * * This triggers: * - Flow-wide abort via `mainAbortController` * - Lifecycle shutdown for any running ops * - A consistent status applied to the flow and all ops * * The stop reason determines what status each op will be marked with. * * | Reason | Ops Status | * |----------|------------| * | expired | success | * | stopped | stopped | * | quit | failed | * | unknown | failed | * * `getStatus()` is used internally to apply the correct status values. * * The flow status set here is transient: the final result status is derived * from the op statuses when `start()` completes — 'failed' if any op failed, * 'success' otherwise. */ export declare function stopAllTaskManagerOperations(this: TaskManager, reason: StopReason): void;