/** * Ready-delay state machine for the shepherd iterate loop. * * When all READY conditions hold, shepherd writes a `ready-since.txt` marker * to the state dir. The loop continues until the PR has been READY for * `readyDelaySeconds` consecutively. Any not-READY result resets the timer. */ interface ReadyDelayState { isReady: boolean; /** * When true, the loop should cancel itself — the PR has been READY for * longer than the configured ready-delay. */ shouldCancel: boolean; /** How many seconds remain in the ready-delay. */ remainingSeconds: number; } /** * Update the ready-delay state machine and return the current decision. * * Call this at the end of each sweep iteration: * - If `isReady == true`: start or continue the ready timer. * - If `isReady == false`: reset the timer. * * When `shouldCancel == true`, the formatter tells loop-capable agents to cancel * the loop and tells one-shot agents to stop. */ export declare function updateReadyDelay(prNumber: number, isReady: boolean, readyDelaySeconds: number, owner: string, repo: string, options?: { retainElapsed?: boolean; }): Promise; export {};