import { type MathNode } from 'mathjs'; import type { Result } from './interface.js'; import type { State } from './state.js'; /** 获取全局函数的名字 */ export declare function globalFnName(state: State, fnName: string): string; /** 获取 symbol name */ export declare function symbolName(node: MathNode): string | undefined; /** 转换为 mirascript 符号 */ export declare function migrateSymbolName(name: string, local: boolean): string; /** 获取 constant value */ export declare function constantValue(node: MathNode): number | string | boolean | null | undefined; /** 添加转换错误 */ export declare function unsupportedNode(state: State, node: MathNode, err?: string): Result; /** 可能是矩阵时报错 */ export declare function scalar(op: string, state: State, re: Result): Result; /** 比较字符串 */ export declare function equalText(state: State, op: '==' | '!=', l: MathNode, r: MathNode): Result; /** 计算长度 */ export declare function len(state: State, obj: Result): Result; //# sourceMappingURL=utils.d.ts.map