@danielsimonjr/mathts-expression 0.8.1 → 0.8.2

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.
@@ -1,15 +1,4 @@
1
- interface Node {
2
- _compile: (math: Record<string, unknown>, argNames: Record<string, boolean>) => CompileFunction;
3
- _ifNode: (node: unknown) => Node;
4
- filter: (callback: (node: Node) => boolean) => Node[];
5
- getContent: () => Node;
6
- getIdentifier: () => string;
7
- toString: (options?: StringOptions) => string;
8
- toHTML: (options?: StringOptions) => string;
9
- toTex: (options?: StringOptions) => string;
10
- toMathML: () => string;
11
- type: string;
12
- }
1
+ import type { MathNode } from './Node.js';
13
2
  type CompileFunction = (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
14
3
  interface StringOptions {
15
4
  parenthesis?: 'keep' | 'auto' | 'all';
@@ -17,13 +6,56 @@ interface StringOptions {
17
6
  [key: string]: unknown;
18
7
  }
19
8
  interface Dependencies {
20
- Node: new (...args: unknown[]) => Node;
9
+ Node: new (...args: unknown[]) => MathNode;
21
10
  }
22
11
  export declare const createOperatorNode: import("../utils/factory.js").FactoryFunction<Dependencies, {
23
- new (op: string, fn: string, args: Node[], implicit?: boolean, isPercentage?: boolean): {
12
+ new (op: string, fn: string, args: MathNode[], implicit?: boolean, isPercentage?: boolean): {
13
+ toTex(options?: import("./Node.js").StringOptions): string;
14
+ toMarkdown(options?: {
15
+ inline?: boolean;
16
+ } & import("./Node.js").StringOptions): string;
17
+ toDOT(options?: {
18
+ name?: string;
19
+ }): string;
20
+ toMathML(): string;
21
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
22
+ getContent(): {
23
+ get type(): string;
24
+ get isNode(): boolean;
25
+ evaluate(scope?: Record<string, unknown>): unknown;
26
+ compile(): import("./Node.js").CompiledExpression;
27
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
28
+ forEach(_callback: (child: /*elided*/ any, path: string, parent: /*elided*/ any) => void): void;
29
+ map(_callback: (child: /*elided*/ any, path: string, parent: /*elided*/ any) => /*elided*/ any): /*elided*/ any;
30
+ _ifNode(node: unknown): /*elided*/ any;
31
+ traverse(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => void): void;
32
+ transform(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => /*elided*/ any): /*elided*/ any;
33
+ filter(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => boolean): /*elided*/ any[];
34
+ clone(): /*elided*/ any;
35
+ cloneDeep(): /*elided*/ any;
36
+ equals(other: /*elided*/ any | null | undefined): boolean;
37
+ toString(options?: import("./Node.js").StringOptions): string;
38
+ _toString(_options?: import("./Node.js").StringOptions): string;
39
+ toJSON(): Record<string, unknown>;
40
+ toHTML(options?: import("./Node.js").StringOptions): string;
41
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
42
+ toTex(options?: import("./Node.js").StringOptions): string;
43
+ toMarkdown(options?: {
44
+ inline?: boolean;
45
+ } & import("./Node.js").StringOptions): string;
46
+ toDOT(options?: {
47
+ name?: string;
48
+ }): string;
49
+ toMathML(): string;
50
+ _toMathML(): string;
51
+ _toTex(_options?: import("./Node.js").StringOptions): string;
52
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
53
+ getIdentifier(): string;
54
+ getContent(): /*elided*/ any;
55
+ };
24
56
  op: string;
25
57
  fn: string;
26
- args: Node[];
58
+ args: MathNode[];
27
59
  implicit: boolean;
28
60
  isPercentage: boolean;
29
61
  get type(): string;
@@ -46,14 +78,14 @@ export declare const createOperatorNode: import("../utils/factory.js").FactoryFu
46
78
  * Execute a callback for each of the child nodes of this node
47
79
  * @param callback
48
80
  */
49
- forEach(callback: (child: Node, path: string, parent: /*elided*/ any) => void): void;
81
+ forEach(callback: (child: MathNode, path: string, parent: /*elided*/ any) => void): void;
50
82
  /**
51
83
  * Create a new OperatorNode whose children are the results of calling
52
84
  * the provided callback function for each child of the original node.
53
85
  * @param callback
54
86
  * @returns Returns a transformed copy of the node
55
87
  */
56
- map(callback: (child: Node, path: string, parent: /*elided*/ any) => Node): /*elided*/ any;
88
+ map(callback: (child: MathNode, path: string, parent: /*elided*/ any) => MathNode): /*elided*/ any;
57
89
  /**
58
90
  * Create a clone of this node, a shallow copy
59
91
  */
@@ -79,7 +111,14 @@ export declare const createOperatorNode: import("../utils/factory.js").FactoryFu
79
111
  /**
80
112
  * Get a JSON representation of the node
81
113
  */
82
- toJSON(): Record<string, unknown>;
114
+ toJSON(): {
115
+ mathjs: string;
116
+ op: string;
117
+ fn: string;
118
+ args: MathNode[];
119
+ implicit: boolean;
120
+ isPercentage: boolean;
121
+ };
83
122
  /**
84
123
  * Get HTML representation.
85
124
  * @param options
@@ -96,13 +135,413 @@ export declare const createOperatorNode: import("../utils/factory.js").FactoryFu
96
135
  * Get identifier.
97
136
  */
98
137
  getIdentifier(): string;
99
- _ifNode: (node: unknown) => Node;
100
- filter: (callback: (node: Node) => boolean) => Node[];
101
- getContent: () => Node;
102
- toString: (options?: StringOptions) => string;
103
- toHTML: (options?: StringOptions) => string;
104
- toTex: (options?: StringOptions) => string;
105
- toMathML: () => string;
138
+ get isNode(): boolean;
139
+ evaluate(scope?: Record<string, unknown>): unknown;
140
+ compile(): import("./Node.js").CompiledExpression;
141
+ _ifNode(node: unknown): {
142
+ get type(): string;
143
+ get isNode(): boolean;
144
+ evaluate(scope?: Record<string, unknown>): unknown;
145
+ compile(): import("./Node.js").CompiledExpression;
146
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
147
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
148
+ map(_callback: (child: any, path: string, parent: any) => any): any;
149
+ _ifNode(node: unknown): any;
150
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
151
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
152
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
153
+ clone(): any;
154
+ cloneDeep(): any;
155
+ equals(other: any | null | undefined): boolean;
156
+ toString(options?: import("./Node.js").StringOptions): string;
157
+ _toString(_options?: import("./Node.js").StringOptions): string;
158
+ toJSON(): Record<string, unknown>;
159
+ toHTML(options?: import("./Node.js").StringOptions): string;
160
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
161
+ toTex(options?: import("./Node.js").StringOptions): string;
162
+ toMarkdown(options?: {
163
+ inline?: boolean;
164
+ } & import("./Node.js").StringOptions): string;
165
+ toDOT(options?: {
166
+ name?: string;
167
+ }): string;
168
+ toMathML(): string;
169
+ _toMathML(): string;
170
+ _toTex(_options?: import("./Node.js").StringOptions): string;
171
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
172
+ getIdentifier(): string;
173
+ getContent(): any;
174
+ };
175
+ traverse(callback: (node: {
176
+ get type(): string;
177
+ get isNode(): boolean;
178
+ evaluate(scope?: Record<string, unknown>): unknown;
179
+ compile(): import("./Node.js").CompiledExpression;
180
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
181
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
182
+ map(_callback: (child: any, path: string, parent: any) => any): any;
183
+ _ifNode(node: unknown): any;
184
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
185
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
186
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
187
+ clone(): any;
188
+ cloneDeep(): any;
189
+ equals(other: any | null | undefined): boolean;
190
+ toString(options?: import("./Node.js").StringOptions): string;
191
+ _toString(_options?: import("./Node.js").StringOptions): string;
192
+ toJSON(): Record<string, unknown>;
193
+ toHTML(options?: import("./Node.js").StringOptions): string;
194
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
195
+ toTex(options?: import("./Node.js").StringOptions): string;
196
+ toMarkdown(options?: {
197
+ inline?: boolean;
198
+ } & import("./Node.js").StringOptions): string;
199
+ toDOT(options?: {
200
+ name?: string;
201
+ }): string;
202
+ toMathML(): string;
203
+ _toMathML(): string;
204
+ _toTex(_options?: import("./Node.js").StringOptions): string;
205
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
206
+ getIdentifier(): string;
207
+ getContent(): any;
208
+ }, path: string | null, parent: {
209
+ get type(): string;
210
+ get isNode(): boolean;
211
+ evaluate(scope?: Record<string, unknown>): unknown;
212
+ compile(): import("./Node.js").CompiledExpression;
213
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
214
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
215
+ map(_callback: (child: any, path: string, parent: any) => any): any;
216
+ _ifNode(node: unknown): any;
217
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
218
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
219
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
220
+ clone(): any;
221
+ cloneDeep(): any;
222
+ equals(other: any | null | undefined): boolean;
223
+ toString(options?: import("./Node.js").StringOptions): string;
224
+ _toString(_options?: import("./Node.js").StringOptions): string;
225
+ toJSON(): Record<string, unknown>;
226
+ toHTML(options?: import("./Node.js").StringOptions): string;
227
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
228
+ toTex(options?: import("./Node.js").StringOptions): string;
229
+ toMarkdown(options?: {
230
+ inline?: boolean;
231
+ } & import("./Node.js").StringOptions): string;
232
+ toDOT(options?: {
233
+ name?: string;
234
+ }): string;
235
+ toMathML(): string;
236
+ _toMathML(): string;
237
+ _toTex(_options?: import("./Node.js").StringOptions): string;
238
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
239
+ getIdentifier(): string;
240
+ getContent(): any;
241
+ } | null) => void): void;
242
+ transform(callback: (node: {
243
+ get type(): string;
244
+ get isNode(): boolean;
245
+ evaluate(scope?: Record<string, unknown>): unknown;
246
+ compile(): import("./Node.js").CompiledExpression;
247
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
248
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
249
+ map(_callback: (child: any, path: string, parent: any) => any): any;
250
+ _ifNode(node: unknown): any;
251
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
252
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
253
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
254
+ clone(): any;
255
+ cloneDeep(): any;
256
+ equals(other: any | null | undefined): boolean;
257
+ toString(options?: import("./Node.js").StringOptions): string;
258
+ _toString(_options?: import("./Node.js").StringOptions): string;
259
+ toJSON(): Record<string, unknown>;
260
+ toHTML(options?: import("./Node.js").StringOptions): string;
261
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
262
+ toTex(options?: import("./Node.js").StringOptions): string;
263
+ toMarkdown(options?: {
264
+ inline?: boolean;
265
+ } & import("./Node.js").StringOptions): string;
266
+ toDOT(options?: {
267
+ name?: string;
268
+ }): string;
269
+ toMathML(): string;
270
+ _toMathML(): string;
271
+ _toTex(_options?: import("./Node.js").StringOptions): string;
272
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
273
+ getIdentifier(): string;
274
+ getContent(): any;
275
+ }, path: string | null, parent: {
276
+ get type(): string;
277
+ get isNode(): boolean;
278
+ evaluate(scope?: Record<string, unknown>): unknown;
279
+ compile(): import("./Node.js").CompiledExpression;
280
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
281
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
282
+ map(_callback: (child: any, path: string, parent: any) => any): any;
283
+ _ifNode(node: unknown): any;
284
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
285
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
286
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
287
+ clone(): any;
288
+ cloneDeep(): any;
289
+ equals(other: any | null | undefined): boolean;
290
+ toString(options?: import("./Node.js").StringOptions): string;
291
+ _toString(_options?: import("./Node.js").StringOptions): string;
292
+ toJSON(): Record<string, unknown>;
293
+ toHTML(options?: import("./Node.js").StringOptions): string;
294
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
295
+ toTex(options?: import("./Node.js").StringOptions): string;
296
+ toMarkdown(options?: {
297
+ inline?: boolean;
298
+ } & import("./Node.js").StringOptions): string;
299
+ toDOT(options?: {
300
+ name?: string;
301
+ }): string;
302
+ toMathML(): string;
303
+ _toMathML(): string;
304
+ _toTex(_options?: import("./Node.js").StringOptions): string;
305
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
306
+ getIdentifier(): string;
307
+ getContent(): any;
308
+ } | null) => {
309
+ get type(): string;
310
+ get isNode(): boolean;
311
+ evaluate(scope?: Record<string, unknown>): unknown;
312
+ compile(): import("./Node.js").CompiledExpression;
313
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
314
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
315
+ map(_callback: (child: any, path: string, parent: any) => any): any;
316
+ _ifNode(node: unknown): any;
317
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
318
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
319
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
320
+ clone(): any;
321
+ cloneDeep(): any;
322
+ equals(other: any | null | undefined): boolean;
323
+ toString(options?: import("./Node.js").StringOptions): string;
324
+ _toString(_options?: import("./Node.js").StringOptions): string;
325
+ toJSON(): Record<string, unknown>;
326
+ toHTML(options?: import("./Node.js").StringOptions): string;
327
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
328
+ toTex(options?: import("./Node.js").StringOptions): string;
329
+ toMarkdown(options?: {
330
+ inline?: boolean;
331
+ } & import("./Node.js").StringOptions): string;
332
+ toDOT(options?: {
333
+ name?: string;
334
+ }): string;
335
+ toMathML(): string;
336
+ _toMathML(): string;
337
+ _toTex(_options?: import("./Node.js").StringOptions): string;
338
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
339
+ getIdentifier(): string;
340
+ getContent(): any;
341
+ }): {
342
+ get type(): string;
343
+ get isNode(): boolean;
344
+ evaluate(scope?: Record<string, unknown>): unknown;
345
+ compile(): import("./Node.js").CompiledExpression;
346
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
347
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
348
+ map(_callback: (child: any, path: string, parent: any) => any): any;
349
+ _ifNode(node: unknown): any;
350
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
351
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
352
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
353
+ clone(): any;
354
+ cloneDeep(): any;
355
+ equals(other: any | null | undefined): boolean;
356
+ toString(options?: import("./Node.js").StringOptions): string;
357
+ _toString(_options?: import("./Node.js").StringOptions): string;
358
+ toJSON(): Record<string, unknown>;
359
+ toHTML(options?: import("./Node.js").StringOptions): string;
360
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
361
+ toTex(options?: import("./Node.js").StringOptions): string;
362
+ toMarkdown(options?: {
363
+ inline?: boolean;
364
+ } & import("./Node.js").StringOptions): string;
365
+ toDOT(options?: {
366
+ name?: string;
367
+ }): string;
368
+ toMathML(): string;
369
+ _toMathML(): string;
370
+ _toTex(_options?: import("./Node.js").StringOptions): string;
371
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
372
+ getIdentifier(): string;
373
+ getContent(): any;
374
+ };
375
+ filter(callback: (node: {
376
+ get type(): string;
377
+ get isNode(): boolean;
378
+ evaluate(scope?: Record<string, unknown>): unknown;
379
+ compile(): import("./Node.js").CompiledExpression;
380
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
381
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
382
+ map(_callback: (child: any, path: string, parent: any) => any): any;
383
+ _ifNode(node: unknown): any;
384
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
385
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
386
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
387
+ clone(): any;
388
+ cloneDeep(): any;
389
+ equals(other: any | null | undefined): boolean;
390
+ toString(options?: import("./Node.js").StringOptions): string;
391
+ _toString(_options?: import("./Node.js").StringOptions): string;
392
+ toJSON(): Record<string, unknown>;
393
+ toHTML(options?: import("./Node.js").StringOptions): string;
394
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
395
+ toTex(options?: import("./Node.js").StringOptions): string;
396
+ toMarkdown(options?: {
397
+ inline?: boolean;
398
+ } & import("./Node.js").StringOptions): string;
399
+ toDOT(options?: {
400
+ name?: string;
401
+ }): string;
402
+ toMathML(): string;
403
+ _toMathML(): string;
404
+ _toTex(_options?: import("./Node.js").StringOptions): string;
405
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
406
+ getIdentifier(): string;
407
+ getContent(): any;
408
+ }, path: string | null, parent: {
409
+ get type(): string;
410
+ get isNode(): boolean;
411
+ evaluate(scope?: Record<string, unknown>): unknown;
412
+ compile(): import("./Node.js").CompiledExpression;
413
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
414
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
415
+ map(_callback: (child: any, path: string, parent: any) => any): any;
416
+ _ifNode(node: unknown): any;
417
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
418
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
419
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
420
+ clone(): any;
421
+ cloneDeep(): any;
422
+ equals(other: any | null | undefined): boolean;
423
+ toString(options?: import("./Node.js").StringOptions): string;
424
+ _toString(_options?: import("./Node.js").StringOptions): string;
425
+ toJSON(): Record<string, unknown>;
426
+ toHTML(options?: import("./Node.js").StringOptions): string;
427
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
428
+ toTex(options?: import("./Node.js").StringOptions): string;
429
+ toMarkdown(options?: {
430
+ inline?: boolean;
431
+ } & import("./Node.js").StringOptions): string;
432
+ toDOT(options?: {
433
+ name?: string;
434
+ }): string;
435
+ toMathML(): string;
436
+ _toMathML(): string;
437
+ _toTex(_options?: import("./Node.js").StringOptions): string;
438
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
439
+ getIdentifier(): string;
440
+ getContent(): any;
441
+ } | null) => boolean): {
442
+ get type(): string;
443
+ get isNode(): boolean;
444
+ evaluate(scope?: Record<string, unknown>): unknown;
445
+ compile(): import("./Node.js").CompiledExpression;
446
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
447
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
448
+ map(_callback: (child: any, path: string, parent: any) => any): any;
449
+ _ifNode(node: unknown): any;
450
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
451
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
452
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
453
+ clone(): any;
454
+ cloneDeep(): any;
455
+ equals(other: any | null | undefined): boolean;
456
+ toString(options?: import("./Node.js").StringOptions): string;
457
+ _toString(_options?: import("./Node.js").StringOptions): string;
458
+ toJSON(): Record<string, unknown>;
459
+ toHTML(options?: import("./Node.js").StringOptions): string;
460
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
461
+ toTex(options?: import("./Node.js").StringOptions): string;
462
+ toMarkdown(options?: {
463
+ inline?: boolean;
464
+ } & import("./Node.js").StringOptions): string;
465
+ toDOT(options?: {
466
+ name?: string;
467
+ }): string;
468
+ toMathML(): string;
469
+ _toMathML(): string;
470
+ _toTex(_options?: import("./Node.js").StringOptions): string;
471
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
472
+ getIdentifier(): string;
473
+ getContent(): any;
474
+ }[];
475
+ cloneDeep(): {
476
+ get type(): string;
477
+ get isNode(): boolean;
478
+ evaluate(scope?: Record<string, unknown>): unknown;
479
+ compile(): import("./Node.js").CompiledExpression;
480
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
481
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
482
+ map(_callback: (child: any, path: string, parent: any) => any): any;
483
+ _ifNode(node: unknown): any;
484
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
485
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
486
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
487
+ clone(): any;
488
+ cloneDeep(): any;
489
+ equals(other: any | null | undefined): boolean;
490
+ toString(options?: import("./Node.js").StringOptions): string;
491
+ _toString(_options?: import("./Node.js").StringOptions): string;
492
+ toJSON(): Record<string, unknown>;
493
+ toHTML(options?: import("./Node.js").StringOptions): string;
494
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
495
+ toTex(options?: import("./Node.js").StringOptions): string;
496
+ toMarkdown(options?: {
497
+ inline?: boolean;
498
+ } & import("./Node.js").StringOptions): string;
499
+ toDOT(options?: {
500
+ name?: string;
501
+ }): string;
502
+ toMathML(): string;
503
+ _toMathML(): string;
504
+ _toTex(_options?: import("./Node.js").StringOptions): string;
505
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
506
+ getIdentifier(): string;
507
+ getContent(): any;
508
+ };
509
+ equals(other: {
510
+ get type(): string;
511
+ get isNode(): boolean;
512
+ evaluate(scope?: Record<string, unknown>): unknown;
513
+ compile(): import("./Node.js").CompiledExpression;
514
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
515
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
516
+ map(_callback: (child: any, path: string, parent: any) => any): any;
517
+ _ifNode(node: unknown): any;
518
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
519
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
520
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
521
+ clone(): any;
522
+ cloneDeep(): any;
523
+ equals(other: any | null | undefined): boolean;
524
+ toString(options?: import("./Node.js").StringOptions): string;
525
+ _toString(_options?: import("./Node.js").StringOptions): string;
526
+ toJSON(): Record<string, unknown>;
527
+ toHTML(options?: import("./Node.js").StringOptions): string;
528
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
529
+ toTex(options?: import("./Node.js").StringOptions): string;
530
+ toMarkdown(options?: {
531
+ inline?: boolean;
532
+ } & import("./Node.js").StringOptions): string;
533
+ toDOT(options?: {
534
+ name?: string;
535
+ }): string;
536
+ toMathML(): string;
537
+ _toMathML(): string;
538
+ _toTex(_options?: import("./Node.js").StringOptions): string;
539
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
540
+ getIdentifier(): string;
541
+ getContent(): any;
542
+ } | null | undefined): boolean;
543
+ toString(options?: import("./Node.js").StringOptions): string;
544
+ toHTML(options?: import("./Node.js").StringOptions): string;
106
545
  };
107
546
  name: string;
108
547
  /**
@@ -120,13 +559,56 @@ export declare const createOperatorNode: import("../utils/factory.js").FactoryFu
120
559
  fromJSON(json: {
121
560
  op: string;
122
561
  fn: string;
123
- args: Node[];
562
+ args: MathNode[];
124
563
  implicit: boolean;
125
564
  isPercentage: boolean;
126
565
  }): {
566
+ toTex(options?: import("./Node.js").StringOptions): string;
567
+ toMarkdown(options?: {
568
+ inline?: boolean;
569
+ } & import("./Node.js").StringOptions): string;
570
+ toDOT(options?: {
571
+ name?: string;
572
+ }): string;
573
+ toMathML(): string;
574
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
575
+ getContent(): {
576
+ get type(): string;
577
+ get isNode(): boolean;
578
+ evaluate(scope?: Record<string, unknown>): unknown;
579
+ compile(): import("./Node.js").CompiledExpression;
580
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
581
+ forEach(_callback: (child: /*elided*/ any, path: string, parent: /*elided*/ any) => void): void;
582
+ map(_callback: (child: /*elided*/ any, path: string, parent: /*elided*/ any) => /*elided*/ any): /*elided*/ any;
583
+ _ifNode(node: unknown): /*elided*/ any;
584
+ traverse(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => void): void;
585
+ transform(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => /*elided*/ any): /*elided*/ any;
586
+ filter(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => boolean): /*elided*/ any[];
587
+ clone(): /*elided*/ any;
588
+ cloneDeep(): /*elided*/ any;
589
+ equals(other: /*elided*/ any | null | undefined): boolean;
590
+ toString(options?: import("./Node.js").StringOptions): string;
591
+ _toString(_options?: import("./Node.js").StringOptions): string;
592
+ toJSON(): Record<string, unknown>;
593
+ toHTML(options?: import("./Node.js").StringOptions): string;
594
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
595
+ toTex(options?: import("./Node.js").StringOptions): string;
596
+ toMarkdown(options?: {
597
+ inline?: boolean;
598
+ } & import("./Node.js").StringOptions): string;
599
+ toDOT(options?: {
600
+ name?: string;
601
+ }): string;
602
+ toMathML(): string;
603
+ _toMathML(): string;
604
+ _toTex(_options?: import("./Node.js").StringOptions): string;
605
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
606
+ getIdentifier(): string;
607
+ getContent(): /*elided*/ any;
608
+ };
127
609
  op: string;
128
610
  fn: string;
129
- args: Node[];
611
+ args: MathNode[];
130
612
  implicit: boolean;
131
613
  isPercentage: boolean;
132
614
  get type(): string;
@@ -149,14 +631,14 @@ export declare const createOperatorNode: import("../utils/factory.js").FactoryFu
149
631
  * Execute a callback for each of the child nodes of this node
150
632
  * @param callback
151
633
  */
152
- forEach(callback: (child: Node, path: string, parent: /*elided*/ any) => void): void;
634
+ forEach(callback: (child: MathNode, path: string, parent: /*elided*/ any) => void): void;
153
635
  /**
154
636
  * Create a new OperatorNode whose children are the results of calling
155
637
  * the provided callback function for each child of the original node.
156
638
  * @param callback
157
639
  * @returns Returns a transformed copy of the node
158
640
  */
159
- map(callback: (child: Node, path: string, parent: /*elided*/ any) => Node): /*elided*/ any;
641
+ map(callback: (child: MathNode, path: string, parent: /*elided*/ any) => MathNode): /*elided*/ any;
160
642
  /**
161
643
  * Create a clone of this node, a shallow copy
162
644
  */
@@ -182,7 +664,14 @@ export declare const createOperatorNode: import("../utils/factory.js").FactoryFu
182
664
  /**
183
665
  * Get a JSON representation of the node
184
666
  */
185
- toJSON(): Record<string, unknown>;
667
+ toJSON(): {
668
+ mathjs: string;
669
+ op: string;
670
+ fn: string;
671
+ args: MathNode[];
672
+ implicit: boolean;
673
+ isPercentage: boolean;
674
+ };
186
675
  /**
187
676
  * Get HTML representation.
188
677
  * @param options
@@ -199,13 +688,413 @@ export declare const createOperatorNode: import("../utils/factory.js").FactoryFu
199
688
  * Get identifier.
200
689
  */
201
690
  getIdentifier(): string;
202
- _ifNode: (node: unknown) => Node;
203
- filter: (callback: (node: Node) => boolean) => Node[];
204
- getContent: () => Node;
205
- toString: (options?: StringOptions) => string;
206
- toHTML: (options?: StringOptions) => string;
207
- toTex: (options?: StringOptions) => string;
208
- toMathML: () => string;
691
+ get isNode(): boolean;
692
+ evaluate(scope?: Record<string, unknown>): unknown;
693
+ compile(): import("./Node.js").CompiledExpression;
694
+ _ifNode(node: unknown): {
695
+ get type(): string;
696
+ get isNode(): boolean;
697
+ evaluate(scope?: Record<string, unknown>): unknown;
698
+ compile(): import("./Node.js").CompiledExpression;
699
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
700
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
701
+ map(_callback: (child: any, path: string, parent: any) => any): any;
702
+ _ifNode(node: unknown): any;
703
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
704
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
705
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
706
+ clone(): any;
707
+ cloneDeep(): any;
708
+ equals(other: any | null | undefined): boolean;
709
+ toString(options?: import("./Node.js").StringOptions): string;
710
+ _toString(_options?: import("./Node.js").StringOptions): string;
711
+ toJSON(): Record<string, unknown>;
712
+ toHTML(options?: import("./Node.js").StringOptions): string;
713
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
714
+ toTex(options?: import("./Node.js").StringOptions): string;
715
+ toMarkdown(options?: {
716
+ inline?: boolean;
717
+ } & import("./Node.js").StringOptions): string;
718
+ toDOT(options?: {
719
+ name?: string;
720
+ }): string;
721
+ toMathML(): string;
722
+ _toMathML(): string;
723
+ _toTex(_options?: import("./Node.js").StringOptions): string;
724
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
725
+ getIdentifier(): string;
726
+ getContent(): any;
727
+ };
728
+ traverse(callback: (node: {
729
+ get type(): string;
730
+ get isNode(): boolean;
731
+ evaluate(scope?: Record<string, unknown>): unknown;
732
+ compile(): import("./Node.js").CompiledExpression;
733
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
734
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
735
+ map(_callback: (child: any, path: string, parent: any) => any): any;
736
+ _ifNode(node: unknown): any;
737
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
738
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
739
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
740
+ clone(): any;
741
+ cloneDeep(): any;
742
+ equals(other: any | null | undefined): boolean;
743
+ toString(options?: import("./Node.js").StringOptions): string;
744
+ _toString(_options?: import("./Node.js").StringOptions): string;
745
+ toJSON(): Record<string, unknown>;
746
+ toHTML(options?: import("./Node.js").StringOptions): string;
747
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
748
+ toTex(options?: import("./Node.js").StringOptions): string;
749
+ toMarkdown(options?: {
750
+ inline?: boolean;
751
+ } & import("./Node.js").StringOptions): string;
752
+ toDOT(options?: {
753
+ name?: string;
754
+ }): string;
755
+ toMathML(): string;
756
+ _toMathML(): string;
757
+ _toTex(_options?: import("./Node.js").StringOptions): string;
758
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
759
+ getIdentifier(): string;
760
+ getContent(): any;
761
+ }, path: string | null, parent: {
762
+ get type(): string;
763
+ get isNode(): boolean;
764
+ evaluate(scope?: Record<string, unknown>): unknown;
765
+ compile(): import("./Node.js").CompiledExpression;
766
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
767
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
768
+ map(_callback: (child: any, path: string, parent: any) => any): any;
769
+ _ifNode(node: unknown): any;
770
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
771
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
772
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
773
+ clone(): any;
774
+ cloneDeep(): any;
775
+ equals(other: any | null | undefined): boolean;
776
+ toString(options?: import("./Node.js").StringOptions): string;
777
+ _toString(_options?: import("./Node.js").StringOptions): string;
778
+ toJSON(): Record<string, unknown>;
779
+ toHTML(options?: import("./Node.js").StringOptions): string;
780
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
781
+ toTex(options?: import("./Node.js").StringOptions): string;
782
+ toMarkdown(options?: {
783
+ inline?: boolean;
784
+ } & import("./Node.js").StringOptions): string;
785
+ toDOT(options?: {
786
+ name?: string;
787
+ }): string;
788
+ toMathML(): string;
789
+ _toMathML(): string;
790
+ _toTex(_options?: import("./Node.js").StringOptions): string;
791
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
792
+ getIdentifier(): string;
793
+ getContent(): any;
794
+ } | null) => void): void;
795
+ transform(callback: (node: {
796
+ get type(): string;
797
+ get isNode(): boolean;
798
+ evaluate(scope?: Record<string, unknown>): unknown;
799
+ compile(): import("./Node.js").CompiledExpression;
800
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
801
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
802
+ map(_callback: (child: any, path: string, parent: any) => any): any;
803
+ _ifNode(node: unknown): any;
804
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
805
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
806
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
807
+ clone(): any;
808
+ cloneDeep(): any;
809
+ equals(other: any | null | undefined): boolean;
810
+ toString(options?: import("./Node.js").StringOptions): string;
811
+ _toString(_options?: import("./Node.js").StringOptions): string;
812
+ toJSON(): Record<string, unknown>;
813
+ toHTML(options?: import("./Node.js").StringOptions): string;
814
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
815
+ toTex(options?: import("./Node.js").StringOptions): string;
816
+ toMarkdown(options?: {
817
+ inline?: boolean;
818
+ } & import("./Node.js").StringOptions): string;
819
+ toDOT(options?: {
820
+ name?: string;
821
+ }): string;
822
+ toMathML(): string;
823
+ _toMathML(): string;
824
+ _toTex(_options?: import("./Node.js").StringOptions): string;
825
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
826
+ getIdentifier(): string;
827
+ getContent(): any;
828
+ }, path: string | null, parent: {
829
+ get type(): string;
830
+ get isNode(): boolean;
831
+ evaluate(scope?: Record<string, unknown>): unknown;
832
+ compile(): import("./Node.js").CompiledExpression;
833
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
834
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
835
+ map(_callback: (child: any, path: string, parent: any) => any): any;
836
+ _ifNode(node: unknown): any;
837
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
838
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
839
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
840
+ clone(): any;
841
+ cloneDeep(): any;
842
+ equals(other: any | null | undefined): boolean;
843
+ toString(options?: import("./Node.js").StringOptions): string;
844
+ _toString(_options?: import("./Node.js").StringOptions): string;
845
+ toJSON(): Record<string, unknown>;
846
+ toHTML(options?: import("./Node.js").StringOptions): string;
847
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
848
+ toTex(options?: import("./Node.js").StringOptions): string;
849
+ toMarkdown(options?: {
850
+ inline?: boolean;
851
+ } & import("./Node.js").StringOptions): string;
852
+ toDOT(options?: {
853
+ name?: string;
854
+ }): string;
855
+ toMathML(): string;
856
+ _toMathML(): string;
857
+ _toTex(_options?: import("./Node.js").StringOptions): string;
858
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
859
+ getIdentifier(): string;
860
+ getContent(): any;
861
+ } | null) => {
862
+ get type(): string;
863
+ get isNode(): boolean;
864
+ evaluate(scope?: Record<string, unknown>): unknown;
865
+ compile(): import("./Node.js").CompiledExpression;
866
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
867
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
868
+ map(_callback: (child: any, path: string, parent: any) => any): any;
869
+ _ifNode(node: unknown): any;
870
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
871
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
872
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
873
+ clone(): any;
874
+ cloneDeep(): any;
875
+ equals(other: any | null | undefined): boolean;
876
+ toString(options?: import("./Node.js").StringOptions): string;
877
+ _toString(_options?: import("./Node.js").StringOptions): string;
878
+ toJSON(): Record<string, unknown>;
879
+ toHTML(options?: import("./Node.js").StringOptions): string;
880
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
881
+ toTex(options?: import("./Node.js").StringOptions): string;
882
+ toMarkdown(options?: {
883
+ inline?: boolean;
884
+ } & import("./Node.js").StringOptions): string;
885
+ toDOT(options?: {
886
+ name?: string;
887
+ }): string;
888
+ toMathML(): string;
889
+ _toMathML(): string;
890
+ _toTex(_options?: import("./Node.js").StringOptions): string;
891
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
892
+ getIdentifier(): string;
893
+ getContent(): any;
894
+ }): {
895
+ get type(): string;
896
+ get isNode(): boolean;
897
+ evaluate(scope?: Record<string, unknown>): unknown;
898
+ compile(): import("./Node.js").CompiledExpression;
899
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
900
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
901
+ map(_callback: (child: any, path: string, parent: any) => any): any;
902
+ _ifNode(node: unknown): any;
903
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
904
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
905
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
906
+ clone(): any;
907
+ cloneDeep(): any;
908
+ equals(other: any | null | undefined): boolean;
909
+ toString(options?: import("./Node.js").StringOptions): string;
910
+ _toString(_options?: import("./Node.js").StringOptions): string;
911
+ toJSON(): Record<string, unknown>;
912
+ toHTML(options?: import("./Node.js").StringOptions): string;
913
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
914
+ toTex(options?: import("./Node.js").StringOptions): string;
915
+ toMarkdown(options?: {
916
+ inline?: boolean;
917
+ } & import("./Node.js").StringOptions): string;
918
+ toDOT(options?: {
919
+ name?: string;
920
+ }): string;
921
+ toMathML(): string;
922
+ _toMathML(): string;
923
+ _toTex(_options?: import("./Node.js").StringOptions): string;
924
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
925
+ getIdentifier(): string;
926
+ getContent(): any;
927
+ };
928
+ filter(callback: (node: {
929
+ get type(): string;
930
+ get isNode(): boolean;
931
+ evaluate(scope?: Record<string, unknown>): unknown;
932
+ compile(): import("./Node.js").CompiledExpression;
933
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
934
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
935
+ map(_callback: (child: any, path: string, parent: any) => any): any;
936
+ _ifNode(node: unknown): any;
937
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
938
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
939
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
940
+ clone(): any;
941
+ cloneDeep(): any;
942
+ equals(other: any | null | undefined): boolean;
943
+ toString(options?: import("./Node.js").StringOptions): string;
944
+ _toString(_options?: import("./Node.js").StringOptions): string;
945
+ toJSON(): Record<string, unknown>;
946
+ toHTML(options?: import("./Node.js").StringOptions): string;
947
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
948
+ toTex(options?: import("./Node.js").StringOptions): string;
949
+ toMarkdown(options?: {
950
+ inline?: boolean;
951
+ } & import("./Node.js").StringOptions): string;
952
+ toDOT(options?: {
953
+ name?: string;
954
+ }): string;
955
+ toMathML(): string;
956
+ _toMathML(): string;
957
+ _toTex(_options?: import("./Node.js").StringOptions): string;
958
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
959
+ getIdentifier(): string;
960
+ getContent(): any;
961
+ }, path: string | null, parent: {
962
+ get type(): string;
963
+ get isNode(): boolean;
964
+ evaluate(scope?: Record<string, unknown>): unknown;
965
+ compile(): import("./Node.js").CompiledExpression;
966
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
967
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
968
+ map(_callback: (child: any, path: string, parent: any) => any): any;
969
+ _ifNode(node: unknown): any;
970
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
971
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
972
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
973
+ clone(): any;
974
+ cloneDeep(): any;
975
+ equals(other: any | null | undefined): boolean;
976
+ toString(options?: import("./Node.js").StringOptions): string;
977
+ _toString(_options?: import("./Node.js").StringOptions): string;
978
+ toJSON(): Record<string, unknown>;
979
+ toHTML(options?: import("./Node.js").StringOptions): string;
980
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
981
+ toTex(options?: import("./Node.js").StringOptions): string;
982
+ toMarkdown(options?: {
983
+ inline?: boolean;
984
+ } & import("./Node.js").StringOptions): string;
985
+ toDOT(options?: {
986
+ name?: string;
987
+ }): string;
988
+ toMathML(): string;
989
+ _toMathML(): string;
990
+ _toTex(_options?: import("./Node.js").StringOptions): string;
991
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
992
+ getIdentifier(): string;
993
+ getContent(): any;
994
+ } | null) => boolean): {
995
+ get type(): string;
996
+ get isNode(): boolean;
997
+ evaluate(scope?: Record<string, unknown>): unknown;
998
+ compile(): import("./Node.js").CompiledExpression;
999
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
1000
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
1001
+ map(_callback: (child: any, path: string, parent: any) => any): any;
1002
+ _ifNode(node: unknown): any;
1003
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
1004
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
1005
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
1006
+ clone(): any;
1007
+ cloneDeep(): any;
1008
+ equals(other: any | null | undefined): boolean;
1009
+ toString(options?: import("./Node.js").StringOptions): string;
1010
+ _toString(_options?: import("./Node.js").StringOptions): string;
1011
+ toJSON(): Record<string, unknown>;
1012
+ toHTML(options?: import("./Node.js").StringOptions): string;
1013
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
1014
+ toTex(options?: import("./Node.js").StringOptions): string;
1015
+ toMarkdown(options?: {
1016
+ inline?: boolean;
1017
+ } & import("./Node.js").StringOptions): string;
1018
+ toDOT(options?: {
1019
+ name?: string;
1020
+ }): string;
1021
+ toMathML(): string;
1022
+ _toMathML(): string;
1023
+ _toTex(_options?: import("./Node.js").StringOptions): string;
1024
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
1025
+ getIdentifier(): string;
1026
+ getContent(): any;
1027
+ }[];
1028
+ cloneDeep(): {
1029
+ get type(): string;
1030
+ get isNode(): boolean;
1031
+ evaluate(scope?: Record<string, unknown>): unknown;
1032
+ compile(): import("./Node.js").CompiledExpression;
1033
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
1034
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
1035
+ map(_callback: (child: any, path: string, parent: any) => any): any;
1036
+ _ifNode(node: unknown): any;
1037
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
1038
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
1039
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
1040
+ clone(): any;
1041
+ cloneDeep(): any;
1042
+ equals(other: any | null | undefined): boolean;
1043
+ toString(options?: import("./Node.js").StringOptions): string;
1044
+ _toString(_options?: import("./Node.js").StringOptions): string;
1045
+ toJSON(): Record<string, unknown>;
1046
+ toHTML(options?: import("./Node.js").StringOptions): string;
1047
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
1048
+ toTex(options?: import("./Node.js").StringOptions): string;
1049
+ toMarkdown(options?: {
1050
+ inline?: boolean;
1051
+ } & import("./Node.js").StringOptions): string;
1052
+ toDOT(options?: {
1053
+ name?: string;
1054
+ }): string;
1055
+ toMathML(): string;
1056
+ _toMathML(): string;
1057
+ _toTex(_options?: import("./Node.js").StringOptions): string;
1058
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
1059
+ getIdentifier(): string;
1060
+ getContent(): any;
1061
+ };
1062
+ equals(other: {
1063
+ get type(): string;
1064
+ get isNode(): boolean;
1065
+ evaluate(scope?: Record<string, unknown>): unknown;
1066
+ compile(): import("./Node.js").CompiledExpression;
1067
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
1068
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
1069
+ map(_callback: (child: any, path: string, parent: any) => any): any;
1070
+ _ifNode(node: unknown): any;
1071
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
1072
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
1073
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
1074
+ clone(): any;
1075
+ cloneDeep(): any;
1076
+ equals(other: any | null | undefined): boolean;
1077
+ toString(options?: import("./Node.js").StringOptions): string;
1078
+ _toString(_options?: import("./Node.js").StringOptions): string;
1079
+ toJSON(): Record<string, unknown>;
1080
+ toHTML(options?: import("./Node.js").StringOptions): string;
1081
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
1082
+ toTex(options?: import("./Node.js").StringOptions): string;
1083
+ toMarkdown(options?: {
1084
+ inline?: boolean;
1085
+ } & import("./Node.js").StringOptions): string;
1086
+ toDOT(options?: {
1087
+ name?: string;
1088
+ }): string;
1089
+ toMathML(): string;
1090
+ _toMathML(): string;
1091
+ _toTex(_options?: import("./Node.js").StringOptions): string;
1092
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
1093
+ getIdentifier(): string;
1094
+ getContent(): any;
1095
+ } | null | undefined): boolean;
1096
+ toString(options?: import("./Node.js").StringOptions): string;
1097
+ toHTML(options?: import("./Node.js").StringOptions): string;
209
1098
  };
210
1099
  }>;
211
1100
  export {};