import type { FormulaContext } from './formula-types';
/**
 * 从公式表达式中提取引用的字段 dataIndex 列表
 */
export declare function extractReferencedFields(expression: string): string[];
/**
 * 检测公式中使用的函数是否都在白名单中
 */
export declare function validateFormula(expression: string): {
    valid: boolean;
    error?: string;
};
/**
 * 评估单个公式表达式，返回计算结果
 */
export declare function evaluateFormula(expression: string, context: FormulaContext): any;
/**
 * 批量计算公式列的所有行
 */
export declare function computeFormulaColumn(expression: string, rows: Record<string, any>[], fields: {
    dataIndex: string;
    title: string;
    component?: string;
}[], columnDataIndex: string, columnDefinitions?: any[], processedColumnMap?: Map<string, any>): Record<string, any>[];
/**
 * 批量重算所有公式列
 */
export declare function computeAllFormulaColumns(formulaConfigs: Record<string, {
    expression: string;
    columnCode: string;
}>, rows: Record<string, any>[], fields: {
    dataIndex: string;
    title: string;
    component?: string;
}[], columnDefinitions?: any[], processedColumnMap?: Map<string, any>): Record<string, any>[];
