import { ToolResult, EditorCommand } from '../types'; export declare class TextEditorTool { private editHistory; view(filePath: string, viewRange?: [number, number]): Promise; strReplace(filePath: string, oldStr: string, newStr: string): Promise; create(filePath: string, content: string): Promise; insert(filePath: string, insertLine: number, content: string): Promise; undoEdit(): Promise; private generateDiff; getEditHistory(): EditorCommand[]; }