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.

19 lines 715 B
import { Project, Node, SourceFile } from 'ts-morph'; import { LocationRange } from '../core/location-parser'; export declare class ASTService { private readonly project; constructor(project?: Project); loadSourceFile(filePath: string): SourceFile; saveSourceFile(sourceFile: SourceFile): Promise<void>; getProject(): Project; findNodeByLocation(location: LocationRange): Node; private findNodeInRange; private getStartPosition; private getNodeAtPosition; private findBestMatchingNode; private calculateExpectedEnd; private traverseToFindMatchingNode; private isNodeRangeCloseToExpected; private calculateNodeScore; } //# sourceMappingURL=ast-service.d.ts.map