@danielsimonjr/mathts-expression 0.8.1 → 0.9.0

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,22 +1,18 @@
1
- interface Node {
2
- _compile: (math: Record<string, unknown>, argNames: Record<string, boolean>) => CompileFunction;
3
- getContent: () => Node;
4
- toString: (options?: StringOptions) => string;
5
- toHTML: (options?: StringOptions) => string;
6
- toTex: (options?: StringOptions) => string;
7
- toMathML: () => string;
8
- }
1
+ import type { MathNode } from './Node.js';
9
2
  type CompileFunction = (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
10
3
  interface StringOptions {
11
4
  parenthesis?: 'keep' | 'auto' | 'all';
12
5
  [key: string]: unknown;
13
6
  }
14
7
  interface Dependencies {
15
- Node: new (...args: unknown[]) => Node;
8
+ Node: new (...args: unknown[]) => MathNode;
16
9
  }
17
10
  export declare const createParenthesisNode: import("../utils/factory.js").FactoryFunction<Dependencies, {
18
- new (content: Node): {
19
- content: Node;
11
+ new (content: MathNode): {
12
+ get isNode(): boolean;
13
+ evaluate(scope?: Record<string, unknown>): unknown;
14
+ compile(): import("./Node.js").CompiledExpression;
15
+ content: MathNode;
20
16
  get type(): string;
21
17
  get isParenthesisNode(): boolean;
22
18
  /**
@@ -38,19 +34,19 @@ export declare const createParenthesisNode: import("../utils/factory.js").Factor
38
34
  * @returns content
39
35
  * @override
40
36
  **/
41
- getContent(): Node;
37
+ getContent(): MathNode;
42
38
  /**
43
39
  * Execute a callback for each of the child nodes of this node
44
40
  * @param callback
45
41
  */
46
- forEach(callback: (child: Node, path: string, parent: /*elided*/ any) => void): void;
42
+ forEach(callback: (child: MathNode, path: string, parent: /*elided*/ any) => void): void;
47
43
  /**
48
44
  * Create a new ParenthesisNode whose child is the result of calling
49
45
  * the provided callback function on the child of this node.
50
46
  * @param callback
51
47
  * @returns Returns a clone of the node
52
48
  */
53
- map(callback: (child: Node, path: string, parent: /*elided*/ any) => Node): /*elided*/ any;
49
+ map(callback: (child: MathNode, path: string, parent: /*elided*/ any) => MathNode): /*elided*/ any;
54
50
  /**
55
51
  * Create a clone of this node, a shallow copy
56
52
  */
@@ -65,7 +61,10 @@ export declare const createParenthesisNode: import("../utils/factory.js").Factor
65
61
  /**
66
62
  * Get a JSON representation of the node
67
63
  */
68
- toJSON(): Record<string, unknown>;
64
+ toJSON(): {
65
+ mathjs: string;
66
+ content: MathNode;
67
+ };
69
68
  /**
70
69
  * Get HTML representation
71
70
  * @param options
@@ -80,10 +79,420 @@ export declare const createParenthesisNode: import("../utils/factory.js").Factor
80
79
  */
81
80
  _toMathML(): string;
82
81
  _toTex(options?: StringOptions): string;
83
- toString: (options?: StringOptions) => string;
84
- toHTML: (options?: StringOptions) => string;
85
- toTex: (options?: StringOptions) => string;
86
- toMathML: () => string;
82
+ _ifNode(node: unknown): {
83
+ get type(): string;
84
+ get isNode(): boolean;
85
+ evaluate(scope?: Record<string, unknown>): unknown;
86
+ compile(): import("./Node.js").CompiledExpression;
87
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
88
+ forEach(_callback: (child: /*elided*/ any, path: string, parent: /*elided*/ any) => void): void;
89
+ map(_callback: (child: /*elided*/ any, path: string, parent: /*elided*/ any) => /*elided*/ any): /*elided*/ any;
90
+ _ifNode(node: unknown): /*elided*/ any;
91
+ traverse(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => void): void;
92
+ transform(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => /*elided*/ any): /*elided*/ any;
93
+ filter(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => boolean): /*elided*/ any[];
94
+ clone(): /*elided*/ any;
95
+ cloneDeep(): /*elided*/ any;
96
+ equals(other: /*elided*/ any | null | undefined): boolean;
97
+ toString(options?: import("./Node.js").StringOptions): string;
98
+ _toString(_options?: import("./Node.js").StringOptions): string;
99
+ toJSON(): Record<string, unknown>;
100
+ toHTML(options?: import("./Node.js").StringOptions): string;
101
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
102
+ toTex(options?: import("./Node.js").StringOptions): string;
103
+ toMarkdown(options?: {
104
+ inline?: boolean;
105
+ } & import("./Node.js").StringOptions): string;
106
+ toDOT(options?: {
107
+ name?: string;
108
+ }): string;
109
+ toMathML(): string;
110
+ _toMathML(): string;
111
+ _toTex(_options?: import("./Node.js").StringOptions): string;
112
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
113
+ getIdentifier(): string;
114
+ getContent(): /*elided*/ any;
115
+ };
116
+ traverse(callback: (node: {
117
+ get type(): string;
118
+ get isNode(): boolean;
119
+ evaluate(scope?: Record<string, unknown>): unknown;
120
+ compile(): import("./Node.js").CompiledExpression;
121
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
122
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
123
+ map(_callback: (child: any, path: string, parent: any) => any): any;
124
+ _ifNode(node: unknown): any;
125
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
126
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
127
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
128
+ clone(): any;
129
+ cloneDeep(): any;
130
+ equals(other: any | null | undefined): boolean;
131
+ toString(options?: import("./Node.js").StringOptions): string;
132
+ _toString(_options?: import("./Node.js").StringOptions): string;
133
+ toJSON(): Record<string, unknown>;
134
+ toHTML(options?: import("./Node.js").StringOptions): string;
135
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
136
+ toTex(options?: import("./Node.js").StringOptions): string;
137
+ toMarkdown(options?: {
138
+ inline?: boolean;
139
+ } & import("./Node.js").StringOptions): string;
140
+ toDOT(options?: {
141
+ name?: string;
142
+ }): string;
143
+ toMathML(): string;
144
+ _toMathML(): string;
145
+ _toTex(_options?: import("./Node.js").StringOptions): string;
146
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
147
+ getIdentifier(): string;
148
+ getContent(): any;
149
+ }, path: string | null, parent: {
150
+ get type(): string;
151
+ get isNode(): boolean;
152
+ evaluate(scope?: Record<string, unknown>): unknown;
153
+ compile(): import("./Node.js").CompiledExpression;
154
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
155
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
156
+ map(_callback: (child: any, path: string, parent: any) => any): any;
157
+ _ifNode(node: unknown): any;
158
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
159
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
160
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
161
+ clone(): any;
162
+ cloneDeep(): any;
163
+ equals(other: any | null | undefined): boolean;
164
+ toString(options?: import("./Node.js").StringOptions): string;
165
+ _toString(_options?: import("./Node.js").StringOptions): string;
166
+ toJSON(): Record<string, unknown>;
167
+ toHTML(options?: import("./Node.js").StringOptions): string;
168
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
169
+ toTex(options?: import("./Node.js").StringOptions): string;
170
+ toMarkdown(options?: {
171
+ inline?: boolean;
172
+ } & import("./Node.js").StringOptions): string;
173
+ toDOT(options?: {
174
+ name?: string;
175
+ }): string;
176
+ toMathML(): string;
177
+ _toMathML(): string;
178
+ _toTex(_options?: import("./Node.js").StringOptions): string;
179
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
180
+ getIdentifier(): string;
181
+ getContent(): any;
182
+ } | null) => void): void;
183
+ transform(callback: (node: {
184
+ get type(): string;
185
+ get isNode(): boolean;
186
+ evaluate(scope?: Record<string, unknown>): unknown;
187
+ compile(): import("./Node.js").CompiledExpression;
188
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
189
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
190
+ map(_callback: (child: any, path: string, parent: any) => any): any;
191
+ _ifNode(node: unknown): any;
192
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
193
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
194
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
195
+ clone(): any;
196
+ cloneDeep(): any;
197
+ equals(other: any | null | undefined): boolean;
198
+ toString(options?: import("./Node.js").StringOptions): string;
199
+ _toString(_options?: import("./Node.js").StringOptions): string;
200
+ toJSON(): Record<string, unknown>;
201
+ toHTML(options?: import("./Node.js").StringOptions): string;
202
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
203
+ toTex(options?: import("./Node.js").StringOptions): string;
204
+ toMarkdown(options?: {
205
+ inline?: boolean;
206
+ } & import("./Node.js").StringOptions): string;
207
+ toDOT(options?: {
208
+ name?: string;
209
+ }): string;
210
+ toMathML(): string;
211
+ _toMathML(): string;
212
+ _toTex(_options?: import("./Node.js").StringOptions): string;
213
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
214
+ getIdentifier(): string;
215
+ getContent(): any;
216
+ }, path: string | null, parent: {
217
+ get type(): string;
218
+ get isNode(): boolean;
219
+ evaluate(scope?: Record<string, unknown>): unknown;
220
+ compile(): import("./Node.js").CompiledExpression;
221
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
222
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
223
+ map(_callback: (child: any, path: string, parent: any) => any): any;
224
+ _ifNode(node: unknown): any;
225
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
226
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
227
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
228
+ clone(): any;
229
+ cloneDeep(): any;
230
+ equals(other: any | null | undefined): boolean;
231
+ toString(options?: import("./Node.js").StringOptions): string;
232
+ _toString(_options?: import("./Node.js").StringOptions): string;
233
+ toJSON(): Record<string, unknown>;
234
+ toHTML(options?: import("./Node.js").StringOptions): string;
235
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
236
+ toTex(options?: import("./Node.js").StringOptions): string;
237
+ toMarkdown(options?: {
238
+ inline?: boolean;
239
+ } & import("./Node.js").StringOptions): string;
240
+ toDOT(options?: {
241
+ name?: string;
242
+ }): string;
243
+ toMathML(): string;
244
+ _toMathML(): string;
245
+ _toTex(_options?: import("./Node.js").StringOptions): string;
246
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
247
+ getIdentifier(): string;
248
+ getContent(): any;
249
+ } | null) => {
250
+ get type(): string;
251
+ get isNode(): boolean;
252
+ evaluate(scope?: Record<string, unknown>): unknown;
253
+ compile(): import("./Node.js").CompiledExpression;
254
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
255
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
256
+ map(_callback: (child: any, path: string, parent: any) => any): any;
257
+ _ifNode(node: unknown): any;
258
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
259
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
260
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
261
+ clone(): any;
262
+ cloneDeep(): any;
263
+ equals(other: any | null | undefined): boolean;
264
+ toString(options?: import("./Node.js").StringOptions): string;
265
+ _toString(_options?: import("./Node.js").StringOptions): string;
266
+ toJSON(): Record<string, unknown>;
267
+ toHTML(options?: import("./Node.js").StringOptions): string;
268
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
269
+ toTex(options?: import("./Node.js").StringOptions): string;
270
+ toMarkdown(options?: {
271
+ inline?: boolean;
272
+ } & import("./Node.js").StringOptions): string;
273
+ toDOT(options?: {
274
+ name?: string;
275
+ }): string;
276
+ toMathML(): string;
277
+ _toMathML(): string;
278
+ _toTex(_options?: import("./Node.js").StringOptions): string;
279
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
280
+ getIdentifier(): string;
281
+ getContent(): any;
282
+ }): {
283
+ get type(): string;
284
+ get isNode(): boolean;
285
+ evaluate(scope?: Record<string, unknown>): unknown;
286
+ compile(): import("./Node.js").CompiledExpression;
287
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
288
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
289
+ map(_callback: (child: any, path: string, parent: any) => any): any;
290
+ _ifNode(node: unknown): any;
291
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
292
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
293
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
294
+ clone(): any;
295
+ cloneDeep(): any;
296
+ equals(other: any | null | undefined): boolean;
297
+ toString(options?: import("./Node.js").StringOptions): string;
298
+ _toString(_options?: import("./Node.js").StringOptions): string;
299
+ toJSON(): Record<string, unknown>;
300
+ toHTML(options?: import("./Node.js").StringOptions): string;
301
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
302
+ toTex(options?: import("./Node.js").StringOptions): string;
303
+ toMarkdown(options?: {
304
+ inline?: boolean;
305
+ } & import("./Node.js").StringOptions): string;
306
+ toDOT(options?: {
307
+ name?: string;
308
+ }): string;
309
+ toMathML(): string;
310
+ _toMathML(): string;
311
+ _toTex(_options?: import("./Node.js").StringOptions): string;
312
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
313
+ getIdentifier(): string;
314
+ getContent(): any;
315
+ };
316
+ filter(callback: (node: {
317
+ get type(): string;
318
+ get isNode(): boolean;
319
+ evaluate(scope?: Record<string, unknown>): unknown;
320
+ compile(): import("./Node.js").CompiledExpression;
321
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
322
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
323
+ map(_callback: (child: any, path: string, parent: any) => any): any;
324
+ _ifNode(node: unknown): any;
325
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
326
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
327
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
328
+ clone(): any;
329
+ cloneDeep(): any;
330
+ equals(other: any | null | undefined): boolean;
331
+ toString(options?: import("./Node.js").StringOptions): string;
332
+ _toString(_options?: import("./Node.js").StringOptions): string;
333
+ toJSON(): Record<string, unknown>;
334
+ toHTML(options?: import("./Node.js").StringOptions): string;
335
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
336
+ toTex(options?: import("./Node.js").StringOptions): string;
337
+ toMarkdown(options?: {
338
+ inline?: boolean;
339
+ } & import("./Node.js").StringOptions): string;
340
+ toDOT(options?: {
341
+ name?: string;
342
+ }): string;
343
+ toMathML(): string;
344
+ _toMathML(): string;
345
+ _toTex(_options?: import("./Node.js").StringOptions): string;
346
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
347
+ getIdentifier(): string;
348
+ getContent(): any;
349
+ }, path: string | null, parent: {
350
+ get type(): string;
351
+ get isNode(): boolean;
352
+ evaluate(scope?: Record<string, unknown>): unknown;
353
+ compile(): import("./Node.js").CompiledExpression;
354
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
355
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
356
+ map(_callback: (child: any, path: string, parent: any) => any): any;
357
+ _ifNode(node: unknown): any;
358
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
359
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
360
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
361
+ clone(): any;
362
+ cloneDeep(): any;
363
+ equals(other: any | null | undefined): boolean;
364
+ toString(options?: import("./Node.js").StringOptions): string;
365
+ _toString(_options?: import("./Node.js").StringOptions): string;
366
+ toJSON(): Record<string, unknown>;
367
+ toHTML(options?: import("./Node.js").StringOptions): string;
368
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
369
+ toTex(options?: import("./Node.js").StringOptions): string;
370
+ toMarkdown(options?: {
371
+ inline?: boolean;
372
+ } & import("./Node.js").StringOptions): string;
373
+ toDOT(options?: {
374
+ name?: string;
375
+ }): string;
376
+ toMathML(): string;
377
+ _toMathML(): string;
378
+ _toTex(_options?: import("./Node.js").StringOptions): string;
379
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
380
+ getIdentifier(): string;
381
+ getContent(): any;
382
+ } | null) => boolean): {
383
+ get type(): string;
384
+ get isNode(): boolean;
385
+ evaluate(scope?: Record<string, unknown>): unknown;
386
+ compile(): import("./Node.js").CompiledExpression;
387
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
388
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
389
+ map(_callback: (child: any, path: string, parent: any) => any): any;
390
+ _ifNode(node: unknown): any;
391
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
392
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
393
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
394
+ clone(): any;
395
+ cloneDeep(): any;
396
+ equals(other: any | null | undefined): boolean;
397
+ toString(options?: import("./Node.js").StringOptions): string;
398
+ _toString(_options?: import("./Node.js").StringOptions): string;
399
+ toJSON(): Record<string, unknown>;
400
+ toHTML(options?: import("./Node.js").StringOptions): string;
401
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
402
+ toTex(options?: import("./Node.js").StringOptions): string;
403
+ toMarkdown(options?: {
404
+ inline?: boolean;
405
+ } & import("./Node.js").StringOptions): string;
406
+ toDOT(options?: {
407
+ name?: string;
408
+ }): string;
409
+ toMathML(): string;
410
+ _toMathML(): string;
411
+ _toTex(_options?: import("./Node.js").StringOptions): string;
412
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
413
+ getIdentifier(): string;
414
+ getContent(): any;
415
+ }[];
416
+ cloneDeep(): {
417
+ get type(): string;
418
+ get isNode(): boolean;
419
+ evaluate(scope?: Record<string, unknown>): unknown;
420
+ compile(): import("./Node.js").CompiledExpression;
421
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
422
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
423
+ map(_callback: (child: any, path: string, parent: any) => any): any;
424
+ _ifNode(node: unknown): any;
425
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
426
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
427
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
428
+ clone(): any;
429
+ cloneDeep(): any;
430
+ equals(other: any | null | undefined): boolean;
431
+ toString(options?: import("./Node.js").StringOptions): string;
432
+ _toString(_options?: import("./Node.js").StringOptions): string;
433
+ toJSON(): Record<string, unknown>;
434
+ toHTML(options?: import("./Node.js").StringOptions): string;
435
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
436
+ toTex(options?: import("./Node.js").StringOptions): string;
437
+ toMarkdown(options?: {
438
+ inline?: boolean;
439
+ } & import("./Node.js").StringOptions): string;
440
+ toDOT(options?: {
441
+ name?: string;
442
+ }): string;
443
+ toMathML(): string;
444
+ _toMathML(): string;
445
+ _toTex(_options?: import("./Node.js").StringOptions): string;
446
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
447
+ getIdentifier(): string;
448
+ getContent(): any;
449
+ };
450
+ equals(other: {
451
+ get type(): string;
452
+ get isNode(): boolean;
453
+ evaluate(scope?: Record<string, unknown>): unknown;
454
+ compile(): import("./Node.js").CompiledExpression;
455
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
456
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
457
+ map(_callback: (child: any, path: string, parent: any) => any): any;
458
+ _ifNode(node: unknown): any;
459
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
460
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
461
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
462
+ clone(): any;
463
+ cloneDeep(): any;
464
+ equals(other: any | null | undefined): boolean;
465
+ toString(options?: import("./Node.js").StringOptions): string;
466
+ _toString(_options?: import("./Node.js").StringOptions): string;
467
+ toJSON(): Record<string, unknown>;
468
+ toHTML(options?: import("./Node.js").StringOptions): string;
469
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
470
+ toTex(options?: import("./Node.js").StringOptions): string;
471
+ toMarkdown(options?: {
472
+ inline?: boolean;
473
+ } & import("./Node.js").StringOptions): string;
474
+ toDOT(options?: {
475
+ name?: string;
476
+ }): string;
477
+ toMathML(): string;
478
+ _toMathML(): string;
479
+ _toTex(_options?: import("./Node.js").StringOptions): string;
480
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
481
+ getIdentifier(): string;
482
+ getContent(): any;
483
+ } | null | undefined): boolean;
484
+ toString(options?: import("./Node.js").StringOptions): string;
485
+ toHTML(options?: import("./Node.js").StringOptions): string;
486
+ toTex(options?: import("./Node.js").StringOptions): string;
487
+ toMarkdown(options?: {
488
+ inline?: boolean;
489
+ } & import("./Node.js").StringOptions): string;
490
+ toDOT(options?: {
491
+ name?: string;
492
+ }): string;
493
+ toMathML(): string;
494
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
495
+ getIdentifier(): string;
87
496
  };
88
497
  name: string;
89
498
  /**
@@ -93,9 +502,12 @@ export declare const createParenthesisNode: import("../utils/factory.js").Factor
93
502
  * where mathjs is optional
94
503
  */
95
504
  fromJSON(json: {
96
- content: Node;
505
+ content: MathNode;
97
506
  }): {
98
- content: Node;
507
+ get isNode(): boolean;
508
+ evaluate(scope?: Record<string, unknown>): unknown;
509
+ compile(): import("./Node.js").CompiledExpression;
510
+ content: MathNode;
99
511
  get type(): string;
100
512
  get isParenthesisNode(): boolean;
101
513
  /**
@@ -117,19 +529,19 @@ export declare const createParenthesisNode: import("../utils/factory.js").Factor
117
529
  * @returns content
118
530
  * @override
119
531
  **/
120
- getContent(): Node;
532
+ getContent(): MathNode;
121
533
  /**
122
534
  * Execute a callback for each of the child nodes of this node
123
535
  * @param callback
124
536
  */
125
- forEach(callback: (child: Node, path: string, parent: /*elided*/ any) => void): void;
537
+ forEach(callback: (child: MathNode, path: string, parent: /*elided*/ any) => void): void;
126
538
  /**
127
539
  * Create a new ParenthesisNode whose child is the result of calling
128
540
  * the provided callback function on the child of this node.
129
541
  * @param callback
130
542
  * @returns Returns a clone of the node
131
543
  */
132
- map(callback: (child: Node, path: string, parent: /*elided*/ any) => Node): /*elided*/ any;
544
+ map(callback: (child: MathNode, path: string, parent: /*elided*/ any) => MathNode): /*elided*/ any;
133
545
  /**
134
546
  * Create a clone of this node, a shallow copy
135
547
  */
@@ -144,7 +556,10 @@ export declare const createParenthesisNode: import("../utils/factory.js").Factor
144
556
  /**
145
557
  * Get a JSON representation of the node
146
558
  */
147
- toJSON(): Record<string, unknown>;
559
+ toJSON(): {
560
+ mathjs: string;
561
+ content: MathNode;
562
+ };
148
563
  /**
149
564
  * Get HTML representation
150
565
  * @param options
@@ -159,10 +574,420 @@ export declare const createParenthesisNode: import("../utils/factory.js").Factor
159
574
  */
160
575
  _toMathML(): string;
161
576
  _toTex(options?: StringOptions): string;
162
- toString: (options?: StringOptions) => string;
163
- toHTML: (options?: StringOptions) => string;
164
- toTex: (options?: StringOptions) => string;
165
- toMathML: () => string;
577
+ _ifNode(node: unknown): {
578
+ get type(): string;
579
+ get isNode(): boolean;
580
+ evaluate(scope?: Record<string, unknown>): unknown;
581
+ compile(): import("./Node.js").CompiledExpression;
582
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
583
+ forEach(_callback: (child: /*elided*/ any, path: string, parent: /*elided*/ any) => void): void;
584
+ map(_callback: (child: /*elided*/ any, path: string, parent: /*elided*/ any) => /*elided*/ any): /*elided*/ any;
585
+ _ifNode(node: unknown): /*elided*/ any;
586
+ traverse(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => void): void;
587
+ transform(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => /*elided*/ any): /*elided*/ any;
588
+ filter(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => boolean): /*elided*/ any[];
589
+ clone(): /*elided*/ any;
590
+ cloneDeep(): /*elided*/ any;
591
+ equals(other: /*elided*/ any | null | undefined): boolean;
592
+ toString(options?: import("./Node.js").StringOptions): string;
593
+ _toString(_options?: import("./Node.js").StringOptions): string;
594
+ toJSON(): Record<string, unknown>;
595
+ toHTML(options?: import("./Node.js").StringOptions): string;
596
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
597
+ toTex(options?: import("./Node.js").StringOptions): string;
598
+ toMarkdown(options?: {
599
+ inline?: boolean;
600
+ } & import("./Node.js").StringOptions): string;
601
+ toDOT(options?: {
602
+ name?: string;
603
+ }): string;
604
+ toMathML(): string;
605
+ _toMathML(): string;
606
+ _toTex(_options?: import("./Node.js").StringOptions): string;
607
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
608
+ getIdentifier(): string;
609
+ getContent(): /*elided*/ any;
610
+ };
611
+ traverse(callback: (node: {
612
+ get type(): string;
613
+ get isNode(): boolean;
614
+ evaluate(scope?: Record<string, unknown>): unknown;
615
+ compile(): import("./Node.js").CompiledExpression;
616
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
617
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
618
+ map(_callback: (child: any, path: string, parent: any) => any): any;
619
+ _ifNode(node: unknown): any;
620
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
621
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
622
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
623
+ clone(): any;
624
+ cloneDeep(): any;
625
+ equals(other: any | null | undefined): boolean;
626
+ toString(options?: import("./Node.js").StringOptions): string;
627
+ _toString(_options?: import("./Node.js").StringOptions): string;
628
+ toJSON(): Record<string, unknown>;
629
+ toHTML(options?: import("./Node.js").StringOptions): string;
630
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
631
+ toTex(options?: import("./Node.js").StringOptions): string;
632
+ toMarkdown(options?: {
633
+ inline?: boolean;
634
+ } & import("./Node.js").StringOptions): string;
635
+ toDOT(options?: {
636
+ name?: string;
637
+ }): string;
638
+ toMathML(): string;
639
+ _toMathML(): string;
640
+ _toTex(_options?: import("./Node.js").StringOptions): string;
641
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
642
+ getIdentifier(): string;
643
+ getContent(): any;
644
+ }, path: string | null, parent: {
645
+ get type(): string;
646
+ get isNode(): boolean;
647
+ evaluate(scope?: Record<string, unknown>): unknown;
648
+ compile(): import("./Node.js").CompiledExpression;
649
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
650
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
651
+ map(_callback: (child: any, path: string, parent: any) => any): any;
652
+ _ifNode(node: unknown): any;
653
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
654
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
655
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
656
+ clone(): any;
657
+ cloneDeep(): any;
658
+ equals(other: any | null | undefined): boolean;
659
+ toString(options?: import("./Node.js").StringOptions): string;
660
+ _toString(_options?: import("./Node.js").StringOptions): string;
661
+ toJSON(): Record<string, unknown>;
662
+ toHTML(options?: import("./Node.js").StringOptions): string;
663
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
664
+ toTex(options?: import("./Node.js").StringOptions): string;
665
+ toMarkdown(options?: {
666
+ inline?: boolean;
667
+ } & import("./Node.js").StringOptions): string;
668
+ toDOT(options?: {
669
+ name?: string;
670
+ }): string;
671
+ toMathML(): string;
672
+ _toMathML(): string;
673
+ _toTex(_options?: import("./Node.js").StringOptions): string;
674
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
675
+ getIdentifier(): string;
676
+ getContent(): any;
677
+ } | null) => void): void;
678
+ transform(callback: (node: {
679
+ get type(): string;
680
+ get isNode(): boolean;
681
+ evaluate(scope?: Record<string, unknown>): unknown;
682
+ compile(): import("./Node.js").CompiledExpression;
683
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
684
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
685
+ map(_callback: (child: any, path: string, parent: any) => any): any;
686
+ _ifNode(node: unknown): any;
687
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
688
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
689
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
690
+ clone(): any;
691
+ cloneDeep(): any;
692
+ equals(other: any | null | undefined): boolean;
693
+ toString(options?: import("./Node.js").StringOptions): string;
694
+ _toString(_options?: import("./Node.js").StringOptions): string;
695
+ toJSON(): Record<string, unknown>;
696
+ toHTML(options?: import("./Node.js").StringOptions): string;
697
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
698
+ toTex(options?: import("./Node.js").StringOptions): string;
699
+ toMarkdown(options?: {
700
+ inline?: boolean;
701
+ } & import("./Node.js").StringOptions): string;
702
+ toDOT(options?: {
703
+ name?: string;
704
+ }): string;
705
+ toMathML(): string;
706
+ _toMathML(): string;
707
+ _toTex(_options?: import("./Node.js").StringOptions): string;
708
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
709
+ getIdentifier(): string;
710
+ getContent(): any;
711
+ }, path: string | null, parent: {
712
+ get type(): string;
713
+ get isNode(): boolean;
714
+ evaluate(scope?: Record<string, unknown>): unknown;
715
+ compile(): import("./Node.js").CompiledExpression;
716
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
717
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
718
+ map(_callback: (child: any, path: string, parent: any) => any): any;
719
+ _ifNode(node: unknown): any;
720
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
721
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
722
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
723
+ clone(): any;
724
+ cloneDeep(): any;
725
+ equals(other: any | null | undefined): boolean;
726
+ toString(options?: import("./Node.js").StringOptions): string;
727
+ _toString(_options?: import("./Node.js").StringOptions): string;
728
+ toJSON(): Record<string, unknown>;
729
+ toHTML(options?: import("./Node.js").StringOptions): string;
730
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
731
+ toTex(options?: import("./Node.js").StringOptions): string;
732
+ toMarkdown(options?: {
733
+ inline?: boolean;
734
+ } & import("./Node.js").StringOptions): string;
735
+ toDOT(options?: {
736
+ name?: string;
737
+ }): string;
738
+ toMathML(): string;
739
+ _toMathML(): string;
740
+ _toTex(_options?: import("./Node.js").StringOptions): string;
741
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
742
+ getIdentifier(): string;
743
+ getContent(): any;
744
+ } | null) => {
745
+ get type(): string;
746
+ get isNode(): boolean;
747
+ evaluate(scope?: Record<string, unknown>): unknown;
748
+ compile(): import("./Node.js").CompiledExpression;
749
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
750
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
751
+ map(_callback: (child: any, path: string, parent: any) => any): any;
752
+ _ifNode(node: unknown): any;
753
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
754
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
755
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
756
+ clone(): any;
757
+ cloneDeep(): any;
758
+ equals(other: any | null | undefined): boolean;
759
+ toString(options?: import("./Node.js").StringOptions): string;
760
+ _toString(_options?: import("./Node.js").StringOptions): string;
761
+ toJSON(): Record<string, unknown>;
762
+ toHTML(options?: import("./Node.js").StringOptions): string;
763
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
764
+ toTex(options?: import("./Node.js").StringOptions): string;
765
+ toMarkdown(options?: {
766
+ inline?: boolean;
767
+ } & import("./Node.js").StringOptions): string;
768
+ toDOT(options?: {
769
+ name?: string;
770
+ }): string;
771
+ toMathML(): string;
772
+ _toMathML(): string;
773
+ _toTex(_options?: import("./Node.js").StringOptions): string;
774
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
775
+ getIdentifier(): string;
776
+ getContent(): any;
777
+ }): {
778
+ get type(): string;
779
+ get isNode(): boolean;
780
+ evaluate(scope?: Record<string, unknown>): unknown;
781
+ compile(): import("./Node.js").CompiledExpression;
782
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
783
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
784
+ map(_callback: (child: any, path: string, parent: any) => any): any;
785
+ _ifNode(node: unknown): any;
786
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
787
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
788
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
789
+ clone(): any;
790
+ cloneDeep(): any;
791
+ equals(other: any | null | undefined): boolean;
792
+ toString(options?: import("./Node.js").StringOptions): string;
793
+ _toString(_options?: import("./Node.js").StringOptions): string;
794
+ toJSON(): Record<string, unknown>;
795
+ toHTML(options?: import("./Node.js").StringOptions): string;
796
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
797
+ toTex(options?: import("./Node.js").StringOptions): string;
798
+ toMarkdown(options?: {
799
+ inline?: boolean;
800
+ } & import("./Node.js").StringOptions): string;
801
+ toDOT(options?: {
802
+ name?: string;
803
+ }): string;
804
+ toMathML(): string;
805
+ _toMathML(): string;
806
+ _toTex(_options?: import("./Node.js").StringOptions): string;
807
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
808
+ getIdentifier(): string;
809
+ getContent(): any;
810
+ };
811
+ filter(callback: (node: {
812
+ get type(): string;
813
+ get isNode(): boolean;
814
+ evaluate(scope?: Record<string, unknown>): unknown;
815
+ compile(): import("./Node.js").CompiledExpression;
816
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
817
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
818
+ map(_callback: (child: any, path: string, parent: any) => any): any;
819
+ _ifNode(node: unknown): any;
820
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
821
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
822
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
823
+ clone(): any;
824
+ cloneDeep(): any;
825
+ equals(other: any | null | undefined): boolean;
826
+ toString(options?: import("./Node.js").StringOptions): string;
827
+ _toString(_options?: import("./Node.js").StringOptions): string;
828
+ toJSON(): Record<string, unknown>;
829
+ toHTML(options?: import("./Node.js").StringOptions): string;
830
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
831
+ toTex(options?: import("./Node.js").StringOptions): string;
832
+ toMarkdown(options?: {
833
+ inline?: boolean;
834
+ } & import("./Node.js").StringOptions): string;
835
+ toDOT(options?: {
836
+ name?: string;
837
+ }): string;
838
+ toMathML(): string;
839
+ _toMathML(): string;
840
+ _toTex(_options?: import("./Node.js").StringOptions): string;
841
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
842
+ getIdentifier(): string;
843
+ getContent(): any;
844
+ }, path: string | null, parent: {
845
+ get type(): string;
846
+ get isNode(): boolean;
847
+ evaluate(scope?: Record<string, unknown>): unknown;
848
+ compile(): import("./Node.js").CompiledExpression;
849
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
850
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
851
+ map(_callback: (child: any, path: string, parent: any) => any): any;
852
+ _ifNode(node: unknown): any;
853
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
854
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
855
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
856
+ clone(): any;
857
+ cloneDeep(): any;
858
+ equals(other: any | null | undefined): boolean;
859
+ toString(options?: import("./Node.js").StringOptions): string;
860
+ _toString(_options?: import("./Node.js").StringOptions): string;
861
+ toJSON(): Record<string, unknown>;
862
+ toHTML(options?: import("./Node.js").StringOptions): string;
863
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
864
+ toTex(options?: import("./Node.js").StringOptions): string;
865
+ toMarkdown(options?: {
866
+ inline?: boolean;
867
+ } & import("./Node.js").StringOptions): string;
868
+ toDOT(options?: {
869
+ name?: string;
870
+ }): string;
871
+ toMathML(): string;
872
+ _toMathML(): string;
873
+ _toTex(_options?: import("./Node.js").StringOptions): string;
874
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
875
+ getIdentifier(): string;
876
+ getContent(): any;
877
+ } | null) => boolean): {
878
+ get type(): string;
879
+ get isNode(): boolean;
880
+ evaluate(scope?: Record<string, unknown>): unknown;
881
+ compile(): import("./Node.js").CompiledExpression;
882
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
883
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
884
+ map(_callback: (child: any, path: string, parent: any) => any): any;
885
+ _ifNode(node: unknown): any;
886
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
887
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
888
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
889
+ clone(): any;
890
+ cloneDeep(): any;
891
+ equals(other: any | null | undefined): boolean;
892
+ toString(options?: import("./Node.js").StringOptions): string;
893
+ _toString(_options?: import("./Node.js").StringOptions): string;
894
+ toJSON(): Record<string, unknown>;
895
+ toHTML(options?: import("./Node.js").StringOptions): string;
896
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
897
+ toTex(options?: import("./Node.js").StringOptions): string;
898
+ toMarkdown(options?: {
899
+ inline?: boolean;
900
+ } & import("./Node.js").StringOptions): string;
901
+ toDOT(options?: {
902
+ name?: string;
903
+ }): string;
904
+ toMathML(): string;
905
+ _toMathML(): string;
906
+ _toTex(_options?: import("./Node.js").StringOptions): string;
907
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
908
+ getIdentifier(): string;
909
+ getContent(): any;
910
+ }[];
911
+ cloneDeep(): {
912
+ get type(): string;
913
+ get isNode(): boolean;
914
+ evaluate(scope?: Record<string, unknown>): unknown;
915
+ compile(): import("./Node.js").CompiledExpression;
916
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
917
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
918
+ map(_callback: (child: any, path: string, parent: any) => any): any;
919
+ _ifNode(node: unknown): any;
920
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
921
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
922
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
923
+ clone(): any;
924
+ cloneDeep(): any;
925
+ equals(other: any | null | undefined): boolean;
926
+ toString(options?: import("./Node.js").StringOptions): string;
927
+ _toString(_options?: import("./Node.js").StringOptions): string;
928
+ toJSON(): Record<string, unknown>;
929
+ toHTML(options?: import("./Node.js").StringOptions): string;
930
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
931
+ toTex(options?: import("./Node.js").StringOptions): string;
932
+ toMarkdown(options?: {
933
+ inline?: boolean;
934
+ } & import("./Node.js").StringOptions): string;
935
+ toDOT(options?: {
936
+ name?: string;
937
+ }): string;
938
+ toMathML(): string;
939
+ _toMathML(): string;
940
+ _toTex(_options?: import("./Node.js").StringOptions): string;
941
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
942
+ getIdentifier(): string;
943
+ getContent(): any;
944
+ };
945
+ equals(other: {
946
+ get type(): string;
947
+ get isNode(): boolean;
948
+ evaluate(scope?: Record<string, unknown>): unknown;
949
+ compile(): import("./Node.js").CompiledExpression;
950
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
951
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
952
+ map(_callback: (child: any, path: string, parent: any) => any): any;
953
+ _ifNode(node: unknown): any;
954
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
955
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
956
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
957
+ clone(): any;
958
+ cloneDeep(): any;
959
+ equals(other: any | null | undefined): boolean;
960
+ toString(options?: import("./Node.js").StringOptions): string;
961
+ _toString(_options?: import("./Node.js").StringOptions): string;
962
+ toJSON(): Record<string, unknown>;
963
+ toHTML(options?: import("./Node.js").StringOptions): string;
964
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
965
+ toTex(options?: import("./Node.js").StringOptions): string;
966
+ toMarkdown(options?: {
967
+ inline?: boolean;
968
+ } & import("./Node.js").StringOptions): string;
969
+ toDOT(options?: {
970
+ name?: string;
971
+ }): string;
972
+ toMathML(): string;
973
+ _toMathML(): string;
974
+ _toTex(_options?: import("./Node.js").StringOptions): string;
975
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
976
+ getIdentifier(): string;
977
+ getContent(): any;
978
+ } | null | undefined): boolean;
979
+ toString(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
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
990
+ getIdentifier(): string;
166
991
  };
167
992
  }>;
168
993
  export {};