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.

38 lines 1.28 kB
export declare class RefactorEngine { private project; constructor(); inlineVariableByQuery(filePath: string, query: string): Promise<void>; private performInlineVariable; private loadSourceFile; private findNodeByQuery; private handleMultipleMatches; private validateSameVariable; private validateIdentifierNode; private getVariableDeclaration; private getInitializerText; private getDestructuringInitializer; private getRegularInitializer; private formatInitializerText; private needsParentheses; private isSimpleAdditionOrSubtraction; private isAdditionOrSubtraction; private hasSimpleOperands; private areSimpleOperands; private replaceAllReferences; private removeDeclaration; private isMatchingIdentifier; private isInDestructuringPattern; private isDestructuringContext; private isInTypeContext; private isTypeContext; private executeQuery; private validateMatches; private convertToMorphNode; private collectMatchingIdentifiers; private findVariableDeclaration; private matchesVariableName; private matchesDestructuredVariable; private hasMatchingElement; private findAllReferences; } //# sourceMappingURL=refactor-engine-old.d.ts.map