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