import { DiagnosticsWithoutLocationResult, FixableDiagnostic } from "./utils/DiagnosticError.js"; export type FixOptions = { fix: boolean; log: (msg: string) => void; }; /** * Apply fixes repeatedly until all fixable diagnostics are resolved or no more fixes can be applied. * Returns ok if all errors were fixed, err if some unfixable errors remain. * If options.fix is false, just runs the function once without any fixing. */ export declare function withFixesFixed(resultFn: () => DiagnosticsWithoutLocationResult, options: FixOptions): DiagnosticsWithoutLocationResult; /** * Apply fixes to source files and return the set of files that were changed. * * Returns true if any files were changed, false otherwise. */ export declare function applyFixes(fixableDiagnostics: FixableDiagnostic[], options: FixOptions): boolean;