/** * Adapter from the legacy CodemodResult shape (codemods/index.ts) to the * new Rule.applyCodemod return shape (types.ts). * * Legacy shape: { patch, confidence (0-1), alternatives, rationale, rule_id, schema_version } * New shape: { diff, importsAdded, confidence ("high"|"medium"|"low"), warnings? } * * This module is import-only — no runtime side effects. */ import type { CodemodResult as NewCodemodResult } from "../types.js"; import type { CodemodResult as OldCodemodResult } from "../codemods/index.js"; /** * Adapt an OldCodemodResult to the NewCodemodResult shape expected by * Rule.applyCodemod consumers (e.g. the fix orchestrator in Task 12). */ export declare function adaptOldCodemodResult(old: OldCodemodResult): NewCodemodResult;