refakts
Version:
TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
16 lines • 532 B
TypeScript
export declare class RefactorEngine {
private project;
private tsQueryHandler;
private declarationFinder;
private expressionAnalyzer;
private variableReplacer;
constructor();
inlineVariableByQuery(filePath: string, query: string): Promise<void>;
private performInlineVariable;
private loadSourceFile;
private validateIdentifierNode;
private getInitializerText;
private getDestructuringInitializer;
private getRegularInitializer;
}
//# sourceMappingURL=refactor-engine-new.d.ts.map