UNPKG

@myuon/refactor-mcp

Version:

MCP server for refactoring tools

24 lines (23 loc) 680 B
export interface SearchOptions { searchPattern: string; contextPattern?: string; filePattern?: string; } export interface SearchMatch { line: number; content: string; captureGroups?: string[]; matchedText?: string; } export interface SearchResult { filePath: string; matches: SearchMatch[]; lineNumbers: number[]; groupedLines: string[]; } export declare function performSearch(options: SearchOptions): Promise<SearchResult[]>; export interface FormatOptions { includeCaptureGroups?: boolean; includeMatchedText?: boolean; } export declare function formatSearchResults(results: SearchResult[], options?: FormatOptions): string;