/** * Endless loop state management. * * A loop spans multiple sessions toward a persistent objective. */ import type { LoopState, LoopTerminationReason } from "./types.js"; export declare function getLoop(cwd: string): LoopState | undefined; export declare function enableLoop(cwd: string, objective: string): LoopState; export declare function disableLoop(cwd: string): LoopState | undefined; export declare function resetLoop(cwd: string): LoopState | undefined; export declare function terminateLoop(cwd: string, reason: LoopTerminationReason): LoopState | undefined; export declare function recordSessionWarp(cwd: string): LoopState | undefined; export declare function setPendingWarpSessionId(cwd: string, sessionId: string): LoopState | undefined; export declare function clearPendingWarpSessionId(cwd: string): LoopState | undefined; /** Directly set loop state (test helper). */ export declare function setLoop(cwd: string, loop: LoopState): void; /** Remove loop state (test helper). */ export declare function clearLoop(cwd: string): void; //# sourceMappingURL=loop.d.ts.map