import type { LoopState, LoopPhase } from "./types.js"; export declare const DISPATCH_MARKERS: readonly ["[BACKGROUND TASK COMPLETED]", "[ALL BACKGROUND TASKS COMPLETE]", "[RECOVERY: PENDING TASKS DROPPED]"]; declare const TERMINAL_PHASES: Set; /** Phases owned by the origin/orchestrator — human input here is NOT an interrupt. */ declare const ORIGIN_OWNED_PHASES: Set; /** * Determine whether an incoming message should cancel the loop. * * Cancellation requires an **explicit stop signal** (the `/stop-loop` command * injects `STOP_LOOP_SIGNAL` into the message text). Ordinary user messages * no longer interrupt a running loop — only the dedicated command does. * * System re-prompts (dispatch completion markers, auto-continue, loop-progress * notes) are still excluded for safety. */ export declare function shouldCancelLoop(loopState: LoopState, messageText: string): boolean; export { TERMINAL_PHASES, ORIGIN_OWNED_PHASES }; //# sourceMappingURL=cancellation.d.ts.map