import { ToolResult, EditorCommand } from "../types/index.js"; import { ToolDiscovery } from "./tool-discovery.js"; export declare class TextEditorTool implements ToolDiscovery { private editHistory; private confirmationService; private agent; setAgent(agent: any): void; /** * Get the maximum characters allowed based on current context usage * Returns null if viewFile should be disabled */ private getMaxCharsAllowed; viewFile(filePath: string, viewRange?: [number, number]): Promise; strReplace(filePath: string, oldStr: string, newStr: string, replaceAll?: boolean): Promise; createNewFile(filePath: string, content: string): Promise; replaceLines(filePath: string, startLine: number, endLine: number, newContent: string): Promise; insertLines(filePath: string, insertLine: number, content: string): Promise; undoEdit(): Promise; private findFuzzyMatch; private normalizeForComparison; private isSimilarStructure; /** * Compute Longest Common Subsequence using dynamic programming * Returns array of indices in oldLines that are part of LCS */ private computeLCS; /** * Extract changes from LCS table * Returns array of change regions */ private extractChanges; private generateDiff; getEditHistory(): EditorCommand[]; getHandledToolNames(): string[]; }