import type { Finding, RuleContext } from "../types.js"; export interface CodemodInput { /** The full original source code. */ source: string; /** Path of the file (used for diff headers). */ path: string; /** The finding to fix. */ finding: Finding; /** Project context (tokens, components, etc.) — needed for reverse-lookup. */ ctx: RuleContext; } export interface CodemodResult { /** Unified diff text, or null if no fix can be produced. */ patch: string | null; /** Confidence 0-1 (1 = deterministic single-candidate replacement). */ confidence: number; /** Alternative patches (used when there are multiple candidates and we picked one). */ alternatives: Array<{ patch: string; rationale: string; }>; /** When patch is null, why no fix is available. */ rationale: string | null; rule_id: string; schema_version: "1.0.0"; } export declare function applyCodemod(input: CodemodInput): Promise;