/** Legacy script names from older versions of the project */ export declare const legacyScripts: readonly ["dev"]; export interface ScriptToRemove { key: string; value: string; } export interface ScriptToAdd { key: string; value: string; } export interface ScriptToReplace { key: string; before: string; after: string; } /** * Plan for aligning `scripts` with the scaffold template (reads only; no write until apply). */ export interface FixPlan { packageJsonPath: string; packageJsonUpdatedContent: string; hasChanges: boolean; scriptsToRemove: ScriptToRemove[]; scriptsToReplace: ScriptToReplace[]; scriptsToAdd: ScriptToAdd[]; } /** * Computes the package.json rewrite without writing. Use with {@link applyFix}. */ export declare function planFix(projectRoot: string): FixPlan; /** * Writes the planned package.json. No-op when {@link FixPlan.hasChanges} is false. */ export declare function applyFix(plan: FixPlan): void;