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.

20 lines 695 B
export declare class RefactorEngine { private project; private tsQueryHandler; private declarationFinder; private expressionAnalyzer; private variableReplacer; private variableScope; private variableLocator; constructor(); inlineVariableByQuery(filePath: string, query: string): Promise<void>; renameByQuery(filePath: string, query: string, newName: string): Promise<void>; private performInlineVariable; private performRename; private loadSourceFile; private validateIdentifierNode; private getInitializerText; private getDestructuringInitializer; private getRegularInitializer; } //# sourceMappingURL=refactor-engine.d.ts.map