import type { GhWrapper, IssueRef } from '@generacy-ai/cockpit'; import { type BodyShape, type ScopeMutation } from './writer.js'; export interface WriteScopeOptions { gh: GhWrapper; scope: IssueRef; mutation: ScopeMutation; maxAttempts?: number; backoffMs?: number[]; sleep?: (ms: number) => Promise; } export interface WriteScopeResult { noop: boolean; attempts: number; finalBody: string; shape: BodyShape; } /** * Read-modify-write-verify loop for concurrent-safe scope body mutations. * `applyScopeMutation` is idempotent, so a competing writer that already * applied our mutation causes the next retry to short-circuit as noop. * Terminal exhaustion throws `ScopeContendedError`. */ export declare function writeScopeWithRetry(opts: WriteScopeOptions): Promise; //# sourceMappingURL=retry.d.ts.map