/**
 * Truncated-JSON repair — ported from reasonix (MIT). Format-agnostic:
 * works on any raw JSON argument string. Common trigger: model hits
 * max_tokens mid-structure; the last useful argument is half-emitted.
 *
 * Local-only — never makes a continuation call. The agent loop owns
 * budgets; this just patches what we have so the dispatcher can either
 * parse it or report a clean fallback.
 */
export interface TruncationRepairResult {
    repaired: string;
    changed: boolean;
    notes: string[];
    /** True when all repair attempts failed and the result fell back to "{}". */
    fallback: boolean;
}
export declare function repairTruncatedJson(input: string): TruncationRepairResult;
