UNPKG

refakts

Version:

TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.

18 lines 699 B
import { RefactoringCommand, CommandOptions } from '../command'; export declare class RenameCommand implements RefactoringCommand { readonly name = "rename"; readonly description = "Rename a variable and all its references"; readonly complete = true; private astService; private variableLocator; constructor(); execute(file: string, options: CommandOptions): Promise<void>; private findTargetNode; validateOptions(options: CommandOptions): void; getHelpText(): string; private performRename; private validateIdentifierNode; private findVariableNodesAtPosition; private createRenameTransformation; } //# sourceMappingURL=rename-command.d.ts.map