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