import type { Tool } from '@wrongstack/core/types'; import { type MatchTier } from './_edit-match.js'; export interface EditInput { path: string; old_string: string; new_string: string; /** * When true, replaces all occurrences of `old_string`. * When false (default), replaces only the first occurrence and errors * if more than one match exists — use this to ensure you target the * right location. */ replace_all?: boolean | undefined; } export interface EditOutput { path: string; replacements: number; diff: string; /** * How `old_string` was located. Anything other than 'exact' means a * whitespace/fuzzy fallback fired — the note carries the confidence level * and the diff shows exactly what was replaced. */ matched_by: MatchTier; /** * Parse errors found in the file AFTER the edit was applied (TS/JS/JSON * only). The edit is still on disk — fix these in a follow-up edit now, * before doing anything else. */ syntax_errors?: string[] | undefined; note?: string | undefined; } export type { MatchTier }; export declare const editTool: Tool; //# sourceMappingURL=edit.d.ts.map