greybel-interpreter 1.4.6 → 1.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/.editorconfig +14 -14
  2. package/.eslintrc +47 -47
  3. package/LICENSE +21 -21
  4. package/README.md +2 -2
  5. package/dist/context.d.ts +110 -110
  6. package/dist/context.js +306 -306
  7. package/dist/cps.d.ts +14 -14
  8. package/dist/cps.js +160 -160
  9. package/dist/handler/error.d.ts +6 -6
  10. package/dist/handler/error.js +12 -12
  11. package/dist/handler/output.d.ts +18 -18
  12. package/dist/handler/output.js +29 -29
  13. package/dist/handler/resource.d.ts +12 -12
  14. package/dist/handler/resource.js +28 -28
  15. package/dist/handler-container.d.ts +14 -14
  16. package/dist/handler-container.js +14 -14
  17. package/dist/index.d.ts +46 -46
  18. package/dist/index.js +132 -132
  19. package/dist/interpreter.d.ts +42 -42
  20. package/dist/interpreter.js +218 -218
  21. package/dist/operations/assign.d.ts +13 -13
  22. package/dist/operations/assign.js +46 -46
  23. package/dist/operations/block.d.ts +12 -12
  24. package/dist/operations/block.js +52 -52
  25. package/dist/operations/break.d.ts +10 -10
  26. package/dist/operations/break.js +23 -23
  27. package/dist/operations/call.d.ts +13 -13
  28. package/dist/operations/call.js +49 -49
  29. package/dist/operations/chunk.d.ts +12 -12
  30. package/dist/operations/chunk.js +33 -33
  31. package/dist/operations/continue.d.ts +10 -10
  32. package/dist/operations/continue.js +23 -23
  33. package/dist/operations/debugger-statement.d.ts +10 -10
  34. package/dist/operations/debugger-statement.js +21 -21
  35. package/dist/operations/evaluate.d.ts +40 -40
  36. package/dist/operations/evaluate.js +334 -334
  37. package/dist/operations/for.d.ts +14 -14
  38. package/dist/operations/for.js +81 -81
  39. package/dist/operations/function-reference.d.ts +12 -12
  40. package/dist/operations/function-reference.js +44 -44
  41. package/dist/operations/function.d.ts +14 -14
  42. package/dist/operations/function.js +72 -72
  43. package/dist/operations/if-statement.d.ts +19 -19
  44. package/dist/operations/if-statement.js +85 -85
  45. package/dist/operations/import.d.ts +17 -17
  46. package/dist/operations/import.js +57 -57
  47. package/dist/operations/include.d.ts +13 -13
  48. package/dist/operations/include.js +41 -41
  49. package/dist/operations/list.d.ts +11 -11
  50. package/dist/operations/list.js +42 -42
  51. package/dist/operations/literal.d.ts +11 -11
  52. package/dist/operations/literal.js +40 -40
  53. package/dist/operations/map.d.ts +11 -11
  54. package/dist/operations/map.js +44 -44
  55. package/dist/operations/negated-binary.d.ts +11 -11
  56. package/dist/operations/negated-binary.js +42 -42
  57. package/dist/operations/new-instance.d.ts +11 -11
  58. package/dist/operations/new-instance.js +39 -39
  59. package/dist/operations/noop.d.ts +9 -9
  60. package/dist/operations/noop.js +19 -19
  61. package/dist/operations/not.d.ts +11 -11
  62. package/dist/operations/not.js +35 -35
  63. package/dist/operations/operation.d.ts +13 -13
  64. package/dist/operations/operation.js +9 -9
  65. package/dist/operations/reference.d.ts +9 -9
  66. package/dist/operations/reference.js +19 -19
  67. package/dist/operations/resolve.d.ts +38 -38
  68. package/dist/operations/resolve.js +210 -210
  69. package/dist/operations/return.d.ts +11 -11
  70. package/dist/operations/return.js +45 -45
  71. package/dist/operations/while.d.ts +13 -13
  72. package/dist/operations/while.js +65 -65
  73. package/dist/types/base.d.ts +9 -9
  74. package/dist/types/base.js +5 -5
  75. package/dist/types/boolean.d.ts +13 -13
  76. package/dist/types/boolean.js +34 -34
  77. package/dist/types/default.d.ts +8 -8
  78. package/dist/types/default.js +14 -14
  79. package/dist/types/function.d.ts +32 -32
  80. package/dist/types/function.js +104 -104
  81. package/dist/types/interface.d.ts +24 -24
  82. package/dist/types/interface.js +83 -83
  83. package/dist/types/list.d.ts +29 -29
  84. package/dist/types/list.js +158 -158
  85. package/dist/types/map.d.ts +33 -33
  86. package/dist/types/map.js +200 -200
  87. package/dist/types/nil.d.ts +11 -11
  88. package/dist/types/nil.js +33 -33
  89. package/dist/types/number.d.ts +25 -25
  90. package/dist/types/number.js +69 -69
  91. package/dist/types/string.d.ts +31 -31
  92. package/dist/types/string.js +121 -121
  93. package/dist/types/with-intrinsics.d.ts +15 -15
  94. package/dist/types/with-intrinsics.js +19 -19
  95. package/dist/utils/deep-equal.d.ts +1 -1
  96. package/dist/utils/deep-equal.js +37 -37
  97. package/dist/utils/object-value.d.ts +7 -7
  98. package/dist/utils/object-value.js +42 -42
  99. package/dist/utils/path.d.ts +10 -10
  100. package/dist/utils/path.js +32 -32
  101. package/package.json +58 -58
package/dist/types/map.js CHANGED
@@ -1,200 +1,200 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CustomMapIterator = exports.ISA_PROPERTY = exports.CLASS_ID_PROPERTY = void 0;
7
- const object_value_1 = __importDefault(require("../utils/object-value"));
8
- const path_1 = __importDefault(require("../utils/path"));
9
- const base_1 = __importDefault(require("./base"));
10
- const nil_1 = require("./nil");
11
- const string_1 = __importDefault(require("./string"));
12
- const with_intrinsics_1 = require("./with-intrinsics");
13
- exports.CLASS_ID_PROPERTY = new string_1.default('classID');
14
- exports.ISA_PROPERTY = new string_1.default('__isa');
15
- class CustomMapIterator {
16
- constructor(value) {
17
- const me = this;
18
- me.value = new object_value_1.default(value);
19
- me.index = 0;
20
- }
21
- next() {
22
- const me = this;
23
- const keys = Array.from(me.value.keys());
24
- if (me.index === keys.length) {
25
- return {
26
- value: nil_1.Void,
27
- done: true
28
- };
29
- }
30
- const key = keys[me.index++];
31
- return {
32
- value: new CustomMap(new object_value_1.default([
33
- [new string_1.default('key'), key],
34
- [new string_1.default('value'), me.value.get(key)]
35
- ])),
36
- done: false
37
- };
38
- }
39
- }
40
- exports.CustomMapIterator = CustomMapIterator;
41
- class CustomMap extends with_intrinsics_1.CustomObject {
42
- constructor(value, isa) {
43
- super();
44
- this.isInstance = false;
45
- this.value = new object_value_1.default(value);
46
- this.isa = new object_value_1.default(isa);
47
- }
48
- static createWithInitialValue(value) {
49
- const map = new CustomMap();
50
- map.value = value;
51
- return map;
52
- }
53
- getCustomType() {
54
- if (this.value.has(exports.CLASS_ID_PROPERTY)) {
55
- return this.value.get(exports.CLASS_ID_PROPERTY).toString();
56
- }
57
- return 'map';
58
- }
59
- toString() {
60
- const json = { [exports.ISA_PROPERTY.toString()]: {} };
61
- for (const [key, value] of this.isa.entries()) {
62
- json.__isa[key.toString()] = value.toString();
63
- }
64
- for (const [key, value] of this.value.entries()) {
65
- json[key.toString()] = value.toString();
66
- }
67
- return JSON.stringify(json);
68
- }
69
- fork() {
70
- return new CustomMap(this.value);
71
- }
72
- toNumber() {
73
- return 0;
74
- }
75
- toInt() {
76
- return 0;
77
- }
78
- toTruthy() {
79
- return this.value.size > 0;
80
- }
81
- [Symbol.iterator]() {
82
- return new CustomMapIterator(this.value);
83
- }
84
- extend(map) {
85
- if (map instanceof CustomMap) {
86
- map = map.value;
87
- }
88
- this.value.extend(map);
89
- return this;
90
- }
91
- has(path) {
92
- if (path instanceof base_1.default) {
93
- return this.has(new path_1.default([path]));
94
- }
95
- const traversalPath = path.clone();
96
- const current = traversalPath.next();
97
- if (current !== null) {
98
- if (this.value.has(current)) {
99
- const sub = this.value.get(current);
100
- if (traversalPath.count() > 0 &&
101
- sub instanceof with_intrinsics_1.CustomValueWithIntrinsics) {
102
- return sub.has(traversalPath);
103
- }
104
- return traversalPath.count() === 0;
105
- }
106
- else if (this.isa.has(current)) {
107
- const sub = this.isa.get(current);
108
- if (traversalPath.count() > 0 &&
109
- sub instanceof with_intrinsics_1.CustomValueWithIntrinsics) {
110
- return sub.has(traversalPath);
111
- }
112
- return traversalPath.count() === 0;
113
- }
114
- }
115
- return false;
116
- }
117
- set(path, newValue) {
118
- if (path instanceof base_1.default) {
119
- return this.set(new path_1.default([path]), newValue);
120
- }
121
- const traversalPath = path.clone();
122
- const last = traversalPath.last();
123
- const current = traversalPath.next();
124
- if (current !== null) {
125
- if (this.value.has(current)) {
126
- const sub = this.value.get(current);
127
- if (sub instanceof with_intrinsics_1.CustomValueWithIntrinsics) {
128
- sub.set(traversalPath, newValue);
129
- return;
130
- }
131
- }
132
- throw new Error(`Cannot set path ${path.toString()}.`);
133
- }
134
- this.value.set(last, newValue);
135
- }
136
- get(path) {
137
- if (path instanceof base_1.default) {
138
- return this.get(new path_1.default([path]));
139
- }
140
- const traversalPath = path.clone();
141
- const current = traversalPath.next();
142
- if (current !== null) {
143
- if (this.value.has(current)) {
144
- const sub = this.value.get(current);
145
- if (traversalPath.count() > 0) {
146
- if (sub instanceof with_intrinsics_1.CustomValueWithIntrinsics) {
147
- return sub.get(traversalPath);
148
- }
149
- }
150
- else if (traversalPath.count() === 0) {
151
- return sub;
152
- }
153
- }
154
- else if (this.isa.has(current)) {
155
- const sub = this.isa.get(current);
156
- if (traversalPath.count() > 0) {
157
- if (sub instanceof with_intrinsics_1.CustomValueWithIntrinsics) {
158
- return sub.get(traversalPath);
159
- }
160
- }
161
- else if (traversalPath.count() === 0) {
162
- return sub;
163
- }
164
- }
165
- else if (current.toString() === exports.ISA_PROPERTY.toString()) {
166
- if (path.count() === 1) {
167
- return new CustomMap(this.isa);
168
- }
169
- else {
170
- const ahead = traversalPath.next();
171
- if (this.isa.has(ahead)) {
172
- const sub = this.isa.get(ahead);
173
- if (traversalPath.count() > 0) {
174
- if (sub instanceof with_intrinsics_1.CustomValueWithIntrinsics) {
175
- return sub.get(traversalPath);
176
- }
177
- }
178
- else if (traversalPath.count() === 0) {
179
- return sub;
180
- }
181
- }
182
- }
183
- }
184
- else if (path.count() === 1 && CustomMap.getIntrinsics().has(current)) {
185
- return CustomMap.getIntrinsics().get(current);
186
- }
187
- }
188
- throw new Error(`Unknown path in map ${path.toString()}.`);
189
- }
190
- createInstance() {
191
- const newInstance = new CustomMap(new object_value_1.default(), new object_value_1.default(this.isa));
192
- for (const [k, v] of this.value.entries()) {
193
- newInstance.isa.set(k, v);
194
- }
195
- newInstance.isInstance = true;
196
- return newInstance;
197
- }
198
- }
199
- exports.default = CustomMap;
200
- CustomMap.intrinsics = new object_value_1.default();
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CustomMapIterator = exports.ISA_PROPERTY = exports.CLASS_ID_PROPERTY = void 0;
7
+ const object_value_1 = __importDefault(require("../utils/object-value"));
8
+ const path_1 = __importDefault(require("../utils/path"));
9
+ const base_1 = __importDefault(require("./base"));
10
+ const nil_1 = require("./nil");
11
+ const string_1 = __importDefault(require("./string"));
12
+ const with_intrinsics_1 = require("./with-intrinsics");
13
+ exports.CLASS_ID_PROPERTY = new string_1.default('classID');
14
+ exports.ISA_PROPERTY = new string_1.default('__isa');
15
+ class CustomMapIterator {
16
+ constructor(value) {
17
+ const me = this;
18
+ me.value = new object_value_1.default(value);
19
+ me.index = 0;
20
+ }
21
+ next() {
22
+ const me = this;
23
+ const keys = Array.from(me.value.keys());
24
+ if (me.index === keys.length) {
25
+ return {
26
+ value: nil_1.Void,
27
+ done: true
28
+ };
29
+ }
30
+ const key = keys[me.index++];
31
+ return {
32
+ value: new CustomMap(new object_value_1.default([
33
+ [new string_1.default('key'), key],
34
+ [new string_1.default('value'), me.value.get(key)]
35
+ ])),
36
+ done: false
37
+ };
38
+ }
39
+ }
40
+ exports.CustomMapIterator = CustomMapIterator;
41
+ class CustomMap extends with_intrinsics_1.CustomObject {
42
+ constructor(value, isa) {
43
+ super();
44
+ this.isInstance = false;
45
+ this.value = new object_value_1.default(value);
46
+ this.isa = new object_value_1.default(isa);
47
+ }
48
+ static createWithInitialValue(value) {
49
+ const map = new CustomMap();
50
+ map.value = value;
51
+ return map;
52
+ }
53
+ getCustomType() {
54
+ if (this.value.has(exports.CLASS_ID_PROPERTY)) {
55
+ return this.value.get(exports.CLASS_ID_PROPERTY).toString();
56
+ }
57
+ return 'map';
58
+ }
59
+ toString() {
60
+ const json = { [exports.ISA_PROPERTY.toString()]: {} };
61
+ for (const [key, value] of this.isa.entries()) {
62
+ json.__isa[key.toString()] = value.toString();
63
+ }
64
+ for (const [key, value] of this.value.entries()) {
65
+ json[key.toString()] = value.toString();
66
+ }
67
+ return JSON.stringify(json);
68
+ }
69
+ fork() {
70
+ return new CustomMap(this.value);
71
+ }
72
+ toNumber() {
73
+ return 0;
74
+ }
75
+ toInt() {
76
+ return 0;
77
+ }
78
+ toTruthy() {
79
+ return this.value.size > 0;
80
+ }
81
+ [Symbol.iterator]() {
82
+ return new CustomMapIterator(this.value);
83
+ }
84
+ extend(map) {
85
+ if (map instanceof CustomMap) {
86
+ map = map.value;
87
+ }
88
+ this.value.extend(map);
89
+ return this;
90
+ }
91
+ has(path) {
92
+ if (path instanceof base_1.default) {
93
+ return this.has(new path_1.default([path]));
94
+ }
95
+ const traversalPath = path.clone();
96
+ const current = traversalPath.next();
97
+ if (current !== null) {
98
+ if (this.value.has(current)) {
99
+ const sub = this.value.get(current);
100
+ if (traversalPath.count() > 0 &&
101
+ sub instanceof with_intrinsics_1.CustomValueWithIntrinsics) {
102
+ return sub.has(traversalPath);
103
+ }
104
+ return traversalPath.count() === 0;
105
+ }
106
+ else if (this.isa.has(current)) {
107
+ const sub = this.isa.get(current);
108
+ if (traversalPath.count() > 0 &&
109
+ sub instanceof with_intrinsics_1.CustomValueWithIntrinsics) {
110
+ return sub.has(traversalPath);
111
+ }
112
+ return traversalPath.count() === 0;
113
+ }
114
+ }
115
+ return false;
116
+ }
117
+ set(path, newValue) {
118
+ if (path instanceof base_1.default) {
119
+ return this.set(new path_1.default([path]), newValue);
120
+ }
121
+ const traversalPath = path.clone();
122
+ const last = traversalPath.last();
123
+ const current = traversalPath.next();
124
+ if (current !== null) {
125
+ if (this.value.has(current)) {
126
+ const sub = this.value.get(current);
127
+ if (sub instanceof with_intrinsics_1.CustomValueWithIntrinsics) {
128
+ sub.set(traversalPath, newValue);
129
+ return;
130
+ }
131
+ }
132
+ throw new Error(`Cannot set path ${path.toString()}.`);
133
+ }
134
+ this.value.set(last, newValue);
135
+ }
136
+ get(path) {
137
+ if (path instanceof base_1.default) {
138
+ return this.get(new path_1.default([path]));
139
+ }
140
+ const traversalPath = path.clone();
141
+ const current = traversalPath.next();
142
+ if (current !== null) {
143
+ if (this.value.has(current)) {
144
+ const sub = this.value.get(current);
145
+ if (traversalPath.count() > 0) {
146
+ if (sub instanceof with_intrinsics_1.CustomValueWithIntrinsics) {
147
+ return sub.get(traversalPath);
148
+ }
149
+ }
150
+ else if (traversalPath.count() === 0) {
151
+ return sub;
152
+ }
153
+ }
154
+ else if (this.isa.has(current)) {
155
+ const sub = this.isa.get(current);
156
+ if (traversalPath.count() > 0) {
157
+ if (sub instanceof with_intrinsics_1.CustomValueWithIntrinsics) {
158
+ return sub.get(traversalPath);
159
+ }
160
+ }
161
+ else if (traversalPath.count() === 0) {
162
+ return sub;
163
+ }
164
+ }
165
+ else if (current.toString() === exports.ISA_PROPERTY.toString()) {
166
+ if (path.count() === 1) {
167
+ return new CustomMap(this.isa);
168
+ }
169
+ else {
170
+ const ahead = traversalPath.next();
171
+ if (this.isa.has(ahead)) {
172
+ const sub = this.isa.get(ahead);
173
+ if (traversalPath.count() > 0) {
174
+ if (sub instanceof with_intrinsics_1.CustomValueWithIntrinsics) {
175
+ return sub.get(traversalPath);
176
+ }
177
+ }
178
+ else if (traversalPath.count() === 0) {
179
+ return sub;
180
+ }
181
+ }
182
+ }
183
+ }
184
+ else if (path.count() === 1 && CustomMap.getIntrinsics().has(current)) {
185
+ return CustomMap.getIntrinsics().get(current);
186
+ }
187
+ }
188
+ throw new Error(`Unknown path in map ${path.toString()}.`);
189
+ }
190
+ createInstance() {
191
+ const newInstance = new CustomMap(new object_value_1.default(), new object_value_1.default(this.isa));
192
+ for (const [k, v] of this.value.entries()) {
193
+ newInstance.isa.set(k, v);
194
+ }
195
+ newInstance.isInstance = true;
196
+ return newInstance;
197
+ }
198
+ }
199
+ exports.default = CustomMap;
200
+ CustomMap.intrinsics = new object_value_1.default();
@@ -1,11 +1,11 @@
1
- import CustomValue from './base';
2
- export default class CustomNil extends CustomValue {
3
- value: null;
4
- getCustomType(): string;
5
- toString(): string;
6
- fork(): CustomNil;
7
- toNumber(): number;
8
- toInt(): number;
9
- toTruthy(): boolean;
10
- }
11
- export declare const Void: CustomNil;
1
+ import CustomValue from './base';
2
+ export default class CustomNil extends CustomValue {
3
+ value: null;
4
+ getCustomType(): string;
5
+ toString(): string;
6
+ fork(): CustomNil;
7
+ toNumber(): number;
8
+ toInt(): number;
9
+ toTruthy(): boolean;
10
+ }
11
+ export declare const Void: CustomNil;
package/dist/types/nil.js CHANGED
@@ -1,33 +1,33 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Void = void 0;
7
- const base_1 = __importDefault(require("./base"));
8
- class CustomNil extends base_1.default {
9
- constructor() {
10
- super(...arguments);
11
- this.value = null;
12
- }
13
- getCustomType() {
14
- return 'null';
15
- }
16
- toString() {
17
- return 'null';
18
- }
19
- fork() {
20
- return new CustomNil();
21
- }
22
- toNumber() {
23
- return undefined;
24
- }
25
- toInt() {
26
- return undefined;
27
- }
28
- toTruthy() {
29
- return false;
30
- }
31
- }
32
- exports.default = CustomNil;
33
- exports.Void = new CustomNil();
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Void = void 0;
7
+ const base_1 = __importDefault(require("./base"));
8
+ class CustomNil extends base_1.default {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.value = null;
12
+ }
13
+ getCustomType() {
14
+ return 'null';
15
+ }
16
+ toString() {
17
+ return 'null';
18
+ }
19
+ fork() {
20
+ return new CustomNil();
21
+ }
22
+ toNumber() {
23
+ return undefined;
24
+ }
25
+ toInt() {
26
+ return undefined;
27
+ }
28
+ toTruthy() {
29
+ return false;
30
+ }
31
+ }
32
+ exports.default = CustomNil;
33
+ exports.Void = new CustomNil();
@@ -1,25 +1,25 @@
1
- import ObjectValue from '../utils/object-value';
2
- import Path from '../utils/path';
3
- import CustomValue from './base';
4
- import { CustomValueWithIntrinsics } from './with-intrinsics';
5
- export declare class CustomNumberIterator implements Iterator<CustomValue> {
6
- next(): IteratorResult<CustomValue>;
7
- }
8
- export default class CustomNumber extends CustomValueWithIntrinsics {
9
- static readonly intrinsics: ObjectValue;
10
- readonly value: number;
11
- constructor(value: number);
12
- getCustomType(): string;
13
- toString(): string;
14
- fork(): CustomNumber;
15
- toInt(): number;
16
- toNumber(): number;
17
- toTruthy(): boolean;
18
- [Symbol.iterator](): CustomNumberIterator;
19
- has(_path: Path<CustomValue> | CustomValue): boolean;
20
- set(_path: Path<CustomValue> | CustomValue, _newValue: CustomValue): void;
21
- get(path: Path<CustomValue> | CustomValue): CustomValue;
22
- }
23
- export declare const NegativeOne: CustomNumber;
24
- export declare const PositiveOne: CustomNumber;
25
- export declare const Zero: CustomNumber;
1
+ import ObjectValue from '../utils/object-value';
2
+ import Path from '../utils/path';
3
+ import CustomValue from './base';
4
+ import { CustomValueWithIntrinsics } from './with-intrinsics';
5
+ export declare class CustomNumberIterator implements Iterator<CustomValue> {
6
+ next(): IteratorResult<CustomValue>;
7
+ }
8
+ export default class CustomNumber extends CustomValueWithIntrinsics {
9
+ static readonly intrinsics: ObjectValue;
10
+ readonly value: number;
11
+ constructor(value: number);
12
+ getCustomType(): string;
13
+ toString(): string;
14
+ fork(): CustomNumber;
15
+ toInt(): number;
16
+ toNumber(): number;
17
+ toTruthy(): boolean;
18
+ [Symbol.iterator](): CustomNumberIterator;
19
+ has(_path: Path<CustomValue> | CustomValue): boolean;
20
+ set(_path: Path<CustomValue> | CustomValue, _newValue: CustomValue): void;
21
+ get(path: Path<CustomValue> | CustomValue): CustomValue;
22
+ }
23
+ export declare const NegativeOne: CustomNumber;
24
+ export declare const PositiveOne: CustomNumber;
25
+ export declare const Zero: CustomNumber;