type Command = 'view' | 'create' | 'str_replace' | 'insert' | 'replace_range' | 'search';
interface TextEditorToolResult {
    success: boolean;
    error?: string;
    lineCount?: number;
    content?: string;
}
interface TextEditorToolProps {
    command?: Command;
    path?: string;
    fileText?: string;
    oldStr?: string;
    newStr?: string;
    insertLine?: number;
    viewRange?: [number, number] | null;
    query?: string;
    state?: 'input-available' | 'input-streaming' | 'output-available' | 'output-error' | string;
    result?: TextEditorToolResult | null;
    errorText?: string;
    onOpen?: () => void;
}
export declare function TextEditorTool({ command, path, fileText, oldStr, newStr, insertLine, viewRange, query, state, result, errorText, onOpen }: TextEditorToolProps): import("react/jsx-runtime").JSX.Element;
export {};
