@ygracs/xobj-lib-js 0.2.5-b → 0.2.6-b

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.
package/lib/xObj-lib.d.ts CHANGED
@@ -1,301 +1,297 @@
1
- /**
2
- * A result of a value check ops.
3
- */
4
- export type RVAL_reason = {
5
- /**
6
- * - message ID
7
- */
8
- code: string;
9
- /**
10
- * - message text
11
- */
12
- msg: string;
13
- };
14
- /**
15
- * A result of a value check ops.
16
- */
17
- export type VCOR_evalkname = {
18
- /**
19
- * - ops flag
20
- */
21
- isSucceed: boolean;
22
- /**
23
- * - result value or reson if failed
24
- */
25
- value: (string | RVAL_reason);
26
- };
27
- /**
28
- * A result of an xObj modification ops
29
- */
30
- export type RVAL_emodif = {
31
- /**
32
- * - flag that indicates whether an ops is succeed or not
33
- */
34
- isSucceed: boolean;
35
- /**
36
- * - some element as a result
37
- */
38
- item: (object | object[]) | null;
39
- };
40
- /**
41
- * An options for an element insertion ops
42
- */
43
- export type OPT_inselops_L = {
44
- force?: boolean;
45
- ripOldies?: boolean;
46
- acceptIfList?: boolean;
47
- };
48
- /**
49
- * An options for an element insertion ops
50
- */
51
- export type OPT_inselops_S = {
52
- force?: boolean;
53
- ripOldies?: boolean;
54
- };
55
-
56
- export const XOBJ_DEF_PARAM_TNAME: string;
57
- export const XOBJ_DEF_ATTR_TNAME: string;
58
-
59
- /**
60
- * Extracts a parameter 'AS IS' from a given object.
61
- * @throws {TypeError} if first param is not an object
62
- * @throws {TypeError} if third param is not a string
63
- */
64
- export function readXObjParamRaw(obj: object, key?: string): any;
65
- /**
66
- * Extracts a parameter from a given object and returns it as a string.
67
- * @throws {TypeError} if first param is not an object
68
- */
69
- export function readXObjParam(obj: object, key?: string): string;
70
- /**
71
- * Extracts a parameter from a given object and returns it as a boolean.
72
- * @throws {TypeError} if first param is not an object
73
- */
74
- export function readXObjParamAsBool(obj: object, defValue?: boolean, key?: string): boolean;
75
- /**
76
- * Extracts a parameter from a given object and returns it as a number.
77
- * @throws {TypeError} if first param is not an object
78
- */
79
- export function readXObjParamAsNum(obj: object, defValue?: number, key?: string): number;
80
- /**
81
- * Extracts a parameter from a given object and returns it as a string.
82
- * @throws {TypeError} if first param is not an object
83
- * @todo [since `v0.2.1`] deprecate use of `opt` as `string`
84
- */
85
- export function readXObjParamEx(obj: object, opt?: object, key?: string): string;
86
- /**
87
- * Extracts a parameter from a given object and returns it as 'index' value.
88
- * @throws {TypeError} if first param is not an object
89
- */
90
- export function readXObjParamAsIndex(obj: object, key?: string): number;
91
- /**
92
- * Writes a parameter 'AS IS' into a given object.
93
- * @throws {TypeError} if first param is not an object
94
- * @throws {TypeError} if third param is not a string
95
- */
96
- export function writeXObjParamRaw(obj: object, value: any, key?: string): boolean;
97
- /**
98
- * Tries to convert a given value to a string and writes it as a parameter
99
- * into a given object.
100
- * @throws {TypeError} if first param is not an object
101
- */
102
- export function writeXObjParam(obj: object, value: any, key?: string): boolean;
103
- /**
104
- * Tries to convert a given value to a boolean and writes it as a parameter
105
- * into a given object.
106
- * @throws {TypeError} if first param is not an object
107
- */
108
- export function writeXObjParamAsBool(obj: object, value: any, defValue?: boolean, key?: string): boolean;
109
- /**
110
- * Tries to convert a given value to a number and writes it as a parameter
111
- * into a given object.
112
- * @throws {TypeError} if first param is not an object
113
- */
114
- export function writeXObjParamAsNum(obj: object, value: any, defValue?: number, key?: string): boolean;
115
- /**
116
- * Tries to convert a given value into an 'index' value and writes it
117
- * as a parameter into a given object.
118
- * @throws {TypeError} if first param is not an object
119
- */
120
- export function writeXObjParamAsIndex(obj: object, value: any, key?: string): boolean;
121
- /**
122
- * Tries to convert a given value to a string and writes it
123
- * as a parameter into a given object.
124
- * @throws {TypeError} if first param is not an object
125
- * @todo [since `v0.2.1`] deprecate use of `opt` as `string`
126
- */
127
- export function writeXObjParamEx(obj: object, value: any, opt?: object, key?: string): boolean;
128
- /**
129
- * Extracts an attribute 'AS IS' from a given object.
130
- * @throws {TypeError} if first param is not an object
131
- * @throws {TypeError} if third param is not a string
132
- */
133
- export function readXObjAttrRaw(obj: object, attr?: string, key?: string): any;
134
- /**
135
- * Extracts an attribute from a given object and returns it as a string.
136
- * @throws {TypeError} if first param is not an object
137
- */
138
- export function readXObjAttr(obj: object, attr: string, key?: string): string;
139
- /**
140
- * Extracts an attribute from a given object and returns it as a boolean.
141
- * @throws {TypeError} if first param is not an object
142
- */
143
- export function readXObjAttrAsBool(obj: object, attr: string, defValue?: boolean, key?: string): boolean;
144
- /**
145
- * Extracts an attribute from a given object and returns it as a number.
146
- * @returns {number}
147
- * @throws {TypeError} if first param is not an object
148
- */
149
- export function readXObjAttrAsNum(obj: object, attr: string, defValue?: number, key?: string): number;
150
- /**
151
- * Extracts an attribute from a given object and returns it as a string.
152
- * @throws {TypeError} if first param is not an object
153
- * @todo [since `v0.2.1`] deprecate use of `opt` as `string`
154
- */
155
- export function readXObjAttrEx(obj: object, attr: string, opt?: object, key?: string): string;
156
- /**
157
- * Extracts an attribute from a given object and returns it as 'index' value.
158
- * @throws {TypeError} if first param is not an object
159
- */
160
- export function readXObjAttrAsIndex(obj: object, attr: string, key?: string): number;
161
- /**
162
- * Writes a parameter into a given object.
163
- * @throws {TypeError} if first param is not an object
164
- * @throws {TypeError} if third param is not a string
165
- */
166
- export function writeXObjAttrRaw(obj: object, attr: string, value: any, key?: string): boolean;
167
- /**
168
- * Tries to convert a given value to a string and writes it as an attribute
169
- * into a given object.
170
- * @throws {TypeError} if first param is not an object
171
- */
172
- export function writeXObjAttr(obj: object, attr: string, value: any, key?: string): boolean;
173
- /**
174
- * Tries to convert a given value to a boolean and writes it as an attribute
175
- * into a given object.
176
- * @throws {TypeError} if first param is not an object
177
- */
178
- export function writeXObjAttrAsBool(obj: object, attr: string, value: any, defValue?: boolean, key?: string): boolean;
179
- /**
180
- * Tries to convert a given value to a number and writes it as an attribute
181
- * into a given object.
182
- * @throws {TypeError} if first param is not an object
183
- */
184
- export function writeXObjAttrAsNum(obj: object, attr: string, value: any, defValue?: number, key?: string): boolean;
185
- /**
186
- * Tries to convert a given value into an 'index' value and writes it
187
- * as an attribute into a given object.
188
- * @throws {TypeError} if first param is not an object
189
- */
190
- export function writeXObjAttrAsIndex(obj: object, attr: string, value: any, key?: string): boolean;
191
- /**
192
- * Tries to convert a given value to a string and writes it as an attribute
193
- * into a given object.
194
- * @throws {TypeError} if first param is not an object
195
- * @todo [since `v0.2.1`] deprecate use of `opt` as `string`
196
- */
197
- export function writeXObjAttrEx(obj: object, attr: string, value: any, opt?: object, key?: string): boolean;
198
- /**
199
- * Extracts an attributes from a given object by its key.
200
- * @throws {TypeError} if first param is not an object
201
- */
202
- export function getXObjAttributes(obj: object, key?: string): object | null;
203
- /**
204
- * Checks whether an attribute is exists.
205
- * @throws {TypeError} if first param is not an object
206
- */
207
- export function checkXObjAttribute(obj: object, attr?: string, key?: string): boolean;
208
- /**
209
- * Deletes an attribute addressed by a given name.
210
- * @throws {TypeError} if first param is not an object
211
- */
212
- export function deleteXObjAttribute(obj: object, attr?: string, key?: string): boolean;
213
- /**
214
- * Renames an attribute addressed by a given name.
215
- * @since 0.2.0
216
- * @throws {TypeError} if first param is not an object
217
- * @throws {TypeError} if second param is not an object
218
- * @throws {TypeError} if third param is not an object
219
- */
220
- export function renameXObjAttribute(obj: object, attr?: string, value?: string, key?: string): boolean;
221
- /**
222
- * Extracts an element from a given object by its key.
223
- * @throws {TypeError} if first param is not an object
224
- * @throws {TypeError} if second param is empty string or not a string at all
225
- */
226
- export function getXObjElement(obj: object, name: string): any | null;
227
- /**
228
- * Adds an element addressed by its key to a given object.
229
- * @throws {TypeError} if first param is not an object
230
- * @throws {TypeError} if second param is empty string or not a string at all
231
- */
232
- export function addXObjElement(obj: object, name: string): RVAL_emodif;
233
- /**
234
- * Inserts an element addressed by its key into a given object.
235
- * @throws {TypeError} if first param is not an object
236
- * @see insertXObjElementEx
237
- */
238
- export function insertXObjElement(...args: [obj: object, name: string, opt?: OPT_inselops_L]): object | null;
239
- /**
240
- * Inserts an element addressed by its key into a given object.
241
- * @since 0.2.0
242
- * @throws {TypeError} if first param is not an object
243
- * @throws {TypeError} if second param is empty string or not a string at all
244
- */
245
- export function insertXObjElementEx(obj: object, name: string, opt?: OPT_inselops_L): RVAL_emodif;
246
- /**
247
- * Deletes an element addressed by its key from a given object.
248
- * @throws {TypeError} if first param is not an object
249
- * @see deleteXObjElementEx
250
- */
251
- export function deleteXObjElement(...args: [obj: object, name: string]): boolean;
252
- /**
253
- * Deletes an element addressed by its key from a given object.
254
- * @throws {TypeError} if first param is not an object
255
- * @throws {TypeError} if second param is empty string or not a string at all
256
- */
257
- export function deleteXObjElementEx(obj: object, name: string): RVAL_emodif;
258
- /**
259
- * Renames an element addressed by its key.
260
- * @throws {TypeError} if first param is not an object
261
- * @throws {TypeError} if second param is not a string
262
- * @throws {TypeError} if third param is not a string
263
- */
264
- export function renameXObjElement(obj: object, name?: string, value?: string): boolean;
265
-
266
- /**
267
- * Tries to convert a value into an ID.
268
- */
269
- export function evalXObjEName(value: any): null | number | string;
270
- /**
271
- * Inserts a list elements into a given object.
272
- * @throws {TypeError} if first param is not an object
273
- * @see insertXObjEListEx
274
- */
275
- export function insertXObjEList(...args: [obj: object, name: string, opt?: OPT_inselops_S]): object | object[] | null;
276
- /**
277
- * Inserts a list elements into a given object.
278
- * @since 0.2.0
279
- * @throws {TypeError} if first param is not an object
280
- * @throws {TypeError} if second param is empty string or not a string at all
281
- */
282
- export function insertXObjEListEx(obj: object, name: string, opt?: OPT_inselops_S): RVAL_emodif;
283
- /**
284
- * Tries to convert a value into an ID.
285
- * @inner
286
- */
287
- export function evalKeyName(value: any, opt?: boolean): VCOR_evalkname;
288
- /**
289
- * Tries to convert a value into an element name description.
290
- */
291
- export function genXObjENameDescr(value: any): object;
292
- /**
293
- * Inserts an elements into a given object.
294
- * @throws {TypeError} if first param is not an object
295
- */
296
- export function insertXObjElements(obj: object, ...args: any[]): number;
297
- /**
298
- * Inserts a chain of an elements into a given object.
299
- * @throws {TypeError} if first param is not an object
300
- */
301
- export function insertXObjEChain(obj: object, ...args: any[]): any | null;
1
+ /**
2
+ * A result of a value check ops.
3
+ */
4
+ export type RVAL_reason = {
5
+ /** - message ID */
6
+ code: string;
7
+ /** - message text */
8
+ msg: string;
9
+ };
10
+ /**
11
+ * A result of a value check ops.
12
+ */
13
+ export type VCOR_evalkname = {
14
+ /** - ops flag */
15
+ isSucceed: boolean;
16
+ /** - result value or reson if failed */
17
+ value: string | RVAL_reason;
18
+ };
19
+ /**
20
+ * A result of an element name pattern evaluation ops.
21
+ */
22
+ export type XObjENameDescr = {
23
+ /** - ops flag */
24
+ isERR: boolean;
25
+ /** - element name */
26
+ name: null | number | string;
27
+ /** - some conditions applied to an element */
28
+ conditions: object | null;
29
+ };
30
+ /**
31
+ * A result of an xObj modification ops
32
+ */
33
+ export type RVAL_emodif = {
34
+ /** - flag that indicates whether an ops is succeed or not */
35
+ isSucceed: boolean;
36
+ /** - some element as a result */
37
+ item: object | object[] | null;
38
+ };
39
+ /**
40
+ * An options for an element insertion ops
41
+ */
42
+ export type OPT_inselops_L = {
43
+ force?: boolean;
44
+ ripOldies?: boolean;
45
+ acceptIfList?: boolean;
46
+ };
47
+ /**
48
+ * An options for an element insertion ops
49
+ */
50
+ export type OPT_inselops_S = {
51
+ force?: boolean;
52
+ ripOldies?: boolean;
53
+ };
54
+
55
+ /**
56
+ * Extracts a parameter 'AS IS' from a given object.
57
+ * @throws {TypeError} if first param is not an object
58
+ * @throws {TypeError} if third param is not a string
59
+ */
60
+ export function readXObjParamRaw(obj: object, key?: string): any;
61
+ /**
62
+ * Extracts a parameter from a given object and returns it as a string.
63
+ * @throws {TypeError} if first param is not an object
64
+ */
65
+ export function readXObjParam(obj: object, key?: string): string;
66
+ /**
67
+ * Extracts a parameter from a given object and returns it as a boolean.
68
+ * @throws {TypeError} if first param is not an object
69
+ */
70
+ export function readXObjParamAsBool(obj: object, defValue?: boolean, key?: string): boolean;
71
+ /**
72
+ * Extracts a parameter from a given object and returns it as a number.
73
+ * @throws {TypeError} if first param is not an object
74
+ */
75
+ export function readXObjParamAsNum(obj: object, defValue?: number, key?: string): number;
76
+ /**
77
+ * Extracts a parameter from a given object and returns it as a string.
78
+ * @throws {TypeError} if first param is not an object
79
+ * @todo [since `v0.2.1`] deprecate use of `opt` as `string`
80
+ */
81
+ export function readXObjParamEx(obj: object, opt?: object, key?: string): string;
82
+ /**
83
+ * Extracts a parameter from a given object and returns it as 'index' value.
84
+ * @throws {TypeError} if first param is not an object
85
+ */
86
+ export function readXObjParamAsIndex(obj: object, key?: string): number;
87
+ /**
88
+ * Writes a parameter 'AS IS' into a given object.
89
+ * @throws {TypeError} if first param is not an object
90
+ * @throws {TypeError} if third param is not a string
91
+ */
92
+ export function writeXObjParamRaw(obj: object, value: any, key?: string): boolean;
93
+ /**
94
+ * Tries to convert a given value to a string and writes it as a parameter
95
+ * into a given object.
96
+ * @throws {TypeError} if first param is not an object
97
+ */
98
+ export function writeXObjParam(obj: object, value: any, key?: string): boolean;
99
+ /**
100
+ * Tries to convert a given value to a boolean and writes it as a parameter
101
+ * into a given object.
102
+ * @throws {TypeError} if first param is not an object
103
+ */
104
+ export function writeXObjParamAsBool(obj: object, value: any, defValue?: boolean, key?: string): boolean;
105
+ /**
106
+ * Tries to convert a given value to a number and writes it as a parameter
107
+ * into a given object.
108
+ * @throws {TypeError} if first param is not an object
109
+ */
110
+ export function writeXObjParamAsNum(obj: object, value: any, defValue?: number, key?: string): boolean;
111
+ /**
112
+ * Tries to convert a given value into an 'index' value and writes it
113
+ * as a parameter into a given object.
114
+ * @throws {TypeError} if first param is not an object
115
+ */
116
+ export function writeXObjParamAsIndex(obj: object, value: any, key?: string): boolean;
117
+ /**
118
+ * Tries to convert a given value to a string and writes it
119
+ * as a parameter into a given object.
120
+ * @throws {TypeError} if first param is not an object
121
+ * @todo [since `v0.2.1`] deprecate use of `opt` as `string`
122
+ */
123
+ export function writeXObjParamEx(obj: object, value: any, opt?: object, key?: string): boolean;
124
+ /**
125
+ * Extracts an attribute 'AS IS' from a given object.
126
+ * @throws {TypeError} if first param is not an object
127
+ * @throws {TypeError} if third param is not a string
128
+ */
129
+ export function readXObjAttrRaw(obj: object, attr?: string, key?: string): any;
130
+ /**
131
+ * Extracts an attribute from a given object and returns it as a string.
132
+ * @throws {TypeError} if first param is not an object
133
+ */
134
+ export function readXObjAttr(obj: object, attr: string, key?: string): string;
135
+ /**
136
+ * Extracts an attribute from a given object and returns it as a boolean.
137
+ * @throws {TypeError} if first param is not an object
138
+ */
139
+ export function readXObjAttrAsBool(obj: object, attr: string, defValue?: boolean, key?: string): boolean;
140
+ /**
141
+ * Extracts an attribute from a given object and returns it as a number.
142
+ * @returns {number}
143
+ * @throws {TypeError} if first param is not an object
144
+ */
145
+ export function readXObjAttrAsNum(obj: object, attr: string, defValue?: number, key?: string): number;
146
+ /**
147
+ * Extracts an attribute from a given object and returns it as a string.
148
+ * @throws {TypeError} if first param is not an object
149
+ * @todo [since `v0.2.1`] deprecate use of `opt` as `string`
150
+ */
151
+ export function readXObjAttrEx(obj: object, attr: string, opt?: object, key?: string): string;
152
+ /**
153
+ * Extracts an attribute from a given object and returns it as 'index' value.
154
+ * @throws {TypeError} if first param is not an object
155
+ */
156
+ export function readXObjAttrAsIndex(obj: object, attr: string, key?: string): number;
157
+ /**
158
+ * Writes a parameter into a given object.
159
+ * @throws {TypeError} if first param is not an object
160
+ * @throws {TypeError} if third param is not a string
161
+ */
162
+ export function writeXObjAttrRaw(obj: object, attr: string, value: any, key?: string): boolean;
163
+ /**
164
+ * Tries to convert a given value to a string and writes it as an attribute
165
+ * into a given object.
166
+ * @throws {TypeError} if first param is not an object
167
+ */
168
+ export function writeXObjAttr(obj: object, attr: string, value: any, key?: string): boolean;
169
+ /**
170
+ * Tries to convert a given value to a boolean and writes it as an attribute
171
+ * into a given object.
172
+ * @throws {TypeError} if first param is not an object
173
+ */
174
+ export function writeXObjAttrAsBool(obj: object, attr: string, value: any, defValue?: boolean, key?: string): boolean;
175
+ /**
176
+ * Tries to convert a given value to a number and writes it as an attribute
177
+ * into a given object.
178
+ * @throws {TypeError} if first param is not an object
179
+ */
180
+ export function writeXObjAttrAsNum(obj: object, attr: string, value: any, defValue?: number, key?: string): boolean;
181
+ /**
182
+ * Tries to convert a given value into an 'index' value and writes it
183
+ * as an attribute into a given object.
184
+ * @throws {TypeError} if first param is not an object
185
+ */
186
+ export function writeXObjAttrAsIndex(obj: object, attr: string, value: any, key?: string): boolean;
187
+ /**
188
+ * Tries to convert a given value to a string and writes it as an attribute
189
+ * into a given object.
190
+ * @throws {TypeError} if first param is not an object
191
+ * @todo [since `v0.2.1`] deprecate use of `opt` as `string`
192
+ */
193
+ export function writeXObjAttrEx(obj: object, attr: string, value: any, opt?: object, key?: string): boolean;
194
+ /**
195
+ * Extracts an attributes from a given object by its key.
196
+ * @throws {TypeError} if first param is not an object
197
+ */
198
+ export function getXObjAttributes(obj: object, key?: string): object | null;
199
+ /**
200
+ * Checks whether an attribute is exists.
201
+ * @throws {TypeError} if first param is not an object
202
+ */
203
+ export function checkXObjAttribute(obj: object, attr?: string, key?: string): boolean;
204
+ /**
205
+ * Deletes an attribute addressed by a given name.
206
+ * @throws {TypeError} if first param is not an object
207
+ */
208
+ export function deleteXObjAttribute(obj: object, attr?: string, key?: string): boolean;
209
+ /**
210
+ * Renames an attribute addressed by a given name.
211
+ * @since 0.2.0
212
+ * @throws {TypeError} if first param is not an object
213
+ * @throws {TypeError} if second param is not an object
214
+ * @throws {TypeError} if third param is not an object
215
+ */
216
+ export function renameXObjAttribute(obj: object, attr?: string, value?: string, key?: string): boolean;
217
+ /**
218
+ * Extracts an element from a given object by its key.
219
+ * @throws {TypeError} if first param is not an object
220
+ * @throws {TypeError} if second param is empty string or not a string at all
221
+ */
222
+ export function getXObjElement(obj: object, name: string): any | null;
223
+ /**
224
+ * Adds an element addressed by its key to a given object.
225
+ * @throws {TypeError} if first param is not an object
226
+ * @throws {TypeError} if second param is empty string or not a string at all
227
+ */
228
+ export function addXObjElement(obj: object, name: string): RVAL_emodif;
229
+ /**
230
+ * Inserts an element addressed by its key into a given object.
231
+ * @throws {TypeError} if first param is not an object
232
+ * @see insertXObjElementEx
233
+ */
234
+ export function insertXObjElement(...args: [obj: object, name: string, opt?: OPT_inselops_L]): object | null;
235
+ /**
236
+ * Inserts an element addressed by its key into a given object.
237
+ * @since 0.2.0
238
+ * @throws {TypeError} if first param is not an object
239
+ * @throws {TypeError} if second param is empty string or not a string at all
240
+ */
241
+ export function insertXObjElementEx(obj: object, name: string, opt?: OPT_inselops_L): RVAL_emodif;
242
+ /**
243
+ * Deletes an element addressed by its key from a given object.
244
+ * @throws {TypeError} if first param is not an object
245
+ * @see deleteXObjElementEx
246
+ */
247
+ export function deleteXObjElement(...args: [obj: object, name: string]): boolean;
248
+ /**
249
+ * Deletes an element addressed by its key from a given object.
250
+ * @throws {TypeError} if first param is not an object
251
+ * @throws {TypeError} if second param is empty string or not a string at all
252
+ */
253
+ export function deleteXObjElementEx(obj: object, name: string): RVAL_emodif;
254
+ /**
255
+ * Renames an element addressed by its key.
256
+ * @throws {TypeError} if first param is not an object
257
+ * @throws {TypeError} if second param is not a string
258
+ * @throws {TypeError} if third param is not a string
259
+ */
260
+ export function renameXObjElement(obj: object, name?: string, value?: string): boolean;
261
+
262
+ /**
263
+ * Tries to convert a value into an ID.
264
+ */
265
+ export function evalXObjEName(value: any): null | number | string;
266
+ /**
267
+ * Inserts a list elements into a given object.
268
+ * @throws {TypeError} if first param is not an object
269
+ * @see insertXObjEListEx
270
+ */
271
+ export function insertXObjEList(...args: [obj: object, name: string, opt?: OPT_inselops_S]): object | object[] | null;
272
+ /**
273
+ * Inserts a list elements into a given object.
274
+ * @since 0.2.0
275
+ * @throws {TypeError} if first param is not an object
276
+ * @throws {TypeError} if second param is empty string or not a string at all
277
+ */
278
+ export function insertXObjEListEx(obj: object, name: string, opt?: OPT_inselops_S): RVAL_emodif;
279
+ /**
280
+ * Tries to convert a value into an ID.
281
+ * @inner
282
+ */
283
+ export function evalKeyName(value: any, opt?: boolean): VCOR_evalkname;
284
+ /**
285
+ * Tries to convert a value into an element name description.
286
+ */
287
+ export function genXObjENameDescr(value: any): XObjENameDescr;
288
+ /**
289
+ * Inserts an elements into a given object.
290
+ * @throws {TypeError} if first param is not an object
291
+ */
292
+ export function insertXObjElements(obj: object, ...args: any[]): number;
293
+ /**
294
+ * Inserts a chain of an elements into a given object.
295
+ * @throws {TypeError} if first param is not an object
296
+ */
297
+ export function insertXObjEChain(obj: object, ...args: any[]): any | null;