refakts
Version:
TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
32 lines • 1.01 kB
TypeScript
import { SourceFile } from 'ts-morph';
import { SelectResult } from '../types/selection-types';
interface RegexOptions {
regex?: string | string[];
includeDefinition?: boolean;
'include-definition'?: boolean;
includeLine?: boolean;
'include-line'?: boolean;
previewLine?: boolean;
'preview-line'?: boolean;
previewMatch?: boolean;
'preview-match'?: boolean;
[key: string]: unknown;
}
export declare class RegexPatternMatcher {
private matcher;
private formatters;
findRegexMatches(sourceFile: SourceFile, options: RegexOptions): SelectResult[];
private createRegexPatterns;
private findAllPatternMatches;
private sortMatchesByPosition;
private processMatches;
private determineFormatter;
private getFormatterType;
private createOptionChecks;
private hasDefinitionOption;
private hasLineOption;
private hasPreviewOption;
private hasPreviewMatchOption;
}
export {};
//# sourceMappingURL=regex-pattern-matcher.d.ts.map