declare class NestingNode { parent: NestingNode | null; children: (NestingNode | string)[]; constructor(parent: NestingNode | null); toString(): string; } /** * 分解公式括号嵌套关系 */ export declare function parseNesting(str: string): NestingNode; interface Calc { left: string | Calc; right: string | Calc; method: '+' | '-' | '*' | '/'; } /** * 分解计算优先级层级 */ export declare function onPrioritizeRequirements(node: string | NestingNode, children?: NestingNode['children']): Calc | string; export declare function onCalc(calc: Calc | string, calcMethodMap: Record): StrNumberValue; export {};