@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,13 +1,4 @@
1
- interface Node {
2
- _compile: (math: Record<string, unknown>, argNames: Record<string, boolean>) => CompileFunction;
3
- _ifNode: (node: unknown) => Node;
4
- filter: (callback: (node: Node) => boolean) => Node[];
5
- toString: (options?: StringOptions) => string;
6
- toHTML: (options?: StringOptions) => string;
7
- toTex: (options?: StringOptions) => string;
8
- isSymbolNode?: boolean;
9
- name?: string;
10
- }
1
+ import type { MathNode } from './Node.js';
11
2
  type CompileFunction = (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
12
3
  interface StringOptions {
13
4
  parenthesis?: 'keep' | 'auto' | 'all';
@@ -15,13 +6,418 @@ interface StringOptions {
15
6
  [key: string]: unknown;
16
7
  }
17
8
  interface Dependencies {
18
- Node: new (...args: unknown[]) => Node;
9
+ Node: new (...args: unknown[]) => MathNode;
19
10
  }
20
11
  export declare const createRangeNode: import("../utils/factory.js").FactoryFunction<Dependencies, {
21
- new (start: Node, end: Node, step?: Node): {
22
- start: Node;
23
- end: Node;
24
- step: Node | null;
12
+ new (start: MathNode, end: MathNode, step?: MathNode | null): {
13
+ get isNode(): boolean;
14
+ evaluate(scope?: Record<string, unknown>): unknown;
15
+ compile(): import("./Node.js").CompiledExpression;
16
+ _ifNode(node: unknown): {
17
+ get type(): string;
18
+ get isNode(): boolean;
19
+ evaluate(scope?: Record<string, unknown>): unknown;
20
+ compile(): import("./Node.js").CompiledExpression;
21
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
22
+ forEach(_callback: (child: /*elided*/ any, path: string, parent: /*elided*/ any) => void): void;
23
+ map(_callback: (child: /*elided*/ any, path: string, parent: /*elided*/ any) => /*elided*/ any): /*elided*/ any;
24
+ _ifNode(node: unknown): /*elided*/ any;
25
+ traverse(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => void): void;
26
+ transform(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => /*elided*/ any): /*elided*/ any;
27
+ filter(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => boolean): /*elided*/ any[];
28
+ clone(): /*elided*/ any;
29
+ cloneDeep(): /*elided*/ any;
30
+ equals(other: /*elided*/ any | null | undefined): boolean;
31
+ toString(options?: import("./Node.js").StringOptions): string;
32
+ _toString(_options?: import("./Node.js").StringOptions): string;
33
+ toJSON(): Record<string, unknown>;
34
+ toHTML(options?: import("./Node.js").StringOptions): string;
35
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
36
+ toTex(options?: import("./Node.js").StringOptions): string;
37
+ toMarkdown(options?: {
38
+ inline?: boolean;
39
+ } & import("./Node.js").StringOptions): string;
40
+ toDOT(options?: {
41
+ name?: string;
42
+ }): string;
43
+ toMathML(): string;
44
+ _toMathML(): string;
45
+ _toTex(_options?: import("./Node.js").StringOptions): string;
46
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
47
+ getIdentifier(): string;
48
+ getContent(): /*elided*/ any;
49
+ };
50
+ traverse(callback: (node: {
51
+ get type(): string;
52
+ get isNode(): boolean;
53
+ evaluate(scope?: Record<string, unknown>): unknown;
54
+ compile(): import("./Node.js").CompiledExpression;
55
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
56
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
57
+ map(_callback: (child: any, path: string, parent: any) => any): any;
58
+ _ifNode(node: unknown): any;
59
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
60
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
61
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
62
+ clone(): any;
63
+ cloneDeep(): any;
64
+ equals(other: any | null | undefined): boolean;
65
+ toString(options?: import("./Node.js").StringOptions): string;
66
+ _toString(_options?: import("./Node.js").StringOptions): string;
67
+ toJSON(): Record<string, unknown>;
68
+ toHTML(options?: import("./Node.js").StringOptions): string;
69
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
70
+ toTex(options?: import("./Node.js").StringOptions): string;
71
+ toMarkdown(options?: {
72
+ inline?: boolean;
73
+ } & import("./Node.js").StringOptions): string;
74
+ toDOT(options?: {
75
+ name?: string;
76
+ }): string;
77
+ toMathML(): string;
78
+ _toMathML(): string;
79
+ _toTex(_options?: import("./Node.js").StringOptions): string;
80
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
81
+ getIdentifier(): string;
82
+ getContent(): any;
83
+ }, path: string | null, parent: {
84
+ get type(): string;
85
+ get isNode(): boolean;
86
+ evaluate(scope?: Record<string, unknown>): unknown;
87
+ compile(): import("./Node.js").CompiledExpression;
88
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
89
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
90
+ map(_callback: (child: any, path: string, parent: any) => any): any;
91
+ _ifNode(node: unknown): any;
92
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
93
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
94
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
95
+ clone(): any;
96
+ cloneDeep(): any;
97
+ equals(other: any | null | undefined): boolean;
98
+ toString(options?: import("./Node.js").StringOptions): string;
99
+ _toString(_options?: import("./Node.js").StringOptions): string;
100
+ toJSON(): Record<string, unknown>;
101
+ toHTML(options?: import("./Node.js").StringOptions): string;
102
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
103
+ toTex(options?: import("./Node.js").StringOptions): string;
104
+ toMarkdown(options?: {
105
+ inline?: boolean;
106
+ } & import("./Node.js").StringOptions): string;
107
+ toDOT(options?: {
108
+ name?: string;
109
+ }): string;
110
+ toMathML(): string;
111
+ _toMathML(): string;
112
+ _toTex(_options?: import("./Node.js").StringOptions): string;
113
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
114
+ getIdentifier(): string;
115
+ getContent(): any;
116
+ } | null) => void): void;
117
+ transform(callback: (node: {
118
+ get type(): string;
119
+ get isNode(): boolean;
120
+ evaluate(scope?: Record<string, unknown>): unknown;
121
+ compile(): import("./Node.js").CompiledExpression;
122
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
123
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
124
+ map(_callback: (child: any, path: string, parent: any) => any): any;
125
+ _ifNode(node: unknown): any;
126
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
127
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
128
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
129
+ clone(): any;
130
+ cloneDeep(): any;
131
+ equals(other: any | null | undefined): boolean;
132
+ toString(options?: import("./Node.js").StringOptions): string;
133
+ _toString(_options?: import("./Node.js").StringOptions): string;
134
+ toJSON(): Record<string, unknown>;
135
+ toHTML(options?: import("./Node.js").StringOptions): string;
136
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
137
+ toTex(options?: import("./Node.js").StringOptions): string;
138
+ toMarkdown(options?: {
139
+ inline?: boolean;
140
+ } & import("./Node.js").StringOptions): string;
141
+ toDOT(options?: {
142
+ name?: string;
143
+ }): string;
144
+ toMathML(): string;
145
+ _toMathML(): string;
146
+ _toTex(_options?: import("./Node.js").StringOptions): string;
147
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
148
+ getIdentifier(): string;
149
+ getContent(): any;
150
+ }, path: string | null, parent: {
151
+ get type(): string;
152
+ get isNode(): boolean;
153
+ evaluate(scope?: Record<string, unknown>): unknown;
154
+ compile(): import("./Node.js").CompiledExpression;
155
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
156
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
157
+ map(_callback: (child: any, path: string, parent: any) => any): any;
158
+ _ifNode(node: unknown): any;
159
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
160
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
161
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
162
+ clone(): any;
163
+ cloneDeep(): any;
164
+ equals(other: any | null | undefined): boolean;
165
+ toString(options?: import("./Node.js").StringOptions): string;
166
+ _toString(_options?: import("./Node.js").StringOptions): string;
167
+ toJSON(): Record<string, unknown>;
168
+ toHTML(options?: import("./Node.js").StringOptions): string;
169
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
170
+ toTex(options?: import("./Node.js").StringOptions): string;
171
+ toMarkdown(options?: {
172
+ inline?: boolean;
173
+ } & import("./Node.js").StringOptions): string;
174
+ toDOT(options?: {
175
+ name?: string;
176
+ }): string;
177
+ toMathML(): string;
178
+ _toMathML(): string;
179
+ _toTex(_options?: import("./Node.js").StringOptions): string;
180
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
181
+ getIdentifier(): string;
182
+ getContent(): any;
183
+ } | null) => {
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
+ }): {
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
+ };
250
+ filter(callback: (node: {
251
+ get type(): string;
252
+ get isNode(): boolean;
253
+ evaluate(scope?: Record<string, unknown>): unknown;
254
+ compile(): import("./Node.js").CompiledExpression;
255
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
256
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
257
+ map(_callback: (child: any, path: string, parent: any) => any): any;
258
+ _ifNode(node: unknown): any;
259
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
260
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
261
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
262
+ clone(): any;
263
+ cloneDeep(): any;
264
+ equals(other: any | null | undefined): boolean;
265
+ toString(options?: import("./Node.js").StringOptions): string;
266
+ _toString(_options?: import("./Node.js").StringOptions): string;
267
+ toJSON(): Record<string, unknown>;
268
+ toHTML(options?: import("./Node.js").StringOptions): string;
269
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
270
+ toTex(options?: import("./Node.js").StringOptions): string;
271
+ toMarkdown(options?: {
272
+ inline?: boolean;
273
+ } & import("./Node.js").StringOptions): string;
274
+ toDOT(options?: {
275
+ name?: string;
276
+ }): string;
277
+ toMathML(): string;
278
+ _toMathML(): string;
279
+ _toTex(_options?: import("./Node.js").StringOptions): string;
280
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
281
+ getIdentifier(): string;
282
+ getContent(): any;
283
+ }, path: string | null, parent: {
284
+ get type(): string;
285
+ get isNode(): boolean;
286
+ evaluate(scope?: Record<string, unknown>): unknown;
287
+ compile(): import("./Node.js").CompiledExpression;
288
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
289
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
290
+ map(_callback: (child: any, path: string, parent: any) => any): any;
291
+ _ifNode(node: unknown): any;
292
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
293
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
294
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
295
+ clone(): any;
296
+ cloneDeep(): any;
297
+ equals(other: any | null | undefined): boolean;
298
+ toString(options?: import("./Node.js").StringOptions): string;
299
+ _toString(_options?: import("./Node.js").StringOptions): string;
300
+ toJSON(): Record<string, unknown>;
301
+ toHTML(options?: import("./Node.js").StringOptions): string;
302
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
303
+ toTex(options?: import("./Node.js").StringOptions): string;
304
+ toMarkdown(options?: {
305
+ inline?: boolean;
306
+ } & import("./Node.js").StringOptions): string;
307
+ toDOT(options?: {
308
+ name?: string;
309
+ }): string;
310
+ toMathML(): string;
311
+ _toMathML(): string;
312
+ _toTex(_options?: import("./Node.js").StringOptions): string;
313
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
314
+ getIdentifier(): string;
315
+ getContent(): any;
316
+ } | null) => boolean): {
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
+ }[];
350
+ cloneDeep(): {
351
+ get type(): string;
352
+ get isNode(): boolean;
353
+ evaluate(scope?: Record<string, unknown>): unknown;
354
+ compile(): import("./Node.js").CompiledExpression;
355
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
356
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
357
+ map(_callback: (child: any, path: string, parent: any) => any): any;
358
+ _ifNode(node: unknown): any;
359
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
360
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
361
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
362
+ clone(): any;
363
+ cloneDeep(): any;
364
+ equals(other: any | null | undefined): boolean;
365
+ toString(options?: import("./Node.js").StringOptions): string;
366
+ _toString(_options?: import("./Node.js").StringOptions): string;
367
+ toJSON(): Record<string, unknown>;
368
+ toHTML(options?: import("./Node.js").StringOptions): string;
369
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
370
+ toTex(options?: import("./Node.js").StringOptions): string;
371
+ toMarkdown(options?: {
372
+ inline?: boolean;
373
+ } & import("./Node.js").StringOptions): string;
374
+ toDOT(options?: {
375
+ name?: string;
376
+ }): string;
377
+ toMathML(): string;
378
+ _toMathML(): string;
379
+ _toTex(_options?: import("./Node.js").StringOptions): string;
380
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
381
+ getIdentifier(): string;
382
+ getContent(): any;
383
+ };
384
+ equals(other: {
385
+ get type(): string;
386
+ get isNode(): boolean;
387
+ evaluate(scope?: Record<string, unknown>): unknown;
388
+ compile(): import("./Node.js").CompiledExpression;
389
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
390
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
391
+ map(_callback: (child: any, path: string, parent: any) => any): any;
392
+ _ifNode(node: unknown): any;
393
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
394
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
395
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
396
+ clone(): any;
397
+ cloneDeep(): any;
398
+ equals(other: any | null | undefined): boolean;
399
+ toString(options?: import("./Node.js").StringOptions): string;
400
+ _toString(_options?: import("./Node.js").StringOptions): string;
401
+ toJSON(): Record<string, unknown>;
402
+ toHTML(options?: import("./Node.js").StringOptions): string;
403
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
404
+ toTex(options?: import("./Node.js").StringOptions): string;
405
+ toMarkdown(options?: {
406
+ inline?: boolean;
407
+ } & import("./Node.js").StringOptions): string;
408
+ toDOT(options?: {
409
+ name?: string;
410
+ }): string;
411
+ toMathML(): string;
412
+ _toMathML(): string;
413
+ _toTex(_options?: import("./Node.js").StringOptions): string;
414
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
415
+ getIdentifier(): string;
416
+ getContent(): any;
417
+ } | null | undefined): boolean;
418
+ start: MathNode;
419
+ end: MathNode;
420
+ step: MathNode | null;
25
421
  get type(): string;
26
422
  get isRangeNode(): boolean;
27
423
  /**
@@ -47,14 +443,14 @@ export declare const createRangeNode: import("../utils/factory.js").FactoryFunct
47
443
  * Execute a callback for each of the child nodes of this node
48
444
  * @param callback
49
445
  */
50
- forEach(callback: (child: Node, path: string, parent: /*elided*/ any) => void): void;
446
+ forEach(callback: (child: MathNode, path: string, parent: /*elided*/ any) => void): void;
51
447
  /**
52
448
  * Create a new RangeNode whose children are the results of calling
53
449
  * the provided callback function for each child of the original node.
54
450
  * @param callback
55
451
  * @returns Returns a transformed copy of the node
56
452
  */
57
- map(callback: (child: Node, path: string, parent: /*elided*/ any) => Node): /*elided*/ any;
453
+ map(callback: (child: MathNode, path: string, parent: /*elided*/ any) => MathNode): /*elided*/ any;
58
454
  /**
59
455
  * Create a clone of this node, a shallow copy
60
456
  */
@@ -68,7 +464,12 @@ export declare const createRangeNode: import("../utils/factory.js").FactoryFunct
68
464
  /**
69
465
  * Get a JSON representation of the node
70
466
  */
71
- toJSON(): Record<string, unknown>;
467
+ toJSON(): {
468
+ mathjs: string;
469
+ start: MathNode;
470
+ end: MathNode;
471
+ step: MathNode | null;
472
+ };
72
473
  /**
73
474
  * Get HTML representation
74
475
  * @param options
@@ -81,13 +482,53 @@ export declare const createRangeNode: import("../utils/factory.js").FactoryFunct
81
482
  * @returns str
82
483
  */
83
484
  _toTex(options?: StringOptions): string;
84
- _ifNode: (node: unknown) => Node;
85
- filter: (callback: (node: Node) => boolean) => Node[];
86
- toString: (options?: StringOptions) => string;
87
- toHTML: (options?: StringOptions) => string;
88
- toTex: (options?: StringOptions) => string;
89
- isSymbolNode?: boolean;
90
- name?: string;
485
+ toString(options?: import("./Node.js").StringOptions): string;
486
+ toHTML(options?: import("./Node.js").StringOptions): string;
487
+ toTex(options?: import("./Node.js").StringOptions): string;
488
+ toMarkdown(options?: {
489
+ inline?: boolean;
490
+ } & import("./Node.js").StringOptions): string;
491
+ toDOT(options?: {
492
+ name?: string;
493
+ }): string;
494
+ toMathML(): string;
495
+ _toMathML(): string;
496
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
497
+ getIdentifier(): string;
498
+ getContent(): {
499
+ get type(): string;
500
+ get isNode(): boolean;
501
+ evaluate(scope?: Record<string, unknown>): unknown;
502
+ compile(): import("./Node.js").CompiledExpression;
503
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
504
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
505
+ map(_callback: (child: any, path: string, parent: any) => any): any;
506
+ _ifNode(node: unknown): any;
507
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
508
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
509
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
510
+ clone(): any;
511
+ cloneDeep(): any;
512
+ equals(other: any | null | undefined): boolean;
513
+ toString(options?: import("./Node.js").StringOptions): string;
514
+ _toString(_options?: import("./Node.js").StringOptions): string;
515
+ toJSON(): Record<string, unknown>;
516
+ toHTML(options?: import("./Node.js").StringOptions): string;
517
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
518
+ toTex(options?: import("./Node.js").StringOptions): string;
519
+ toMarkdown(options?: {
520
+ inline?: boolean;
521
+ } & import("./Node.js").StringOptions): string;
522
+ toDOT(options?: {
523
+ name?: string;
524
+ }): string;
525
+ toMathML(): string;
526
+ _toMathML(): string;
527
+ _toTex(_options?: import("./Node.js").StringOptions): string;
528
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
529
+ getIdentifier(): string;
530
+ getContent(): any;
531
+ };
91
532
  };
92
533
  name: string;
93
534
  /**
@@ -98,13 +539,418 @@ export declare const createRangeNode: import("../utils/factory.js").FactoryFunct
98
539
  * where mathjs is optional
99
540
  */
100
541
  fromJSON(json: {
101
- start: Node;
102
- end: Node;
103
- step?: Node;
542
+ start: MathNode;
543
+ end: MathNode;
544
+ step?: MathNode | null;
104
545
  }): {
105
- start: Node;
106
- end: Node;
107
- step: Node | null;
546
+ get isNode(): boolean;
547
+ evaluate(scope?: Record<string, unknown>): unknown;
548
+ compile(): import("./Node.js").CompiledExpression;
549
+ _ifNode(node: unknown): {
550
+ get type(): string;
551
+ get isNode(): boolean;
552
+ evaluate(scope?: Record<string, unknown>): unknown;
553
+ compile(): import("./Node.js").CompiledExpression;
554
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
555
+ forEach(_callback: (child: /*elided*/ any, path: string, parent: /*elided*/ any) => void): void;
556
+ map(_callback: (child: /*elided*/ any, path: string, parent: /*elided*/ any) => /*elided*/ any): /*elided*/ any;
557
+ _ifNode(node: unknown): /*elided*/ any;
558
+ traverse(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => void): void;
559
+ transform(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => /*elided*/ any): /*elided*/ any;
560
+ filter(callback: (node: /*elided*/ any, path: string | null, parent: /*elided*/ any | null) => boolean): /*elided*/ any[];
561
+ clone(): /*elided*/ any;
562
+ cloneDeep(): /*elided*/ any;
563
+ equals(other: /*elided*/ any | null | undefined): boolean;
564
+ toString(options?: import("./Node.js").StringOptions): string;
565
+ _toString(_options?: import("./Node.js").StringOptions): string;
566
+ toJSON(): Record<string, unknown>;
567
+ toHTML(options?: import("./Node.js").StringOptions): string;
568
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
569
+ toTex(options?: import("./Node.js").StringOptions): string;
570
+ toMarkdown(options?: {
571
+ inline?: boolean;
572
+ } & import("./Node.js").StringOptions): string;
573
+ toDOT(options?: {
574
+ name?: string;
575
+ }): string;
576
+ toMathML(): string;
577
+ _toMathML(): string;
578
+ _toTex(_options?: import("./Node.js").StringOptions): string;
579
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
580
+ getIdentifier(): string;
581
+ getContent(): /*elided*/ any;
582
+ };
583
+ traverse(callback: (node: {
584
+ get type(): string;
585
+ get isNode(): boolean;
586
+ evaluate(scope?: Record<string, unknown>): unknown;
587
+ compile(): import("./Node.js").CompiledExpression;
588
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
589
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
590
+ map(_callback: (child: any, path: string, parent: any) => any): any;
591
+ _ifNode(node: unknown): any;
592
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
593
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
594
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
595
+ clone(): any;
596
+ cloneDeep(): any;
597
+ equals(other: any | null | undefined): boolean;
598
+ toString(options?: import("./Node.js").StringOptions): string;
599
+ _toString(_options?: import("./Node.js").StringOptions): string;
600
+ toJSON(): Record<string, unknown>;
601
+ toHTML(options?: import("./Node.js").StringOptions): string;
602
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
603
+ toTex(options?: import("./Node.js").StringOptions): string;
604
+ toMarkdown(options?: {
605
+ inline?: boolean;
606
+ } & import("./Node.js").StringOptions): string;
607
+ toDOT(options?: {
608
+ name?: string;
609
+ }): string;
610
+ toMathML(): string;
611
+ _toMathML(): string;
612
+ _toTex(_options?: import("./Node.js").StringOptions): string;
613
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
614
+ getIdentifier(): string;
615
+ getContent(): any;
616
+ }, path: string | null, parent: {
617
+ get type(): string;
618
+ get isNode(): boolean;
619
+ evaluate(scope?: Record<string, unknown>): unknown;
620
+ compile(): import("./Node.js").CompiledExpression;
621
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
622
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
623
+ map(_callback: (child: any, path: string, parent: any) => any): any;
624
+ _ifNode(node: unknown): any;
625
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
626
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
627
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
628
+ clone(): any;
629
+ cloneDeep(): any;
630
+ equals(other: any | null | undefined): boolean;
631
+ toString(options?: import("./Node.js").StringOptions): string;
632
+ _toString(_options?: import("./Node.js").StringOptions): string;
633
+ toJSON(): Record<string, unknown>;
634
+ toHTML(options?: import("./Node.js").StringOptions): string;
635
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
636
+ toTex(options?: import("./Node.js").StringOptions): string;
637
+ toMarkdown(options?: {
638
+ inline?: boolean;
639
+ } & import("./Node.js").StringOptions): string;
640
+ toDOT(options?: {
641
+ name?: string;
642
+ }): string;
643
+ toMathML(): string;
644
+ _toMathML(): string;
645
+ _toTex(_options?: import("./Node.js").StringOptions): string;
646
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
647
+ getIdentifier(): string;
648
+ getContent(): any;
649
+ } | null) => void): void;
650
+ transform(callback: (node: {
651
+ get type(): string;
652
+ get isNode(): boolean;
653
+ evaluate(scope?: Record<string, unknown>): unknown;
654
+ compile(): import("./Node.js").CompiledExpression;
655
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
656
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
657
+ map(_callback: (child: any, path: string, parent: any) => any): any;
658
+ _ifNode(node: unknown): any;
659
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
660
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
661
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
662
+ clone(): any;
663
+ cloneDeep(): any;
664
+ equals(other: any | null | undefined): boolean;
665
+ toString(options?: import("./Node.js").StringOptions): string;
666
+ _toString(_options?: import("./Node.js").StringOptions): string;
667
+ toJSON(): Record<string, unknown>;
668
+ toHTML(options?: import("./Node.js").StringOptions): string;
669
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
670
+ toTex(options?: import("./Node.js").StringOptions): string;
671
+ toMarkdown(options?: {
672
+ inline?: boolean;
673
+ } & import("./Node.js").StringOptions): string;
674
+ toDOT(options?: {
675
+ name?: string;
676
+ }): string;
677
+ toMathML(): string;
678
+ _toMathML(): string;
679
+ _toTex(_options?: import("./Node.js").StringOptions): string;
680
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
681
+ getIdentifier(): string;
682
+ getContent(): any;
683
+ }, path: string | null, parent: {
684
+ get type(): string;
685
+ get isNode(): boolean;
686
+ evaluate(scope?: Record<string, unknown>): unknown;
687
+ compile(): import("./Node.js").CompiledExpression;
688
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
689
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
690
+ map(_callback: (child: any, path: string, parent: any) => any): any;
691
+ _ifNode(node: unknown): any;
692
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
693
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
694
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
695
+ clone(): any;
696
+ cloneDeep(): any;
697
+ equals(other: any | null | undefined): boolean;
698
+ toString(options?: import("./Node.js").StringOptions): string;
699
+ _toString(_options?: import("./Node.js").StringOptions): string;
700
+ toJSON(): Record<string, unknown>;
701
+ toHTML(options?: import("./Node.js").StringOptions): string;
702
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
703
+ toTex(options?: import("./Node.js").StringOptions): string;
704
+ toMarkdown(options?: {
705
+ inline?: boolean;
706
+ } & import("./Node.js").StringOptions): string;
707
+ toDOT(options?: {
708
+ name?: string;
709
+ }): string;
710
+ toMathML(): string;
711
+ _toMathML(): string;
712
+ _toTex(_options?: import("./Node.js").StringOptions): string;
713
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
714
+ getIdentifier(): string;
715
+ getContent(): any;
716
+ } | null) => {
717
+ get type(): string;
718
+ get isNode(): boolean;
719
+ evaluate(scope?: Record<string, unknown>): unknown;
720
+ compile(): import("./Node.js").CompiledExpression;
721
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
722
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
723
+ map(_callback: (child: any, path: string, parent: any) => any): any;
724
+ _ifNode(node: unknown): any;
725
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
726
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
727
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
728
+ clone(): any;
729
+ cloneDeep(): any;
730
+ equals(other: any | null | undefined): boolean;
731
+ toString(options?: import("./Node.js").StringOptions): string;
732
+ _toString(_options?: import("./Node.js").StringOptions): string;
733
+ toJSON(): Record<string, unknown>;
734
+ toHTML(options?: import("./Node.js").StringOptions): string;
735
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
736
+ toTex(options?: import("./Node.js").StringOptions): string;
737
+ toMarkdown(options?: {
738
+ inline?: boolean;
739
+ } & import("./Node.js").StringOptions): string;
740
+ toDOT(options?: {
741
+ name?: string;
742
+ }): string;
743
+ toMathML(): string;
744
+ _toMathML(): string;
745
+ _toTex(_options?: import("./Node.js").StringOptions): string;
746
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
747
+ getIdentifier(): string;
748
+ getContent(): any;
749
+ }): {
750
+ get type(): string;
751
+ get isNode(): boolean;
752
+ evaluate(scope?: Record<string, unknown>): unknown;
753
+ compile(): import("./Node.js").CompiledExpression;
754
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
755
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
756
+ map(_callback: (child: any, path: string, parent: any) => any): any;
757
+ _ifNode(node: unknown): any;
758
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
759
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
760
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
761
+ clone(): any;
762
+ cloneDeep(): any;
763
+ equals(other: any | null | undefined): boolean;
764
+ toString(options?: import("./Node.js").StringOptions): string;
765
+ _toString(_options?: import("./Node.js").StringOptions): string;
766
+ toJSON(): Record<string, unknown>;
767
+ toHTML(options?: import("./Node.js").StringOptions): string;
768
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
769
+ toTex(options?: import("./Node.js").StringOptions): string;
770
+ toMarkdown(options?: {
771
+ inline?: boolean;
772
+ } & import("./Node.js").StringOptions): string;
773
+ toDOT(options?: {
774
+ name?: string;
775
+ }): string;
776
+ toMathML(): string;
777
+ _toMathML(): string;
778
+ _toTex(_options?: import("./Node.js").StringOptions): string;
779
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
780
+ getIdentifier(): string;
781
+ getContent(): any;
782
+ };
783
+ filter(callback: (node: {
784
+ get type(): string;
785
+ get isNode(): boolean;
786
+ evaluate(scope?: Record<string, unknown>): unknown;
787
+ compile(): import("./Node.js").CompiledExpression;
788
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
789
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
790
+ map(_callback: (child: any, path: string, parent: any) => any): any;
791
+ _ifNode(node: unknown): any;
792
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
793
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
794
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
795
+ clone(): any;
796
+ cloneDeep(): any;
797
+ equals(other: any | null | undefined): boolean;
798
+ toString(options?: import("./Node.js").StringOptions): string;
799
+ _toString(_options?: import("./Node.js").StringOptions): string;
800
+ toJSON(): Record<string, unknown>;
801
+ toHTML(options?: import("./Node.js").StringOptions): string;
802
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
803
+ toTex(options?: import("./Node.js").StringOptions): string;
804
+ toMarkdown(options?: {
805
+ inline?: boolean;
806
+ } & import("./Node.js").StringOptions): string;
807
+ toDOT(options?: {
808
+ name?: string;
809
+ }): string;
810
+ toMathML(): string;
811
+ _toMathML(): string;
812
+ _toTex(_options?: import("./Node.js").StringOptions): string;
813
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
814
+ getIdentifier(): string;
815
+ getContent(): any;
816
+ }, path: string | null, parent: {
817
+ get type(): string;
818
+ get isNode(): boolean;
819
+ evaluate(scope?: Record<string, unknown>): unknown;
820
+ compile(): import("./Node.js").CompiledExpression;
821
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
822
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
823
+ map(_callback: (child: any, path: string, parent: any) => any): any;
824
+ _ifNode(node: unknown): any;
825
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
826
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
827
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
828
+ clone(): any;
829
+ cloneDeep(): any;
830
+ equals(other: any | null | undefined): boolean;
831
+ toString(options?: import("./Node.js").StringOptions): string;
832
+ _toString(_options?: import("./Node.js").StringOptions): string;
833
+ toJSON(): Record<string, unknown>;
834
+ toHTML(options?: import("./Node.js").StringOptions): string;
835
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
836
+ toTex(options?: import("./Node.js").StringOptions): string;
837
+ toMarkdown(options?: {
838
+ inline?: boolean;
839
+ } & import("./Node.js").StringOptions): string;
840
+ toDOT(options?: {
841
+ name?: string;
842
+ }): string;
843
+ toMathML(): string;
844
+ _toMathML(): string;
845
+ _toTex(_options?: import("./Node.js").StringOptions): string;
846
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
847
+ getIdentifier(): string;
848
+ getContent(): any;
849
+ } | null) => boolean): {
850
+ get type(): string;
851
+ get isNode(): boolean;
852
+ evaluate(scope?: Record<string, unknown>): unknown;
853
+ compile(): import("./Node.js").CompiledExpression;
854
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
855
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
856
+ map(_callback: (child: any, path: string, parent: any) => any): any;
857
+ _ifNode(node: unknown): any;
858
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
859
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
860
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
861
+ clone(): any;
862
+ cloneDeep(): any;
863
+ equals(other: any | null | undefined): boolean;
864
+ toString(options?: import("./Node.js").StringOptions): string;
865
+ _toString(_options?: import("./Node.js").StringOptions): string;
866
+ toJSON(): Record<string, unknown>;
867
+ toHTML(options?: import("./Node.js").StringOptions): string;
868
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
869
+ toTex(options?: import("./Node.js").StringOptions): string;
870
+ toMarkdown(options?: {
871
+ inline?: boolean;
872
+ } & import("./Node.js").StringOptions): string;
873
+ toDOT(options?: {
874
+ name?: string;
875
+ }): string;
876
+ toMathML(): string;
877
+ _toMathML(): string;
878
+ _toTex(_options?: import("./Node.js").StringOptions): string;
879
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
880
+ getIdentifier(): string;
881
+ getContent(): any;
882
+ }[];
883
+ cloneDeep(): {
884
+ get type(): string;
885
+ get isNode(): boolean;
886
+ evaluate(scope?: Record<string, unknown>): unknown;
887
+ compile(): import("./Node.js").CompiledExpression;
888
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
889
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
890
+ map(_callback: (child: any, path: string, parent: any) => any): any;
891
+ _ifNode(node: unknown): any;
892
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
893
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
894
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
895
+ clone(): any;
896
+ cloneDeep(): any;
897
+ equals(other: any | null | undefined): boolean;
898
+ toString(options?: import("./Node.js").StringOptions): string;
899
+ _toString(_options?: import("./Node.js").StringOptions): string;
900
+ toJSON(): Record<string, unknown>;
901
+ toHTML(options?: import("./Node.js").StringOptions): string;
902
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
903
+ toTex(options?: import("./Node.js").StringOptions): string;
904
+ toMarkdown(options?: {
905
+ inline?: boolean;
906
+ } & import("./Node.js").StringOptions): string;
907
+ toDOT(options?: {
908
+ name?: string;
909
+ }): string;
910
+ toMathML(): string;
911
+ _toMathML(): string;
912
+ _toTex(_options?: import("./Node.js").StringOptions): string;
913
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
914
+ getIdentifier(): string;
915
+ getContent(): any;
916
+ };
917
+ equals(other: {
918
+ get type(): string;
919
+ get isNode(): boolean;
920
+ evaluate(scope?: Record<string, unknown>): unknown;
921
+ compile(): import("./Node.js").CompiledExpression;
922
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
923
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
924
+ map(_callback: (child: any, path: string, parent: any) => any): any;
925
+ _ifNode(node: unknown): any;
926
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
927
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
928
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
929
+ clone(): any;
930
+ cloneDeep(): any;
931
+ equals(other: any | null | undefined): boolean;
932
+ toString(options?: import("./Node.js").StringOptions): string;
933
+ _toString(_options?: import("./Node.js").StringOptions): string;
934
+ toJSON(): Record<string, unknown>;
935
+ toHTML(options?: import("./Node.js").StringOptions): string;
936
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
937
+ toTex(options?: import("./Node.js").StringOptions): string;
938
+ toMarkdown(options?: {
939
+ inline?: boolean;
940
+ } & import("./Node.js").StringOptions): string;
941
+ toDOT(options?: {
942
+ name?: string;
943
+ }): string;
944
+ toMathML(): string;
945
+ _toMathML(): string;
946
+ _toTex(_options?: import("./Node.js").StringOptions): string;
947
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
948
+ getIdentifier(): string;
949
+ getContent(): any;
950
+ } | null | undefined): boolean;
951
+ start: MathNode;
952
+ end: MathNode;
953
+ step: MathNode | null;
108
954
  get type(): string;
109
955
  get isRangeNode(): boolean;
110
956
  /**
@@ -130,14 +976,14 @@ export declare const createRangeNode: import("../utils/factory.js").FactoryFunct
130
976
  * Execute a callback for each of the child nodes of this node
131
977
  * @param callback
132
978
  */
133
- forEach(callback: (child: Node, path: string, parent: /*elided*/ any) => void): void;
979
+ forEach(callback: (child: MathNode, path: string, parent: /*elided*/ any) => void): void;
134
980
  /**
135
981
  * Create a new RangeNode whose children are the results of calling
136
982
  * the provided callback function for each child of the original node.
137
983
  * @param callback
138
984
  * @returns Returns a transformed copy of the node
139
985
  */
140
- map(callback: (child: Node, path: string, parent: /*elided*/ any) => Node): /*elided*/ any;
986
+ map(callback: (child: MathNode, path: string, parent: /*elided*/ any) => MathNode): /*elided*/ any;
141
987
  /**
142
988
  * Create a clone of this node, a shallow copy
143
989
  */
@@ -151,7 +997,12 @@ export declare const createRangeNode: import("../utils/factory.js").FactoryFunct
151
997
  /**
152
998
  * Get a JSON representation of the node
153
999
  */
154
- toJSON(): Record<string, unknown>;
1000
+ toJSON(): {
1001
+ mathjs: string;
1002
+ start: MathNode;
1003
+ end: MathNode;
1004
+ step: MathNode | null;
1005
+ };
155
1006
  /**
156
1007
  * Get HTML representation
157
1008
  * @param options
@@ -164,13 +1015,53 @@ export declare const createRangeNode: import("../utils/factory.js").FactoryFunct
164
1015
  * @returns str
165
1016
  */
166
1017
  _toTex(options?: StringOptions): string;
167
- _ifNode: (node: unknown) => Node;
168
- filter: (callback: (node: Node) => boolean) => Node[];
169
- toString: (options?: StringOptions) => string;
170
- toHTML: (options?: StringOptions) => string;
171
- toTex: (options?: StringOptions) => string;
172
- isSymbolNode?: boolean;
173
- name?: string;
1018
+ toString(options?: import("./Node.js").StringOptions): string;
1019
+ toHTML(options?: import("./Node.js").StringOptions): string;
1020
+ toTex(options?: import("./Node.js").StringOptions): string;
1021
+ toMarkdown(options?: {
1022
+ inline?: boolean;
1023
+ } & import("./Node.js").StringOptions): string;
1024
+ toDOT(options?: {
1025
+ name?: string;
1026
+ }): string;
1027
+ toMathML(): string;
1028
+ _toMathML(): string;
1029
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
1030
+ getIdentifier(): string;
1031
+ getContent(): {
1032
+ get type(): string;
1033
+ get isNode(): boolean;
1034
+ evaluate(scope?: Record<string, unknown>): unknown;
1035
+ compile(): import("./Node.js").CompiledExpression;
1036
+ _compile(_math: Record<string, unknown>, _argNames: Record<string, boolean>): (scope: Map<string, unknown>, args: Record<string, unknown>, context: unknown) => unknown;
1037
+ forEach(_callback: (child: any, path: string, parent: any) => void): void;
1038
+ map(_callback: (child: any, path: string, parent: any) => any): any;
1039
+ _ifNode(node: unknown): any;
1040
+ traverse(callback: (node: any, path: string | null, parent: any | null) => void): void;
1041
+ transform(callback: (node: any, path: string | null, parent: any | null) => any): any;
1042
+ filter(callback: (node: any, path: string | null, parent: any | null) => boolean): any[];
1043
+ clone(): any;
1044
+ cloneDeep(): any;
1045
+ equals(other: any | null | undefined): boolean;
1046
+ toString(options?: import("./Node.js").StringOptions): string;
1047
+ _toString(_options?: import("./Node.js").StringOptions): string;
1048
+ toJSON(): Record<string, unknown>;
1049
+ toHTML(options?: import("./Node.js").StringOptions): string;
1050
+ _toHTML(_options?: import("./Node.js").StringOptions): string;
1051
+ toTex(options?: import("./Node.js").StringOptions): string;
1052
+ toMarkdown(options?: {
1053
+ inline?: boolean;
1054
+ } & import("./Node.js").StringOptions): string;
1055
+ toDOT(options?: {
1056
+ name?: string;
1057
+ }): string;
1058
+ toMathML(): string;
1059
+ _toMathML(): string;
1060
+ _toTex(_options?: import("./Node.js").StringOptions): string;
1061
+ _getCustomString(options?: import("./Node.js").StringOptions): string | undefined;
1062
+ getIdentifier(): string;
1063
+ getContent(): any;
1064
+ };
174
1065
  };
175
1066
  }>;
176
1067
  export {};