@univerjs/engine-formula 0.4.0 → 0.4.1-nightly.202410201605

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/lib/cjs/index.js +2 -2
  2. package/lib/es/index.js +1969 -413
  3. package/lib/types/basics/database.d.ts +31 -0
  4. package/lib/types/basics/math.d.ts +12 -0
  5. package/lib/types/basics/object-class-type.d.ts +17 -2
  6. package/lib/types/basics/regex.d.ts +19 -2
  7. package/lib/types/engine/analysis/__tests__/dependency.spec.d.ts +16 -0
  8. package/lib/types/engine/analysis/parser.d.ts +1 -2
  9. package/lib/types/engine/ast-node/base-ast-node-factory.d.ts +3 -2
  10. package/lib/types/engine/ast-node/base-ast-node.d.ts +2 -9
  11. package/lib/types/engine/ast-node/function-node.d.ts +1 -0
  12. package/lib/types/engine/ast-node/reference-node.d.ts +9 -2
  13. package/lib/types/engine/dependency/dependency-tree.d.ts +13 -4
  14. package/lib/types/engine/dependency/formula-dependency.d.ts +1 -0
  15. package/lib/types/engine/interpreter/interpreter.d.ts +3 -2
  16. package/lib/types/engine/utils/ast-node-tool.d.ts +10 -0
  17. package/lib/types/engine/utils/char-kit.d.ts +5 -7
  18. package/lib/types/engine/utils/numfmt-kit.d.ts +14 -1
  19. package/lib/types/engine/utils/reference-cache.d.ts +3 -0
  20. package/lib/types/engine/value-object/lambda-value-object.d.ts +2 -2
  21. package/lib/types/functions/base-function.d.ts +13 -5
  22. package/lib/types/functions/database/daverage/__tests__/index.spec.d.ts +16 -0
  23. package/lib/types/functions/database/daverage/index.d.ts +8 -0
  24. package/lib/types/functions/database/dcount/__tests__/index.spec.d.ts +16 -0
  25. package/lib/types/functions/database/dcount/index.d.ts +8 -0
  26. package/lib/types/functions/database/dcounta/__tests__/index.spec.d.ts +16 -0
  27. package/lib/types/functions/database/dcounta/index.d.ts +8 -0
  28. package/lib/types/functions/database/dget/__tests__/index.spec.d.ts +16 -0
  29. package/lib/types/functions/database/dget/index.d.ts +7 -0
  30. package/lib/types/functions/database/dmax/__tests__/index.spec.d.ts +16 -0
  31. package/lib/types/functions/database/dmax/index.d.ts +8 -0
  32. package/lib/types/functions/database/dmin/__tests__/index.spec.d.ts +16 -0
  33. package/lib/types/functions/database/dmin/index.d.ts +8 -0
  34. package/lib/types/functions/database/dproduct/__tests__/index.spec.d.ts +16 -0
  35. package/lib/types/functions/database/dproduct/index.d.ts +8 -0
  36. package/lib/types/functions/database/dstdev/__tests__/index.spec.d.ts +16 -0
  37. package/lib/types/functions/database/dstdev/index.d.ts +8 -0
  38. package/lib/types/functions/database/dstdevp/__tests__/index.spec.d.ts +16 -0
  39. package/lib/types/functions/database/dstdevp/index.d.ts +8 -0
  40. package/lib/types/functions/database/dsum/__tests__/index.spec.d.ts +16 -0
  41. package/lib/types/functions/database/dsum/index.d.ts +8 -0
  42. package/lib/types/functions/database/dvar/__tests__/index.spec.d.ts +16 -0
  43. package/lib/types/functions/database/dvar/index.d.ts +8 -0
  44. package/lib/types/functions/database/dvarp/__tests__/index.spec.d.ts +16 -0
  45. package/lib/types/functions/database/dvarp/index.d.ts +8 -0
  46. package/lib/types/functions/database/function-map.d.ts +3 -16
  47. package/lib/types/functions/financial/db/index.d.ts +1 -0
  48. package/lib/types/functions/financial/ddb/index.d.ts +1 -0
  49. package/lib/types/functions/financial/fv/index.d.ts +2 -1
  50. package/lib/types/functions/financial/ipmt/index.d.ts +2 -1
  51. package/lib/types/functions/financial/npv/index.d.ts +1 -0
  52. package/lib/types/functions/financial/pmt/index.d.ts +2 -1
  53. package/lib/types/functions/financial/ppmt/index.d.ts +2 -1
  54. package/lib/types/functions/financial/pv/index.d.ts +2 -1
  55. package/lib/types/functions/financial/sln/index.d.ts +1 -0
  56. package/lib/types/functions/financial/syd/index.d.ts +1 -0
  57. package/lib/types/functions/financial/tbillprice/index.d.ts +1 -0
  58. package/lib/types/functions/financial/vdb/index.d.ts +1 -0
  59. package/lib/types/functions/math/arabic/__tests__/index.spec.d.ts +16 -0
  60. package/lib/types/functions/math/arabic/index.d.ts +8 -0
  61. package/lib/types/functions/math/roman/__tests__/index.spec.d.ts +16 -0
  62. package/lib/types/functions/math/roman/index.d.ts +9 -0
  63. package/lib/types/functions/text/arraytotext/__test__/index.spec.d.ts +16 -0
  64. package/lib/types/functions/text/arraytotext/index.d.ts +9 -0
  65. package/lib/types/functions/text/asc/__test__/index.spec.d.ts +16 -0
  66. package/lib/types/functions/text/asc/index.d.ts +8 -0
  67. package/lib/types/functions/text/bahttext/__test__/index.spec.d.ts +16 -0
  68. package/lib/types/functions/text/bahttext/index.d.ts +9 -0
  69. package/lib/types/functions/text/char/__test__/index.spec.d.ts +16 -0
  70. package/lib/types/functions/text/char/index.d.ts +8 -0
  71. package/lib/types/functions/text/clean/__test__/index.spec.d.ts +16 -0
  72. package/lib/types/functions/text/clean/index.d.ts +8 -0
  73. package/lib/types/functions/text/code/__test__/index.spec.d.ts +16 -0
  74. package/lib/types/functions/text/code/index.d.ts +8 -0
  75. package/lib/types/functions/text/dbcs/__test__/index.spec.d.ts +16 -0
  76. package/lib/types/functions/text/dbcs/index.d.ts +8 -0
  77. package/lib/types/functions/text/dollar/__test__/index.spec.d.ts +16 -0
  78. package/lib/types/functions/text/dollar/index.d.ts +9 -0
  79. package/lib/types/functions/text/exact/__test__/index.spec.d.ts +16 -0
  80. package/lib/types/functions/text/exact/index.d.ts +8 -0
  81. package/lib/types/functions/text/fixed/__test__/index.spec.d.ts +16 -0
  82. package/lib/types/functions/text/fixed/index.d.ts +8 -0
  83. package/lib/types/functions/text/leftb/index.d.ts +1 -2
  84. package/lib/types/functions/text/numbervalue/__test__/index.spec.d.ts +16 -0
  85. package/lib/types/functions/text/numbervalue/index.d.ts +8 -0
  86. package/lib/types/functions/text/proper/__test__/index.spec.d.ts +16 -0
  87. package/lib/types/functions/text/proper/index.d.ts +8 -0
  88. package/lib/types/functions/text/right/__test__/index.spec.d.ts +16 -0
  89. package/lib/types/functions/text/right/index.d.ts +8 -0
  90. package/lib/types/functions/text/rightb/__test__/index.spec.d.ts +16 -0
  91. package/lib/types/functions/text/rightb/index.d.ts +8 -0
  92. package/lib/types/functions/text/substitute/__test__/index.spec.d.ts +16 -0
  93. package/lib/types/functions/text/substitute/index.d.ts +9 -0
  94. package/lib/types/functions/text/t/__test__/index.spec.d.ts +16 -0
  95. package/lib/types/functions/text/t/index.d.ts +7 -0
  96. package/lib/types/functions/text/unichar/__test__/index.spec.d.ts +16 -0
  97. package/lib/types/functions/text/unichar/index.d.ts +8 -0
  98. package/lib/types/functions/text/unicode/__test__/index.spec.d.ts +16 -0
  99. package/lib/types/functions/text/unicode/index.d.ts +8 -0
  100. package/lib/types/functions/text/value/__test__/index.spec.d.ts +16 -0
  101. package/lib/types/functions/text/value/index.d.ts +8 -0
  102. package/lib/types/functions/text/valuetotext/__test__/index.spec.d.ts +16 -0
  103. package/lib/types/functions/text/valuetotext/index.d.ts +8 -0
  104. package/lib/types/services/current-data.service.d.ts +5 -2
  105. package/lib/types/services/dependency-manager.service.d.ts +4 -6
  106. package/lib/types/services/runtime.service.d.ts +2 -0
  107. package/lib/umd/index.js +2 -2
  108. package/package.json +4 -4
  109. package/LICENSE +0 -176
  110. package/lib/types/engine/dependency/generate-tree-id.d.ts +0 -2
@@ -0,0 +1,8 @@
1
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
2
+ import { BaseFunction } from '../../base-function';
3
+ export declare class Numbervalue extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(text: BaseValueObject, decimalSeparator?: BaseValueObject, groupSeparator?: BaseValueObject): BaseValueObject;
7
+ private _handleSingleObject;
8
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -0,0 +1,8 @@
1
+ import { BaseFunction } from '../../base-function';
2
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
3
+ export declare class Proper extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(text: BaseValueObject): BaseValueObject;
7
+ private _handleSingleObject;
8
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -0,0 +1,8 @@
1
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
2
+ import { BaseFunction } from '../../base-function';
3
+ export declare class Right extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(text: BaseValueObject, numChars?: BaseValueObject): BaseValueObject;
7
+ private _handleSingleObject;
8
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -0,0 +1,8 @@
1
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
2
+ import { BaseFunction } from '../../base-function';
3
+ export declare class Rightb extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(text: BaseValueObject, numBytes?: BaseValueObject): BaseValueObject;
7
+ private _handleSingleObject;
8
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -0,0 +1,9 @@
1
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
2
+ import { BaseFunction } from '../../base-function';
3
+ export declare class Substitute extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(text: BaseValueObject, oldText: BaseValueObject, newText: BaseValueObject, instanceNum?: BaseValueObject): BaseValueObject;
7
+ private _handleSingleObject;
8
+ private _getObjectString;
9
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -0,0 +1,7 @@
1
+ import { BaseFunction } from '../../base-function';
2
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
3
+ export declare class T extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(value: BaseValueObject): BaseValueObject;
7
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -0,0 +1,8 @@
1
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
2
+ import { BaseFunction } from '../../base-function';
3
+ export declare class Unichar extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(number: BaseValueObject): BaseValueObject;
7
+ private _handleSingleObject;
8
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -0,0 +1,8 @@
1
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
2
+ import { BaseFunction } from '../../base-function';
3
+ export declare class Unicode extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(text: BaseValueObject): BaseValueObject;
7
+ private _handleSingleObject;
8
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -0,0 +1,8 @@
1
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
2
+ import { BaseFunction } from '../../base-function';
3
+ export declare class Value extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(text: BaseValueObject): BaseValueObject;
7
+ private _handleSingleObject;
8
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -0,0 +1,8 @@
1
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
2
+ import { BaseFunction } from '../../base-function';
3
+ export declare class Valuetotext extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(value: BaseValueObject, format?: BaseValueObject): BaseValueObject;
7
+ private _handleSingleObject;
8
+ }
@@ -1,4 +1,4 @@
1
- import { IUnitRange, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
1
+ import { Disposable, IUniverInstanceService, LocaleService, IUnitRange, LocaleType, Nullable } from '@univerjs/core';
2
2
  import { IArrayFormulaRangeType, IDirtyUnitFeatureMap, IDirtyUnitOtherFormulaMap, IDirtyUnitSheetDefinedNameMap, IDirtyUnitSheetNameMap, IFormulaData, IFormulaDatasetConfig, IRuntimeUnitDataType, IUnitData, IUnitExcludedCell, IUnitSheetNameMap, IUnitStylesData } from '../basics/common';
3
3
  export interface IFormulaDirtyData {
4
4
  forceCalculation: boolean;
@@ -38,9 +38,11 @@ export interface IFormulaCurrentConfigService {
38
38
  setExecuteSubUnitId(subUnitId: string): void;
39
39
  getDirtyData(): IFormulaDirtyData;
40
40
  getClearDependencyTreeCache(): IDirtyUnitSheetNameMap;
41
+ getLocale(): LocaleType;
41
42
  }
42
43
  export declare class FormulaCurrentConfigService extends Disposable implements IFormulaCurrentConfigService {
43
44
  private readonly _univerInstanceService;
45
+ private readonly _localeService;
44
46
  private _unitData;
45
47
  private _unitStylesData;
46
48
  private _arrayFormulaCellData;
@@ -58,7 +60,7 @@ export declare class FormulaCurrentConfigService extends Disposable implements I
58
60
  private _sheetIdToNameMap;
59
61
  private _executeUnitId;
60
62
  private _executeSubUnitId;
61
- constructor(_univerInstanceService: IUniverInstanceService);
63
+ constructor(_univerInstanceService: IUniverInstanceService, _localeService: LocaleService);
62
64
  dispose(): void;
63
65
  getExecuteUnitId(): Nullable<string>;
64
66
  getExecuteSubUnitId(): Nullable<string>;
@@ -79,6 +81,7 @@ export declare class FormulaCurrentConfigService extends Disposable implements I
79
81
  getDirtyUnitOtherFormulaMap(): IDirtyUnitOtherFormulaMap;
80
82
  getSheetName(unitId: string, sheetId: string): string;
81
83
  getClearDependencyTreeCache(): IDirtyUnitSheetNameMap;
84
+ getLocale(): LocaleType;
82
85
  load(config: IFormulaDatasetConfig): void;
83
86
  getDirtyData(): IFormulaDirtyData;
84
87
  loadDirtyRangesAndExcludedCell(dirtyRanges: IUnitRange[], excludedCell?: IUnitExcludedCell): void;
@@ -38,7 +38,7 @@ export interface IDependencyManagerService {
38
38
  clearFormulaDependency(unitId: string, sheetId?: string): void;
39
39
  addDependencyRTreeCache(tree: FormulaDependencyTree): void;
40
40
  searchDependency(search: IUnitRange[]): Map<string, IRTreeItem>;
41
- hasTreeIdInCache(treeId: string): boolean;
41
+ getLastTreeId(): number;
42
42
  clearDependencyAll(): void;
43
43
  clearOtherFormulaDependency(unitId: string, sheetId?: string): void;
44
44
  clearFeatureFormulaDependency(unitId: string, sheetId?: string): void;
@@ -54,7 +54,7 @@ export declare class DependencyManagerService extends Disposable implements IDep
54
54
  private _featureFormulaData;
55
55
  private _formulaData;
56
56
  private _dependencyRTreeCache;
57
- private _dependencyTreeIdsCache;
57
+ private _dependencyTreeIdLast;
58
58
  dispose(): void;
59
59
  /**
60
60
  * Get all FormulaDependencyTree from _otherFormulaData, _featureFormulaData, _formulaData
@@ -97,10 +97,8 @@ export declare class DependencyManagerService extends Disposable implements IDep
97
97
  clearDependencyAll(): void;
98
98
  getFormulaDependency(unitId: string, sheetId: string, row: number, column: number): Nullable<Nullable<FormulaDependencyTree>>;
99
99
  addDependencyRTreeCache(tree: FormulaDependencyTree): void;
100
- private _addTreeIdToCache;
101
- private _removeTreeIdFromCache;
102
- private _clearTreeIdCache;
103
- hasTreeIdInCache(treeId: string): boolean;
100
+ private _restDependencyTreeId;
101
+ getLastTreeId(): number;
104
102
  private _removeDependencyRTreeCacheById;
105
103
  private _removeDependencyRTreeCache;
106
104
  removeFormulaDependencyByDefinedName(unitId: string, definedName: string): void;
@@ -96,6 +96,7 @@ export interface IFormulaRuntimeService {
96
96
  };
97
97
  setRuntimeFeatureCellData(featureId: string, featureData: IRuntimeUnitDataType): void;
98
98
  setRuntimeFeatureRange(featureId: string, featureRange: IFeatureDirtyRangeType): void;
99
+ clearReferenceAndNumberformatCache(): void;
99
100
  }
100
101
  export declare class FormulaRuntimeService extends Disposable implements IFormulaRuntimeService {
101
102
  private readonly _currentConfigService;
@@ -152,6 +153,7 @@ export declare class FormulaRuntimeService extends Disposable implements IFormul
152
153
  setFormulaExecuteStage(type: FormulaExecuteStageType): void;
153
154
  getFormulaExecuteStage(): FormulaExecuteStageType;
154
155
  reset(): void;
156
+ clearReferenceAndNumberformatCache(): void;
155
157
  setCurrent(row: number, column: number, rowCount: number, columnCount: number, sheetId: string, unitId: string): void;
156
158
  clearFunctionDefinitionPrivacyVar(): void;
157
159
  registerFunctionDefinitionPrivacyVar(lambdaId: string, lambdaVar: Map<string, Nullable<BaseAstNode>>): void;