/**
 * Stop-auto hook handler — the autonomous-loop driver for `/sw:auto`.
 *
 * Fires when a session ends. Unlike the other Stop hooks, this one is allowed to
 * BLOCK so that Claude Code re-prompts the model and the auto loop continues
 * (see plugins/specweave/skills/auto/SKILL.md "Core Loop"):
 *
 *   IMPLEMENT -> TEST -> FIX -> PASS -> NEXT -> ... -> ALL DONE -> sw:done --auto
 *
 * Decision table (any throw short-circuits to `approve` so ordinary sessions are
 * never trapped):
 *
 *   no auto-mode.json | active !== true | stale      -> reset .stop-auto-turns; { approve }
 *   turns > auto.maxTurns (default 20)                -> clear counter;          { approve }  // safety stop
 *   0 pending tasks AND all ACs satisfied             -> clear counter;          { block: all_complete_needs_closure }
 *   otherwise (work remains)                          -> increment counter;      { block: <P> task(s) / <A> AC(s) remain }
 *
 * @module core/hooks/handlers/stop-auto
 */
import type { HandlerFn } from './types.js';
export declare const handle: HandlerFn;
//# sourceMappingURL=stop-auto.d.ts.map