import { ownCheckout } from "../checkout.js"; import { lockHeld, LOCK_STALE_MS, type Parsed } from "../util.js"; export interface Gate { name: string; command: string; ok: boolean; output: string; } export { ownCheckout }; /** * Whether another self-heal is already running, and how long its claim stands. * * Two of them in one checkout would revert each other's work and commit the * result. The mechanism is shared with `skills improve`, which guards its own * writes the same way, so it lives in util and is re-exported here: this is * where it was first needed and where its callers look for it. */ export { LOCK_STALE_MS, lockHeld }; export declare function selfHeal(parsed: Parsed): Promise;