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.

34 lines 1.04 kB
import { SourceFile } from 'ts-morph'; import { SelectResult } from '../types/selection-types'; interface RangeOptions { startRegex?: string; endRegex?: string; 'start-regex'?: string; 'end-regex'?: string; [key: string]: unknown; } export declare class RangeAnalyzer { findRangeMatches(sourceFile: SourceFile, options: RangeOptions): SelectResult[]; private extractRegexOptions; private formatRangeResults; private formatSingleRange; private findContentRanges; private processAllLines; private handleLineResult; private processLine; private createSkipResult; private createRangeResult; private createPatterns; private shouldSkipLine; private findRangeFromStartLine; private findEndMatch; private createRange; private calculateRangeEnd; private extractRangeContent; private buildRangeObject; private isCommentLine; private isInvalidLineNumber; private startsWithCommentMarker; } export {}; //# sourceMappingURL=range-analyzer.d.ts.map