/**
 * 公式编辑器 - 基于 CodeMirror 6
 * 支持函数自动补全、字段引用 Tag、语法高亮
 */
import React from 'react';
import type { FormulaFieldItem } from './formula-types';
import './formula-editor.scss';
export interface FormulaEditorRef {
    focus: () => void;
    insertField: (field: FormulaFieldItem) => void;
    insertText: (text: string) => void;
    getValue: () => string;
}
export interface FormulaEditorProps {
    value?: string;
    onChange?: (value: string) => void;
    fields?: FormulaFieldItem[];
    placeholder?: string;
    hasError?: boolean;
    minHeight?: number;
}
export declare const FormulaEditor: React.ForwardRefExoticComponent<FormulaEditorProps & React.RefAttributes<FormulaEditorRef>>;
