import type { ReadOriginal } from "./gate.js"; export interface AutoRepairResult { readonly fixedText: string; readonly fixedCount: number; } /** * Produce a corrected diff for the two MECHANICAL finding classes: pure indentation-churn hunks * (dropped whole) and trivially-redundant literal casts (rewritten in place). Every other finding * class is a judgment call and is left in the verdict for a human/reviewer to act on — this * function never touches the target repo, only the diff text itself. * * Both transforms are line-count-preserving or hunk-boundary-preserving by construction (see * `isPureIndentationChurnHunk` and `findFixableCastEdits`), so no other hunk's `@@` header ever * needs recomputing. */ export declare function autoRepairDiff(diffText: string, readOriginal: ReadOriginal): AutoRepairResult;