@aidc-toolkit/app-extension 1.0.22-beta → 1.0.24-beta

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 (128) hide show
  1. package/dist/index.cjs +3414 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +1747 -0
  4. package/dist/index.d.ts +1747 -26
  5. package/dist/index.js +3379 -9
  6. package/dist/index.js.map +1 -1
  7. package/package.json +7 -10
  8. package/src/app-extension.ts +3 -10
  9. package/src/app-utility-proxy.ts +5 -4
  10. package/src/descriptor.ts +12 -8
  11. package/src/generator/descriptor.ts +1 -1
  12. package/src/generator/generator.ts +4 -4
  13. package/src/generator/index.ts +2 -2
  14. package/src/generator/{locale-strings-generator.ts → locale-resources-generator.ts} +66 -62
  15. package/src/gs1/character-set-proxy.ts +5 -5
  16. package/src/gs1/check-proxy.ts +3 -3
  17. package/src/gs1/identifier-proxy.ts +9 -8
  18. package/src/gs1/index.ts +3 -3
  19. package/src/index.ts +9 -9
  20. package/src/lib-proxy.ts +3 -3
  21. package/src/locale/en/{locale-strings.ts → locale-resources.ts} +1 -1
  22. package/src/locale/fr/{locale-strings.ts → locale-resources.ts} +1 -1
  23. package/src/locale/i18n.ts +7 -9
  24. package/src/locale/i18next.d.ts +6 -6
  25. package/{dist/types.d.ts → src/type.ts} +10 -38
  26. package/src/utility/character-set-descriptor.ts +1 -1
  27. package/src/utility/character-set-proxy.ts +9 -8
  28. package/src/utility/index.ts +3 -3
  29. package/src/utility/reg-exp-proxy.ts +5 -4
  30. package/src/utility/string-descriptor.ts +1 -1
  31. package/src/utility/string-proxy.ts +2 -2
  32. package/src/utility/transformer-descriptor.ts +1 -1
  33. package/src/utility/transformer-proxy.ts +5 -4
  34. package/tsup.config.ts +3 -0
  35. package/dist/app-extension.d.ts +0 -169
  36. package/dist/app-extension.d.ts.map +0 -1
  37. package/dist/app-extension.js +0 -148
  38. package/dist/app-extension.js.map +0 -1
  39. package/dist/app-utility-proxy.d.ts +0 -66
  40. package/dist/app-utility-proxy.d.ts.map +0 -1
  41. package/dist/app-utility-proxy.js +0 -233
  42. package/dist/app-utility-proxy.js.map +0 -1
  43. package/dist/descriptor.d.ts +0 -172
  44. package/dist/descriptor.d.ts.map +0 -1
  45. package/dist/descriptor.js +0 -174
  46. package/dist/descriptor.js.map +0 -1
  47. package/dist/generator/descriptor.d.ts +0 -107
  48. package/dist/generator/descriptor.d.ts.map +0 -1
  49. package/dist/generator/descriptor.js +0 -2
  50. package/dist/generator/descriptor.js.map +0 -1
  51. package/dist/generator/generator.d.ts +0 -120
  52. package/dist/generator/generator.d.ts.map +0 -1
  53. package/dist/generator/generator.js +0 -213
  54. package/dist/generator/generator.js.map +0 -1
  55. package/dist/generator/index.d.ts +0 -3
  56. package/dist/generator/index.d.ts.map +0 -1
  57. package/dist/generator/index.js +0 -2
  58. package/dist/generator/index.js.map +0 -1
  59. package/dist/gs1/character-set-proxy.d.ts +0 -10
  60. package/dist/gs1/character-set-proxy.d.ts.map +0 -1
  61. package/dist/gs1/character-set-proxy.js +0 -47
  62. package/dist/gs1/character-set-proxy.js.map +0 -1
  63. package/dist/gs1/check-proxy.d.ts +0 -11
  64. package/dist/gs1/check-proxy.d.ts.map +0 -1
  65. package/dist/gs1/check-proxy.js +0 -120
  66. package/dist/gs1/check-proxy.js.map +0 -1
  67. package/dist/gs1/identifier-proxy.d.ts +0 -136
  68. package/dist/gs1/identifier-proxy.d.ts.map +0 -1
  69. package/dist/gs1/identifier-proxy.js +0 -782
  70. package/dist/gs1/identifier-proxy.js.map +0 -1
  71. package/dist/gs1/index.d.ts +0 -4
  72. package/dist/gs1/index.d.ts.map +0 -1
  73. package/dist/gs1/index.js +0 -4
  74. package/dist/gs1/index.js.map +0 -1
  75. package/dist/index.d.ts.map +0 -1
  76. package/dist/lib-proxy.d.ts +0 -135
  77. package/dist/lib-proxy.d.ts.map +0 -1
  78. package/dist/lib-proxy.js +0 -235
  79. package/dist/lib-proxy.js.map +0 -1
  80. package/dist/locale/en/locale-strings.d.ts +0 -616
  81. package/dist/locale/en/locale-strings.d.ts.map +0 -1
  82. package/dist/locale/en/locale-strings.js +0 -616
  83. package/dist/locale/en/locale-strings.js.map +0 -1
  84. package/dist/locale/fr/locale-strings.d.ts +0 -616
  85. package/dist/locale/fr/locale-strings.d.ts.map +0 -1
  86. package/dist/locale/fr/locale-strings.js +0 -616
  87. package/dist/locale/fr/locale-strings.js.map +0 -1
  88. package/dist/locale/i18n.d.ts +0 -27
  89. package/dist/locale/i18n.d.ts.map +0 -1
  90. package/dist/locale/i18n.js +0 -39
  91. package/dist/locale/i18n.js.map +0 -1
  92. package/dist/types.d.ts.map +0 -1
  93. package/dist/types.js +0 -13
  94. package/dist/types.js.map +0 -1
  95. package/dist/utility/character-set-descriptor.d.ts +0 -6
  96. package/dist/utility/character-set-descriptor.d.ts.map +0 -1
  97. package/dist/utility/character-set-descriptor.js +0 -28
  98. package/dist/utility/character-set-descriptor.js.map +0 -1
  99. package/dist/utility/character-set-proxy.d.ts +0 -26
  100. package/dist/utility/character-set-proxy.d.ts.map +0 -1
  101. package/dist/utility/character-set-proxy.js +0 -167
  102. package/dist/utility/character-set-proxy.js.map +0 -1
  103. package/dist/utility/index.d.ts +0 -4
  104. package/dist/utility/index.d.ts.map +0 -1
  105. package/dist/utility/index.js +0 -4
  106. package/dist/utility/index.js.map +0 -1
  107. package/dist/utility/reg-exp-proxy.d.ts +0 -7
  108. package/dist/utility/reg-exp-proxy.d.ts.map +0 -1
  109. package/dist/utility/reg-exp-proxy.js +0 -61
  110. package/dist/utility/reg-exp-proxy.js.map +0 -1
  111. package/dist/utility/string-descriptor.d.ts +0 -4
  112. package/dist/utility/string-descriptor.d.ts.map +0 -1
  113. package/dist/utility/string-descriptor.js +0 -12
  114. package/dist/utility/string-descriptor.js.map +0 -1
  115. package/dist/utility/string-proxy.d.ts +0 -8
  116. package/dist/utility/string-proxy.d.ts.map +0 -1
  117. package/dist/utility/string-proxy.js +0 -12
  118. package/dist/utility/string-proxy.js.map +0 -1
  119. package/dist/utility/transformer-descriptor.d.ts +0 -6
  120. package/dist/utility/transformer-descriptor.d.ts.map +0 -1
  121. package/dist/utility/transformer-descriptor.js +0 -24
  122. package/dist/utility/transformer-descriptor.js.map +0 -1
  123. package/dist/utility/transformer-proxy.d.ts +0 -8
  124. package/dist/utility/transformer-proxy.d.ts.map +0 -1
  125. package/dist/utility/transformer-proxy.js +0 -74
  126. package/dist/utility/transformer-proxy.js.map +0 -1
  127. package/src/generator/logger.ts +0 -45
  128. package/src/types.ts +0 -144
@@ -0,0 +1,1747 @@
1
+ import { I18nEnvironment, TypedSyncFunction, TypedFunction, TypedAsyncFunction, Nullishable } from '@aidc-toolkit/core';
2
+ import { Resource, i18n } from 'i18next';
3
+ import { StringValidation, StringValidator, CharacterSetCreator, Exclusion } from '@aidc-toolkit/utility';
4
+ import { NumericIdentifierValidator, IdentifierValidation, IdentifierValidator, GTINValidator, GTINLevel, NonGTINNumericIdentifierValidator, SerializableNumericIdentifierValidator, NonNumericIdentifierValidation, NonNumericIdentifierValidator, PrefixType, NumericIdentifierCreator, IdentifierCreator, PrefixManager, GTINCreator, NonGTINNumericIdentifierCreator, SerializableNumericIdentifierCreator, NonNumericIdentifierCreator } from '@aidc-toolkit/gs1';
5
+
6
+ declare const _default: {
7
+ AppExtension: {
8
+ sequenceCountMustBeLessThanOrEqualTo: string;
9
+ };
10
+ Proxy: {
11
+ vSpillMustBeHorizontalArray: string;
12
+ hSpillMustBeVerticalArray: string;
13
+ matrixMustBeArray: string;
14
+ };
15
+ IdentifierCreatorProxy: {
16
+ prefixDefinitionMustBeOneDimensional: string;
17
+ prefixDefinitionMustHaveMaximumThreeElements: string;
18
+ prefixMustBeString: string;
19
+ prefixTypeMustBeNumber: string;
20
+ tweakFactorMustBeNumber: string;
21
+ };
22
+ Parameters: {
23
+ spillMatrix: {
24
+ name: string;
25
+ description: string;
26
+ };
27
+ spillMaximumWidth: {
28
+ name: string;
29
+ description: string;
30
+ };
31
+ spillMaximumHeight: {
32
+ name: string;
33
+ description: string;
34
+ };
35
+ domain: {
36
+ name: string;
37
+ description: string;
38
+ };
39
+ value: {
40
+ name: string;
41
+ description: string;
42
+ };
43
+ startValue: {
44
+ name: string;
45
+ description: string;
46
+ };
47
+ count: {
48
+ name: string;
49
+ description: string;
50
+ };
51
+ transformedValue: {
52
+ name: string;
53
+ description: string;
54
+ };
55
+ tweak: {
56
+ name: string;
57
+ description: string;
58
+ };
59
+ regExp: {
60
+ name: string;
61
+ description: string;
62
+ };
63
+ validateS: {
64
+ name: string;
65
+ description: string;
66
+ };
67
+ valueForS: {
68
+ name: string;
69
+ description: string;
70
+ };
71
+ errorMessage: {
72
+ name: string;
73
+ description: string;
74
+ };
75
+ exclusionNone: {
76
+ name: string;
77
+ description: string;
78
+ };
79
+ exclusionFirstZero: {
80
+ name: string;
81
+ description: string;
82
+ };
83
+ exclusionAllNumeric: {
84
+ name: string;
85
+ description: string;
86
+ };
87
+ exclusionAny: {
88
+ name: string;
89
+ description: string;
90
+ };
91
+ length: {
92
+ name: string;
93
+ description: string;
94
+ };
95
+ numericS: {
96
+ name: string;
97
+ description: string;
98
+ };
99
+ numericSFourOrFiveDigits: {
100
+ name: string;
101
+ description: string;
102
+ };
103
+ numericSWithCheckDigit: {
104
+ name: string;
105
+ description: string;
106
+ };
107
+ checkDigit: {
108
+ name: string;
109
+ description: string;
110
+ };
111
+ ai82S: {
112
+ name: string;
113
+ description: string;
114
+ };
115
+ ai82SWithCheckCharacterPair: {
116
+ name: string;
117
+ description: string;
118
+ };
119
+ validateIdentifier: {
120
+ name: string;
121
+ description: string;
122
+ };
123
+ zeroSuppressibleGTIN12: {
124
+ name: string;
125
+ description: string;
126
+ };
127
+ zeroSuppressedGTIN12: {
128
+ name: string;
129
+ description: string;
130
+ };
131
+ convertGTIN: {
132
+ name: string;
133
+ description: string;
134
+ };
135
+ normalizeGTIN: {
136
+ name: string;
137
+ description: string;
138
+ };
139
+ validateGTIN: {
140
+ name: string;
141
+ description: string;
142
+ };
143
+ validateGTIN14: {
144
+ name: string;
145
+ description: string;
146
+ };
147
+ baseIdentifier: {
148
+ name: string;
149
+ description: string;
150
+ };
151
+ indicatorDigit: {
152
+ name: string;
153
+ description: string;
154
+ };
155
+ gtinLevel: {
156
+ name: string;
157
+ description: string;
158
+ };
159
+ rcnFormat: {
160
+ name: string;
161
+ description: string;
162
+ };
163
+ rcn: {
164
+ name: string;
165
+ description: string;
166
+ };
167
+ prefix: {
168
+ name: string;
169
+ description: string;
170
+ };
171
+ prefixType: {
172
+ name: string;
173
+ description: string;
174
+ };
175
+ tweakFactor: {
176
+ name: string;
177
+ description: string;
178
+ };
179
+ prefixDefinitionAny: {
180
+ name: string;
181
+ description: string;
182
+ };
183
+ prefixDefinitionGS1UPC: {
184
+ name: string;
185
+ description: string;
186
+ };
187
+ sparse: {
188
+ name: string;
189
+ description: string;
190
+ };
191
+ rcnItemReference: {
192
+ name: string;
193
+ description: string;
194
+ };
195
+ rcnPriceOrWeight: {
196
+ name: string;
197
+ description: string;
198
+ };
199
+ serialComponent: {
200
+ name: string;
201
+ description: string;
202
+ };
203
+ reference: {
204
+ name: string;
205
+ description: string;
206
+ };
207
+ };
208
+ Functions: {
209
+ version: {
210
+ name: string;
211
+ description: string;
212
+ };
213
+ vSpill: {
214
+ name: string;
215
+ description: string;
216
+ };
217
+ hSpill: {
218
+ name: string;
219
+ description: string;
220
+ };
221
+ forwardTransform: {
222
+ name: string;
223
+ description: string;
224
+ };
225
+ forwardTransformSequence: {
226
+ name: string;
227
+ description: string;
228
+ };
229
+ reverseTransform: {
230
+ name: string;
231
+ description: string;
232
+ };
233
+ validateRegExp: {
234
+ name: string;
235
+ description: string;
236
+ };
237
+ isValidRegExp: {
238
+ name: string;
239
+ description: string;
240
+ };
241
+ validateNumeric: {
242
+ name: string;
243
+ description: string;
244
+ };
245
+ isValidNumeric: {
246
+ name: string;
247
+ description: string;
248
+ };
249
+ createNumeric: {
250
+ name: string;
251
+ description: string;
252
+ };
253
+ createNumericSequence: {
254
+ name: string;
255
+ description: string;
256
+ };
257
+ valueForNumeric: {
258
+ name: string;
259
+ description: string;
260
+ };
261
+ validateHexadecimal: {
262
+ name: string;
263
+ description: string;
264
+ };
265
+ isValidHexadecimal: {
266
+ name: string;
267
+ description: string;
268
+ };
269
+ createHexadecimal: {
270
+ name: string;
271
+ description: string;
272
+ };
273
+ createHexadecimalSequence: {
274
+ name: string;
275
+ description: string;
276
+ };
277
+ valueForHexadecimal: {
278
+ name: string;
279
+ description: string;
280
+ };
281
+ validateAlphabetic: {
282
+ name: string;
283
+ description: string;
284
+ };
285
+ isValidAlphabetic: {
286
+ name: string;
287
+ description: string;
288
+ };
289
+ createAlphabetic: {
290
+ name: string;
291
+ description: string;
292
+ };
293
+ createAlphabeticSequence: {
294
+ name: string;
295
+ description: string;
296
+ };
297
+ valueForAlphabetic: {
298
+ name: string;
299
+ description: string;
300
+ };
301
+ validateAlphanumeric: {
302
+ name: string;
303
+ description: string;
304
+ };
305
+ isValidAlphanumeric: {
306
+ name: string;
307
+ description: string;
308
+ };
309
+ createAlphanumeric: {
310
+ name: string;
311
+ description: string;
312
+ };
313
+ createAlphanumericSequence: {
314
+ name: string;
315
+ description: string;
316
+ };
317
+ valueForAlphanumeric: {
318
+ name: string;
319
+ description: string;
320
+ };
321
+ GS1: {
322
+ validateAI82: {
323
+ name: string;
324
+ description: string;
325
+ };
326
+ isValidAI82: {
327
+ name: string;
328
+ description: string;
329
+ };
330
+ createAI82: {
331
+ name: string;
332
+ description: string;
333
+ };
334
+ createAI82Sequence: {
335
+ name: string;
336
+ description: string;
337
+ };
338
+ valueForAI82: {
339
+ name: string;
340
+ description: string;
341
+ };
342
+ validateAI39: {
343
+ name: string;
344
+ description: string;
345
+ };
346
+ isValidAI39: {
347
+ name: string;
348
+ description: string;
349
+ };
350
+ createAI39: {
351
+ name: string;
352
+ description: string;
353
+ };
354
+ createAI39Sequence: {
355
+ name: string;
356
+ description: string;
357
+ };
358
+ valueForAI39: {
359
+ name: string;
360
+ description: string;
361
+ };
362
+ checkDigit: {
363
+ name: string;
364
+ description: string;
365
+ };
366
+ hasValidCheckDigit: {
367
+ name: string;
368
+ description: string;
369
+ };
370
+ priceOrWeightCheckDigit: {
371
+ name: string;
372
+ description: string;
373
+ };
374
+ isValidPriceOrWeightCheckDigit: {
375
+ name: string;
376
+ description: string;
377
+ };
378
+ checkCharacterPair: {
379
+ name: string;
380
+ description: string;
381
+ };
382
+ hasValidCheckCharacterPair: {
383
+ name: string;
384
+ description: string;
385
+ };
386
+ validateGTIN13: {
387
+ name: string;
388
+ description: string;
389
+ };
390
+ validateGTIN12: {
391
+ name: string;
392
+ description: string;
393
+ };
394
+ validateGTIN8: {
395
+ name: string;
396
+ description: string;
397
+ };
398
+ zeroSuppressGTIN12: {
399
+ name: string;
400
+ description: string;
401
+ };
402
+ zeroExpandGTIN12: {
403
+ name: string;
404
+ description: string;
405
+ };
406
+ convertToGTIN14: {
407
+ name: string;
408
+ description: string;
409
+ };
410
+ normalizeGTIN: {
411
+ name: string;
412
+ description: string;
413
+ };
414
+ validateGTIN: {
415
+ name: string;
416
+ description: string;
417
+ };
418
+ validateGTIN14: {
419
+ name: string;
420
+ description: string;
421
+ };
422
+ parseVariableMeasureRCN: {
423
+ name: string;
424
+ description: string;
425
+ };
426
+ validateGLN: {
427
+ name: string;
428
+ description: string;
429
+ };
430
+ validateSSCC: {
431
+ name: string;
432
+ description: string;
433
+ };
434
+ validateGRAI: {
435
+ name: string;
436
+ description: string;
437
+ };
438
+ validateGIAI: {
439
+ name: string;
440
+ description: string;
441
+ };
442
+ validateGSRN: {
443
+ name: string;
444
+ description: string;
445
+ };
446
+ validateGDTI: {
447
+ name: string;
448
+ description: string;
449
+ };
450
+ validateGINC: {
451
+ name: string;
452
+ description: string;
453
+ };
454
+ validateGSIN: {
455
+ name: string;
456
+ description: string;
457
+ };
458
+ validateGCN: {
459
+ name: string;
460
+ description: string;
461
+ };
462
+ validateCPID: {
463
+ name: string;
464
+ description: string;
465
+ };
466
+ validateGMN: {
467
+ name: string;
468
+ description: string;
469
+ };
470
+ definePrefix: {
471
+ name: string;
472
+ description: string;
473
+ };
474
+ createGTIN: {
475
+ name: string;
476
+ description: string;
477
+ };
478
+ createGTINSequence: {
479
+ name: string;
480
+ description: string;
481
+ };
482
+ createAllGTIN: {
483
+ name: string;
484
+ description: string;
485
+ };
486
+ createGTIN14: {
487
+ name: string;
488
+ description: string;
489
+ };
490
+ createVariableMeasureRCN: {
491
+ name: string;
492
+ description: string;
493
+ };
494
+ createGLN: {
495
+ name: string;
496
+ description: string;
497
+ };
498
+ createGLNSequence: {
499
+ name: string;
500
+ description: string;
501
+ };
502
+ createAllGLN: {
503
+ name: string;
504
+ description: string;
505
+ };
506
+ createSSCC: {
507
+ name: string;
508
+ description: string;
509
+ };
510
+ createSSCCSequence: {
511
+ name: string;
512
+ description: string;
513
+ };
514
+ createAllSSCC: {
515
+ name: string;
516
+ description: string;
517
+ };
518
+ createGRAI: {
519
+ name: string;
520
+ description: string;
521
+ };
522
+ createGRAISequence: {
523
+ name: string;
524
+ description: string;
525
+ };
526
+ createAllGRAI: {
527
+ name: string;
528
+ description: string;
529
+ };
530
+ createSerializedGRAI: {
531
+ name: string;
532
+ description: string;
533
+ };
534
+ concatenateGRAI: {
535
+ name: string;
536
+ description: string;
537
+ };
538
+ createGIAI: {
539
+ name: string;
540
+ description: string;
541
+ };
542
+ createGSRN: {
543
+ name: string;
544
+ description: string;
545
+ };
546
+ createGSRNSequence: {
547
+ name: string;
548
+ description: string;
549
+ };
550
+ createAllGSRN: {
551
+ name: string;
552
+ description: string;
553
+ };
554
+ createGDTI: {
555
+ name: string;
556
+ description: string;
557
+ };
558
+ createGDTISequence: {
559
+ name: string;
560
+ description: string;
561
+ };
562
+ createAllGDTI: {
563
+ name: string;
564
+ description: string;
565
+ };
566
+ createSerializedGDTI: {
567
+ name: string;
568
+ description: string;
569
+ };
570
+ concatenateGDTI: {
571
+ name: string;
572
+ description: string;
573
+ };
574
+ createGINC: {
575
+ name: string;
576
+ description: string;
577
+ };
578
+ createGSIN: {
579
+ name: string;
580
+ description: string;
581
+ };
582
+ createGSINSequence: {
583
+ name: string;
584
+ description: string;
585
+ };
586
+ createAllGSIN: {
587
+ name: string;
588
+ description: string;
589
+ };
590
+ createGCN: {
591
+ name: string;
592
+ description: string;
593
+ };
594
+ createGCNSequence: {
595
+ name: string;
596
+ description: string;
597
+ };
598
+ createAllGCN: {
599
+ name: string;
600
+ description: string;
601
+ };
602
+ createSerializedGCN: {
603
+ name: string;
604
+ description: string;
605
+ };
606
+ concatenateGCN: {
607
+ name: string;
608
+ description: string;
609
+ };
610
+ createCPID: {
611
+ name: string;
612
+ description: string;
613
+ };
614
+ createGMN: {
615
+ name: string;
616
+ description: string;
617
+ };
618
+ };
619
+ };
620
+ };
621
+
622
+ declare const appExtensionNS = "aidct_app_extension";
623
+ /**
624
+ * Locale resources type is extracted from the English locale resources object.
625
+ */
626
+ type AppExtensionLocaleResources = typeof _default;
627
+ /**
628
+ * App extension resources.
629
+ */
630
+ declare const appExtensionResources: Resource;
631
+ declare const i18nextAppExtension: i18n;
632
+ /**
633
+ * Initialize internationalization.
634
+ *
635
+ * @param environment
636
+ * Environment in which the application is running.
637
+ *
638
+ * @param debug
639
+ * Debug setting.
640
+ *
641
+ * @returns
642
+ * Void promise.
643
+ */
644
+ declare function i18nAppExtensionInit(environment: I18nEnvironment, debug?: boolean): Promise<void>;
645
+
646
+ /**
647
+ * Type that error type is expected to extend. If the application framework reports errors through the throw/catch
648
+ * mechanism, the error type is expected to extend {@link Error}. Otherwise, it may extend any object type.
649
+ *
650
+ * @template ThrowError
651
+ * If true, errors are reported through the throw/catch mechanism.
652
+ */
653
+ type ErrorExtends<ThrowError extends boolean> = ThrowError extends true ? Error : object;
654
+ /**
655
+ * Sheet.
656
+ */
657
+ interface Sheet {
658
+ /**
659
+ * Sheet name.
660
+ */
661
+ readonly name: string;
662
+ }
663
+ /**
664
+ * Single cell address.
665
+ */
666
+ interface Address {
667
+ /**
668
+ * Zero-indexed row.
669
+ */
670
+ readonly rowIndex: number;
671
+ /**
672
+ * Zero-indexed column.
673
+ */
674
+ readonly columnIndex: number;
675
+ }
676
+ /**
677
+ * Sheet address.
678
+ */
679
+ interface SheetAddress extends Sheet, Address {
680
+ }
681
+ /**
682
+ * Range of cells.
683
+ */
684
+ interface Range {
685
+ /**
686
+ * Start address, inclusive.
687
+ */
688
+ readonly startAddress: Address;
689
+ /**
690
+ * End address, exclusive.
691
+ */
692
+ readonly endAddress: Address;
693
+ }
694
+ /**
695
+ * Sheet range.
696
+ */
697
+ interface SheetRange extends Sheet, Range {
698
+ }
699
+ /**
700
+ * Matrix type; shorthand for defining a two-dimensional matrix (array of array) of a type.
701
+ *
702
+ * @template T
703
+ * Type.
704
+ */
705
+ type Matrix<T> = T[][];
706
+ /**
707
+ * Function result, possibly including an error result. If the application framework reports errors through the return
708
+ * value, the result is the union of the result type and the error type; otherwise, it's just the result type.
709
+ *
710
+ * @template TResult
711
+ * Result type.
712
+ *
713
+ * @template ThrowError
714
+ * If true, errors are reported through the throw/catch mechanism.
715
+ *
716
+ * @template TError
717
+ * Error type.
718
+ */
719
+ type ResultError<TResult, ThrowError extends boolean, TError extends ErrorExtends<ThrowError>> = ThrowError extends false ? TResult | TError : TResult;
720
+ /**
721
+ * Function result as matrix, possibly including an error result in each element. If the application framework reports
722
+ * errors through the return value, the individual element result is the union of the result type and the error type;
723
+ * otherwise, it's just the result type.
724
+ *
725
+ * @template TResult
726
+ * Result type.
727
+ *
728
+ * @template ThrowError
729
+ * If true, errors are reported through the throw/catch mechanism.
730
+ *
731
+ * @template TError
732
+ * Error type.
733
+ */
734
+ type MatrixResultError<TResult, ThrowError extends boolean, TError extends ErrorExtends<ThrowError>> = Matrix<ResultError<TResult, ThrowError, TError>>;
735
+
736
+ /**
737
+ * Application extension.
738
+ *
739
+ * @template TBigInt
740
+ * Type to which big integer is mapped.
741
+ *
742
+ * @template ThrowError
743
+ * If true, errors are reported through the throw/catch mechanism.
744
+ *
745
+ * @template TError
746
+ * Error type.
747
+ */
748
+ declare abstract class AppExtension<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> {
749
+ /**
750
+ * Application version.
751
+ */
752
+ private readonly _version;
753
+ /**
754
+ * Maximum sequence count supported by application.
755
+ */
756
+ private readonly _maximumSequenceCount;
757
+ /**
758
+ * If true, errors are reported through the throw/catch mechanism.
759
+ */
760
+ private readonly _throwError;
761
+ /**
762
+ * Maximum width supported by application.
763
+ */
764
+ private _maximumWidth?;
765
+ /**
766
+ * Maximum height supported by application.
767
+ */
768
+ private _maximumHeight?;
769
+ /**
770
+ * Constructor.
771
+ *
772
+ * @param version
773
+ * Application version.
774
+ *
775
+ * @param maximumSequenceCount
776
+ * Maximum sequence count supported by application.
777
+ *
778
+ * @param throwError
779
+ * If true, errors are reported through the throw/catch mechanism.
780
+ */
781
+ protected constructor(version: string, maximumSequenceCount: number, throwError: ThrowError);
782
+ /**
783
+ * Get the version.
784
+ *
785
+ * @returns
786
+ * Version.
787
+ */
788
+ get version(): string;
789
+ /**
790
+ * Determine if errors are reported through the throw/catch mechanism.
791
+ */
792
+ get throwError(): ThrowError;
793
+ /**
794
+ * Get the maximum width supported by the application.
795
+ *
796
+ * @returns
797
+ * Maximum width supported by the application.
798
+ */
799
+ maximumWidth(): Promise<number>;
800
+ /**
801
+ * Get the maximum width supported by the application.
802
+ *
803
+ * @returns
804
+ * Maximum width supported by the application.
805
+ */
806
+ protected abstract getMaximumWidth(): Promise<number>;
807
+ /**
808
+ * Get the maximum height supported by the application.
809
+ *
810
+ * @returns
811
+ * Maximum height supported by the application.
812
+ */
813
+ maximumHeight(): Promise<number>;
814
+ /**
815
+ * Get the maximum height supported by the application.
816
+ *
817
+ * @returns
818
+ * Maximum height supported by the application.
819
+ */
820
+ protected abstract getMaximumHeight(): Promise<number>;
821
+ /**
822
+ * Get the sheet address from an invocation context.
823
+ *
824
+ * @param invocationContext
825
+ * Invocation context.
826
+ *
827
+ * @returns
828
+ * Sheet address.
829
+ */
830
+ abstract getSheetAddress(invocationContext: TInvocationContext): Promise<SheetAddress>;
831
+ /**
832
+ * Get a parameter range from an invocation context.
833
+ *
834
+ * @param invocationContext
835
+ * Invocation context.
836
+ *
837
+ * @param parameterNumber
838
+ * Parameter number.
839
+ *
840
+ * @returns
841
+ * Sheet range or null if parameter is not a range.
842
+ */
843
+ abstract getParameterSheetRange(invocationContext: TInvocationContext, parameterNumber: number): Promise<SheetRange | null>;
844
+ /**
845
+ * Validate a sequence count against the maximum supported by application.
846
+ *
847
+ * @param sequenceCount
848
+ * Sequence count.
849
+ */
850
+ validateSequenceCount(sequenceCount: number): void;
851
+ /**
852
+ * Map big integer to another type if necessary.
853
+ *
854
+ * @param value
855
+ * Big integer value to map.
856
+ *
857
+ * @returns
858
+ * Mapped big integer value.
859
+ */
860
+ abstract mapBigInt(value: bigint): ResultError<TBigInt, ThrowError, TError>;
861
+ /**
862
+ * Map a range error (thrown by the library) to an application-specific error. If errors are reported through the
863
+ * throw/catch mechanism, the implementation may return the range error unmodified if that is supported.
864
+ *
865
+ * @param rangeError
866
+ */
867
+ abstract mapRangeError(rangeError: RangeError): TError;
868
+ /**
869
+ * Handle an error with a message; called when an exception occurs outside the control of the AIDC Toolkit library.
870
+ * Implementation must not return, most likely by throwing the message wrapped in an error type.
871
+ *
872
+ * @param message
873
+ * Message to include in the error.
874
+ */
875
+ abstract handleError(message: string): never;
876
+ /**
877
+ * Bind a synchronous method and wrap it in a try/catch for comprehensive error handling.
878
+ *
879
+ * @param thisArg
880
+ * The value to be passed as the `this` parameter to the method.
881
+ *
882
+ * @param method
883
+ * Method to call.
884
+ *
885
+ * @returns
886
+ * Function wrapped around the method.
887
+ */
888
+ bindSync<TMethod extends TypedSyncFunction<TMethod>>(thisArg: ThisParameterType<TMethod>, method: TMethod): TypedFunction<TMethod>;
889
+ /**
890
+ * Bind an asynchronous method and wrap it in a try/catch for comprehensive error handling.
891
+ *
892
+ * @param thisArg
893
+ * The value to be passed as the `this` parameter to the method.
894
+ *
895
+ * @param method
896
+ * Method to call.
897
+ *
898
+ * @returns
899
+ * Function wrapped around the method.
900
+ */
901
+ bindAsync<TMethod extends TypedAsyncFunction<TMethod>>(thisArg: ThisParameterType<TMethod>, method: TMethod): TypedAsyncFunction<TMethod>;
902
+ }
903
+
904
+ /**
905
+ * Library proxy.
906
+ *
907
+ * @template TBigInt
908
+ * Type to which big integer is mapped.
909
+ *
910
+ * @template ThrowError
911
+ * If true, errors are reported through the throw/catch mechanism.
912
+ *
913
+ * @template TError
914
+ * Error type.
915
+ */
916
+ declare abstract class LibProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> {
917
+ /**
918
+ * Application extension.
919
+ */
920
+ private readonly _appExtension;
921
+ /**
922
+ * Constructor.
923
+ *
924
+ * @param appExtension
925
+ * Application extension.
926
+ */
927
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
928
+ /**
929
+ * Get the application extension.
930
+ */
931
+ protected get appExtension(): AppExtension<ThrowError, TError, TInvocationContext, TBigInt>;
932
+ /**
933
+ * Map big integer to another type if necessary.
934
+ *
935
+ * @param value
936
+ * Big integer value to map.
937
+ *
938
+ * @returns
939
+ * Mapped big integer value.
940
+ */
941
+ mapBigInt(value: bigint): ResultError<TBigInt, ThrowError, TError>;
942
+ /**
943
+ * Handle an error thrown by a function call.
944
+ *
945
+ * @param e
946
+ * Error.
947
+ *
948
+ * @returns
949
+ * Error if errors are not thrown.
950
+ */
951
+ private handleError;
952
+ /**
953
+ * Do the callback for a simple return.
954
+ *
955
+ * @param value
956
+ * Value.
957
+ *
958
+ * @param callback
959
+ * Callback.
960
+ *
961
+ * @returns
962
+ * Callback result or error if errors are not thrown.
963
+ */
964
+ private doCallback;
965
+ /**
966
+ * Map a matrix of values using a callback.
967
+ *
968
+ * @param matrixValues
969
+ * Matrix of values.
970
+ *
971
+ * @param callback
972
+ * Callback.
973
+ *
974
+ * @returns
975
+ * Matrix of callback results and errors if errors are not thrown.
976
+ */
977
+ protected mapMatrix<TValue, TResult>(matrixValues: Matrix<TValue>, callback: (value: TValue) => TResult): MatrixResultError<TResult, ThrowError, TError>;
978
+ /**
979
+ * Do the callback for an array return.
980
+ *
981
+ * @param value
982
+ * Value.
983
+ *
984
+ * @param callback
985
+ * Callback.
986
+ *
987
+ * @returns
988
+ * Callback result or error as array if errors are not thrown.
989
+ */
990
+ private doArrayCallback;
991
+ /**
992
+ * Map a one-dimensional matrix of values using a callback.
993
+ *
994
+ * @param matrixValues
995
+ * Matrix of values.
996
+ *
997
+ * @param callback
998
+ * Callback.
999
+ *
1000
+ * @returns
1001
+ * Matrix of callback results and errors if errors are not thrown.
1002
+ */
1003
+ protected mapArray<TValue, TResult>(matrixValues: Matrix<TValue>, callback: (value: TValue) => TResult[]): MatrixResultError<TResult, ThrowError, TError>;
1004
+ /**
1005
+ * Map a matrix of values to a matrix of strings via a callback that either returns or throws a range error. If the
1006
+ * callback returns, the result for that element is the empty string; otherwise, if it's a range error, the result
1007
+ * for that element is the error message.
1008
+ *
1009
+ * @param matrixValues
1010
+ * Matrix to map.
1011
+ *
1012
+ * @param callback
1013
+ * Callback that either returns or throws an exception.
1014
+ *
1015
+ * @returns
1016
+ * Matrix of strings.
1017
+ *
1018
+ * @template TValue
1019
+ * Value type.
1020
+ */
1021
+ protected static mapMatrixRangeError<TValue>(matrixValues: Matrix<TValue>, callback: (value: TValue) => void): Matrix<string>;
1022
+ /**
1023
+ * Convert an iterable result of a callback to a matrix result. Although the natural approach would be to map to a
1024
+ * single-element array containing an array of *N* results (i.e., [[r0, r1, r2, ..., r*N*]]), this is rendered
1025
+ * visually as a single row. The more readable approach is as a single column, so the mapping is to an *N*-element
1026
+ * array of single-element result arrays (i.e., [[r0], [r1], [r2], ..., [r*N*]]).
1027
+ *
1028
+ * @param iterableResult
1029
+ * Iterable result.
1030
+ *
1031
+ * @returns
1032
+ * Matrix of callback results.
1033
+ */
1034
+ protected static matrixResult<TResult>(iterableResult: Iterable<TResult>): Matrix<TResult>;
1035
+ }
1036
+
1037
+ /**
1038
+ * Core descriptor.
1039
+ */
1040
+ interface Descriptor {
1041
+ /**
1042
+ * Name.
1043
+ */
1044
+ readonly name: string;
1045
+ }
1046
+ /**
1047
+ * Types supported by proxy methods.
1048
+ */
1049
+ declare const Types: {
1050
+ /**
1051
+ * String.
1052
+ */
1053
+ readonly String: 0;
1054
+ /**
1055
+ * Number or enumeration.
1056
+ */
1057
+ readonly Number: 1;
1058
+ /**
1059
+ * Boolean.
1060
+ */
1061
+ readonly Boolean: 2;
1062
+ /**
1063
+ * Any.
1064
+ */
1065
+ readonly Any: 3;
1066
+ };
1067
+ /**
1068
+ * Type.
1069
+ */
1070
+ type Type = typeof Types[keyof typeof Types];
1071
+ /**
1072
+ * Type descriptor.
1073
+ */
1074
+ interface TypeDescriptor extends Descriptor {
1075
+ /**
1076
+ * Type.
1077
+ */
1078
+ readonly type: Type;
1079
+ /**
1080
+ * True if type is a matrix (method accepts or returns a two-dimensional array).
1081
+ */
1082
+ readonly isMatrix: boolean;
1083
+ }
1084
+ /**
1085
+ * Base parameter descriptor; all attributes required.
1086
+ */
1087
+ interface BaseParameterDescriptor extends TypeDescriptor {
1088
+ /**
1089
+ * True if required.
1090
+ */
1091
+ readonly isRequired: boolean;
1092
+ }
1093
+ /**
1094
+ * Extends parameter descriptor; extends a parameter descriptor and overrides select attributes.
1095
+ */
1096
+ interface ExtendsParameterDescriptor extends Partial<BaseParameterDescriptor> {
1097
+ /**
1098
+ * Base parameter descriptor that this one extends.
1099
+ */
1100
+ readonly extendsDescriptor: ParameterDescriptor;
1101
+ /**
1102
+ * Sort order within base parameter descriptor if applicable.
1103
+ */
1104
+ readonly sortOrder?: number;
1105
+ }
1106
+ /**
1107
+ * Parameter descriptor, either base or extends.
1108
+ */
1109
+ type ParameterDescriptor = BaseParameterDescriptor | ExtendsParameterDescriptor;
1110
+ /**
1111
+ * Expand a parameter descriptor to its full form with all required attributes.
1112
+ *
1113
+ * @param parameterDescriptor
1114
+ * Parameter descriptor.
1115
+ *
1116
+ * @returns
1117
+ * Parameter descriptor in its full form.
1118
+ */
1119
+ declare function expandParameterDescriptor(parameterDescriptor: ParameterDescriptor): BaseParameterDescriptor;
1120
+ /**
1121
+ * Method descriptor.
1122
+ */
1123
+ interface MethodDescriptor extends TypeDescriptor {
1124
+ /**
1125
+ * If true, application-specific invocation context is required.
1126
+ */
1127
+ readonly requiresContext?: boolean;
1128
+ /**
1129
+ * If true, method infix is ignored.
1130
+ */
1131
+ readonly ignoreInfix?: boolean;
1132
+ /**
1133
+ * String before which method infix appears. If undefined, infix is appended to the method name. Ignored if
1134
+ * `ignoreInfix` is true.
1135
+ */
1136
+ readonly infixBefore?: string;
1137
+ /**
1138
+ * Parameter descriptors.
1139
+ */
1140
+ readonly parameterDescriptors: readonly ParameterDescriptor[];
1141
+ }
1142
+ /**
1143
+ * Class descriptor.
1144
+ */
1145
+ interface ClassDescriptor extends Descriptor {
1146
+ /**
1147
+ * Class namespace. If not provided, class is at the top level.
1148
+ */
1149
+ readonly namespace?: string;
1150
+ /**
1151
+ * Method infix. If undefined, method name is generated verbatim.
1152
+ */
1153
+ readonly methodInfix?: string;
1154
+ /**
1155
+ * Replace parameter descriptors for class hierarchies where enumeration parameter descriptors can change.
1156
+ */
1157
+ readonly replaceParameterDescriptors?: ReadonlyArray<{
1158
+ readonly name: string;
1159
+ readonly replacement: ParameterDescriptor;
1160
+ }>;
1161
+ /**
1162
+ * Method descriptors.
1163
+ */
1164
+ readonly methodDescriptors: readonly MethodDescriptor[];
1165
+ }
1166
+ /**
1167
+ * Proxy class type with fixed constructor.
1168
+ */
1169
+ type ProxyClassType<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, T extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt>> = (new (appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) => T) & typeof LibProxy;
1170
+ /**
1171
+ * Proxy parameter decorator.
1172
+ *
1173
+ * @param parameterDescriptor
1174
+ * Parameter descriptor.
1175
+ *
1176
+ * @returns
1177
+ * Function defining metadata for the parameter.
1178
+ */
1179
+ declare function ProxyParameter<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, T extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt>>(parameterDescriptor: ParameterDescriptor): ((target: T, propertyKey: string, parameterIndex: number) => void);
1180
+ /**
1181
+ * Proxy method decorator.
1182
+ *
1183
+ * @param methodDescriptor
1184
+ * Method descriptor.
1185
+ *
1186
+ * @returns
1187
+ * Function defining metadata for the method.
1188
+ */
1189
+ declare function ProxyMethod<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, T extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt>>(methodDescriptor: Omit<MethodDescriptor, "name" | "parameterDescriptors">): ((target: T, propertyKey: string, propertyDescriptor: PropertyDescriptor) => void);
1190
+ /**
1191
+ * Proxy class decorator.
1192
+ *
1193
+ * @param classDescriptor
1194
+ * Class descriptor.
1195
+ *
1196
+ * @returns
1197
+ * Function defining metadata for the class.
1198
+ */
1199
+ declare function ProxyClass<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, T extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt>>(classDescriptor?: Omit<ClassDescriptor, "name" | "methodDescriptors">): ((classType: ProxyClassType<ThrowError, TError, TInvocationContext, TBigInt, T>) => void);
1200
+ /**
1201
+ * Get class descriptors map.
1202
+ *
1203
+ * @returns
1204
+ * Class descriptors map.
1205
+ */
1206
+ declare function getClassDescriptorsMap(): ReadonlyMap<string, ClassDescriptor>;
1207
+
1208
+ /**
1209
+ * Application utilities.
1210
+ */
1211
+ declare class AppUtilityProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1212
+ /**
1213
+ * Get the version.
1214
+ *
1215
+ * @returns
1216
+ * Version.
1217
+ */
1218
+ version(): string;
1219
+ /**
1220
+ * Provide default values for maximum width and height if required.
1221
+ *
1222
+ * @param maximumDimensions
1223
+ * Maximum dimensions provided to function.
1224
+ *
1225
+ * @param invocationContext
1226
+ * Invocation context.
1227
+ *
1228
+ * @returns
1229
+ * Array of maximum width and maximum height.
1230
+ */
1231
+ private defaultMaximums;
1232
+ /**
1233
+ * Spill a horizontal matrix vertically to fit within a maximum width and height.
1234
+ *
1235
+ * @param hMatrixValues
1236
+ * Horizontal matrix values. Matrix has length 1 and contains a single array with the values.
1237
+ *
1238
+ * @param maximumWidth
1239
+ * Maximum width.
1240
+ *
1241
+ * @param maximumHeight
1242
+ * Maximum height.
1243
+ *
1244
+ * @param invocationContext
1245
+ * Invocation context.
1246
+ *
1247
+ * @returns
1248
+ * Matrix spilled within maximum width and maximum height.
1249
+ */
1250
+ vSpill(hMatrixValues: Matrix<unknown>, maximumWidth: Nullishable<number>, maximumHeight: Nullishable<number>, invocationContext: Nullishable<TInvocationContext>): Promise<Matrix<unknown>>;
1251
+ /**
1252
+ * Spill a vertical matrix horizontally to fit within a maximum width and height.
1253
+ *
1254
+ * @param vMatrixValues
1255
+ * Vertical matrix values. Matrix contains arrays of length 1 with the values.
1256
+ *
1257
+ * @param maximumHeight
1258
+ * Maximum height.
1259
+ *
1260
+ * @param maximumWidth
1261
+ * Maximum width.
1262
+ *
1263
+ * @param invocationContext
1264
+ * Invocation context.
1265
+ *
1266
+ * @returns
1267
+ * Matrix spilled within maximum height and maximum width.
1268
+ */
1269
+ hSpill(vMatrixValues: Matrix<unknown>, maximumHeight: Nullishable<number>, maximumWidth: Nullishable<number>, invocationContext: Nullishable<TInvocationContext>): Promise<Matrix<unknown>>;
1270
+ }
1271
+
1272
+ declare class TransformerProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1273
+ forward(domain: number | bigint, matrixValues: Matrix<number | bigint>, tweak: Nullishable<number | bigint>): MatrixResultError<ResultError<TBigInt, ThrowError, TError>, ThrowError, TError>;
1274
+ forwardSequence(domain: number | bigint, startValue: number, count: number, tweak: Nullishable<number | bigint>): Matrix<ResultError<TBigInt, ThrowError, TError>>;
1275
+ reverse(domain: number | bigint, matrixTransformedValues: Matrix<number | bigint>, tweak: Nullishable<number | bigint>): MatrixResultError<ResultError<TBigInt, ThrowError, TError>, ThrowError, TError>;
1276
+ }
1277
+
1278
+ declare abstract class StringProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1279
+ protected validateString<TStringValidation extends StringValidation>(validator: StringValidator<TStringValidation>, matrixSs: Matrix<string>, validation?: TStringValidation): Matrix<string>;
1280
+ protected isValidString(matrixValidateResults: MatrixResultError<string, ThrowError, TError>): MatrixResultError<boolean, ThrowError, TError>;
1281
+ }
1282
+
1283
+ declare class RegExpProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends StringProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1284
+ validate(regExp: string, matrixSs: Matrix<string>, errorMessage: Nullishable<string>): MatrixResultError<string, ThrowError, TError>;
1285
+ isValid(regExp: string, matrixSs: Matrix<string>): MatrixResultError<boolean, ThrowError, TError>;
1286
+ }
1287
+
1288
+ declare abstract class CharacterSetProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends StringProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1289
+ private readonly _characterSetCreator;
1290
+ protected constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, characterSetCreator: CharacterSetCreator);
1291
+ validate(matrixSs: Matrix<string>, exclusion: Nullishable<Exclusion>): MatrixResultError<string, ThrowError, TError>;
1292
+ isValid(matrixSs: Matrix<string>, exclusion: Nullishable<Exclusion>): MatrixResultError<boolean, ThrowError, TError>;
1293
+ create(length: number, matrixValues: Matrix<number | bigint>, exclusion: Nullishable<Exclusion>, tweak: Nullishable<number | bigint>): MatrixResultError<string, ThrowError, TError>;
1294
+ createSequence(length: number, startValue: number, count: number, exclusion: Nullishable<Exclusion>, tweak: Nullishable<number | bigint>): Matrix<string>;
1295
+ valueFor(matrixSs: Matrix<string>, exclusion: Nullishable<Exclusion>, tweak: Nullishable<number | bigint>): MatrixResultError<ResultError<TBigInt, ThrowError, TError>, ThrowError, TError>;
1296
+ }
1297
+ declare class NumericProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends CharacterSetProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1298
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1299
+ }
1300
+ declare class HexadecimalProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends CharacterSetProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1301
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1302
+ }
1303
+ declare class AlphabeticProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends CharacterSetProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1304
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1305
+ }
1306
+ declare class AlphanumericProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends CharacterSetProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1307
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1308
+ }
1309
+
1310
+ declare class AI82Proxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends CharacterSetProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1311
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1312
+ }
1313
+ declare class AI39Proxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends CharacterSetProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1314
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1315
+ }
1316
+
1317
+ declare class CheckProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1318
+ checkDigit(matrixSs: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
1319
+ hasValidCheckDigit(matrixSs: Matrix<string>): MatrixResultError<boolean, ThrowError, TError>;
1320
+ priceOrWeightCheckDigit(matrixSs: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
1321
+ isValidPriceOrWeightCheckDigit(s: string, checkDigit: string): ResultError<boolean, ThrowError, TError>;
1322
+ checkCharacterPair(matrixSs: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
1323
+ hasValidCheckCharacterPair(matrixSs: Matrix<string>): MatrixResultError<boolean, ThrowError, TError>;
1324
+ }
1325
+
1326
+ declare abstract class IdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TIdentifierValidation extends IdentifierValidation, TIdentifierValidator extends IdentifierValidator<TIdentifierValidation>> extends StringProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1327
+ private readonly _validator;
1328
+ protected constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, validator: TIdentifierValidator);
1329
+ protected get validator(): TIdentifierValidator;
1330
+ }
1331
+ declare abstract class NumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNumericIdentifierValidator extends NumericIdentifierValidator> extends IdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, IdentifierValidation, TNumericIdentifierValidator> {
1332
+ validate(matrixIdentifiers: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
1333
+ }
1334
+ declare abstract class GTINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, GTINValidator> {
1335
+ }
1336
+ declare abstract class NonGTINNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNonGTINNumericIdentifierValidator extends NonGTINNumericIdentifierValidator> extends NumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, TNonGTINNumericIdentifierValidator> {
1337
+ }
1338
+ declare abstract class SerializableNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, SerializableNumericIdentifierValidator> {
1339
+ }
1340
+ declare abstract class NonNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends IdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonNumericIdentifierValidation, NonNumericIdentifierValidator> {
1341
+ validate(matrixIdentifiers: Matrix<string>, exclusion: Nullishable<NonNumericIdentifierValidation["exclusion"]>): MatrixResultError<string, ThrowError, TError>;
1342
+ }
1343
+ declare class GTIN13ValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends GTINValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1344
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1345
+ }
1346
+ declare class GTIN12ValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends GTINValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1347
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1348
+ }
1349
+ declare class GTIN8ValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends GTINValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1350
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1351
+ }
1352
+ declare class GTINValidatorStaticProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1353
+ zeroSuppressGTIN12(matrixGTIN12s: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
1354
+ zeroExpandGTIN12(matrixZeroSuppressedGTIN12s: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
1355
+ convertToGTIN14(indicatorDigit: string, matrixGTINs: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
1356
+ normalizeGTIN(matrixGTINs: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
1357
+ validateGTIN(matrixGTINs: Matrix<string>, gtinLevel: Nullishable<GTINLevel>): Matrix<string>;
1358
+ validateGTIN14(matrixGTIN14s: Matrix<string>): Matrix<string>;
1359
+ parseVariableMeasureRCN(format: string, matrixRCNs: Matrix<string>): MatrixResultError<number, ThrowError, TError>;
1360
+ }
1361
+ declare class GLNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierValidator> {
1362
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1363
+ }
1364
+ declare class SSCCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierValidator> {
1365
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1366
+ }
1367
+ declare class GRAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1368
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1369
+ }
1370
+ declare class GIAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1371
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1372
+ }
1373
+ declare class GSRNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierValidator> {
1374
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1375
+ }
1376
+ declare class GDTIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1377
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1378
+ }
1379
+ declare class GINCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1380
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1381
+ }
1382
+ declare class GSINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierValidator> {
1383
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1384
+ }
1385
+ declare class GCNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1386
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1387
+ }
1388
+ declare class CPIDValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1389
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1390
+ }
1391
+ declare class GMNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1392
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1393
+ }
1394
+ declare class PrefixManagerProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1395
+ definePrefix(prefix: string, prefixType: Nullishable<PrefixType>, tweakFactor: Nullishable<number>): Matrix<unknown>;
1396
+ }
1397
+ declare abstract class IdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TIdentifierCreator extends IdentifierCreator> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1398
+ private static readonly PREFIX_TYPES;
1399
+ private readonly _getCreator;
1400
+ protected constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, getCreator: (prefixManager: PrefixManager) => TIdentifierCreator);
1401
+ protected getCreator(prefixDefinition: Matrix<unknown>): TIdentifierCreator;
1402
+ }
1403
+ declare abstract class NumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNumericIdentifierCreator extends NumericIdentifierCreator> extends IdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, TNumericIdentifierCreator> {
1404
+ create(prefixDefinition: Matrix<unknown>, matrixValues: Matrix<number | bigint>, sparse: Nullishable<boolean>): MatrixResultError<string, ThrowError, TError>;
1405
+ createSequence(prefixDefinition: Matrix<unknown>, startValue: number, count: number, sparse: Nullishable<boolean>): Matrix<string>;
1406
+ createAll(prefixDefinition: Matrix<unknown>): Matrix<string>;
1407
+ }
1408
+ declare abstract class NonGTINNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNonGTINNumericIdentifierCreator extends NonGTINNumericIdentifierCreator> extends NumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, TNonGTINNumericIdentifierCreator> {
1409
+ }
1410
+ declare abstract class SerializableNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, SerializableNumericIdentifierCreator> {
1411
+ createSerialized(prefixDefinition: Matrix<unknown>, value: number, matrixSerialComponents: Matrix<string>, sparse: Nullishable<boolean>): MatrixResultError<string, ThrowError, TError>;
1412
+ concatenate(baseIdentifier: string, matrixSerialComponents: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
1413
+ }
1414
+ declare abstract class NonNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends IdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonNumericIdentifierCreator> {
1415
+ create(prefixDefinition: Matrix<unknown>, matrixReferences: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
1416
+ }
1417
+ declare class GTINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, GTINCreator> {
1418
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1419
+ createGTIN14(indicatorDigit: string, prefixDefinition: Matrix<unknown>, matrixValues: Matrix<number | bigint>, sparse: Nullishable<boolean>): MatrixResultError<string, ThrowError, TError>;
1420
+ createVariableMeasureRCN(format: string, itemReference: number, matrixPricesOrWeights: Matrix<number>): MatrixResultError<string, ThrowError, TError>;
1421
+ }
1422
+ declare class GLNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierCreator> {
1423
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1424
+ }
1425
+ declare class SSCCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierCreator> {
1426
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1427
+ }
1428
+ declare class GRAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1429
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1430
+ }
1431
+ declare class GIAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1432
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1433
+ }
1434
+ declare class GSRNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierCreator> {
1435
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1436
+ }
1437
+ declare class GDTICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1438
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1439
+ }
1440
+ declare class GINCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1441
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1442
+ }
1443
+ declare class GSINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierCreator> {
1444
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1445
+ }
1446
+ declare class GCNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1447
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1448
+ }
1449
+ declare class CPIDCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1450
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1451
+ }
1452
+ declare class GMNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1453
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1454
+ }
1455
+
1456
+ type index_AI39Proxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = AI39Proxy<ThrowError, TError, TInvocationContext, TBigInt>;
1457
+ declare const index_AI39Proxy: typeof AI39Proxy;
1458
+ type index_AI82Proxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = AI82Proxy<ThrowError, TError, TInvocationContext, TBigInt>;
1459
+ declare const index_AI82Proxy: typeof AI82Proxy;
1460
+ type index_CPIDCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = CPIDCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1461
+ declare const index_CPIDCreatorProxy: typeof CPIDCreatorProxy;
1462
+ type index_CPIDValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = CPIDValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1463
+ declare const index_CPIDValidatorProxy: typeof CPIDValidatorProxy;
1464
+ type index_CheckProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = CheckProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1465
+ declare const index_CheckProxy: typeof CheckProxy;
1466
+ type index_GCNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GCNCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1467
+ declare const index_GCNCreatorProxy: typeof GCNCreatorProxy;
1468
+ type index_GCNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GCNValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1469
+ declare const index_GCNValidatorProxy: typeof GCNValidatorProxy;
1470
+ type index_GDTICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GDTICreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1471
+ declare const index_GDTICreatorProxy: typeof GDTICreatorProxy;
1472
+ type index_GDTIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GDTIValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1473
+ declare const index_GDTIValidatorProxy: typeof GDTIValidatorProxy;
1474
+ type index_GIAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GIAICreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1475
+ declare const index_GIAICreatorProxy: typeof GIAICreatorProxy;
1476
+ type index_GIAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GIAIValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1477
+ declare const index_GIAIValidatorProxy: typeof GIAIValidatorProxy;
1478
+ type index_GINCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GINCCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1479
+ declare const index_GINCCreatorProxy: typeof GINCCreatorProxy;
1480
+ type index_GINCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GINCValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1481
+ declare const index_GINCValidatorProxy: typeof GINCValidatorProxy;
1482
+ type index_GLNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GLNCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1483
+ declare const index_GLNCreatorProxy: typeof GLNCreatorProxy;
1484
+ type index_GLNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GLNValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1485
+ declare const index_GLNValidatorProxy: typeof GLNValidatorProxy;
1486
+ type index_GMNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GMNCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1487
+ declare const index_GMNCreatorProxy: typeof GMNCreatorProxy;
1488
+ type index_GMNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GMNValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1489
+ declare const index_GMNValidatorProxy: typeof GMNValidatorProxy;
1490
+ type index_GRAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GRAICreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1491
+ declare const index_GRAICreatorProxy: typeof GRAICreatorProxy;
1492
+ type index_GRAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GRAIValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1493
+ declare const index_GRAIValidatorProxy: typeof GRAIValidatorProxy;
1494
+ type index_GSINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GSINCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1495
+ declare const index_GSINCreatorProxy: typeof GSINCreatorProxy;
1496
+ type index_GSINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GSINValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1497
+ declare const index_GSINValidatorProxy: typeof GSINValidatorProxy;
1498
+ type index_GSRNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GSRNCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1499
+ declare const index_GSRNCreatorProxy: typeof GSRNCreatorProxy;
1500
+ type index_GSRNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GSRNValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1501
+ declare const index_GSRNValidatorProxy: typeof GSRNValidatorProxy;
1502
+ type index_GTIN12ValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GTIN12ValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1503
+ declare const index_GTIN12ValidatorProxy: typeof GTIN12ValidatorProxy;
1504
+ type index_GTIN13ValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GTIN13ValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1505
+ declare const index_GTIN13ValidatorProxy: typeof GTIN13ValidatorProxy;
1506
+ type index_GTIN8ValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GTIN8ValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1507
+ declare const index_GTIN8ValidatorProxy: typeof GTIN8ValidatorProxy;
1508
+ type index_GTINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GTINCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1509
+ declare const index_GTINCreatorProxy: typeof GTINCreatorProxy;
1510
+ type index_GTINValidatorStaticProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GTINValidatorStaticProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1511
+ declare const index_GTINValidatorStaticProxy: typeof GTINValidatorStaticProxy;
1512
+ type index_PrefixManagerProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = PrefixManagerProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1513
+ declare const index_PrefixManagerProxy: typeof PrefixManagerProxy;
1514
+ type index_SSCCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = SSCCCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1515
+ declare const index_SSCCCreatorProxy: typeof SSCCCreatorProxy;
1516
+ type index_SSCCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = SSCCValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
1517
+ declare const index_SSCCValidatorProxy: typeof SSCCValidatorProxy;
1518
+ declare namespace index {
1519
+ export { index_AI39Proxy as AI39Proxy, index_AI82Proxy as AI82Proxy, index_CPIDCreatorProxy as CPIDCreatorProxy, index_CPIDValidatorProxy as CPIDValidatorProxy, index_CheckProxy as CheckProxy, index_GCNCreatorProxy as GCNCreatorProxy, index_GCNValidatorProxy as GCNValidatorProxy, index_GDTICreatorProxy as GDTICreatorProxy, index_GDTIValidatorProxy as GDTIValidatorProxy, index_GIAICreatorProxy as GIAICreatorProxy, index_GIAIValidatorProxy as GIAIValidatorProxy, index_GINCCreatorProxy as GINCCreatorProxy, index_GINCValidatorProxy as GINCValidatorProxy, index_GLNCreatorProxy as GLNCreatorProxy, index_GLNValidatorProxy as GLNValidatorProxy, index_GMNCreatorProxy as GMNCreatorProxy, index_GMNValidatorProxy as GMNValidatorProxy, index_GRAICreatorProxy as GRAICreatorProxy, index_GRAIValidatorProxy as GRAIValidatorProxy, index_GSINCreatorProxy as GSINCreatorProxy, index_GSINValidatorProxy as GSINValidatorProxy, index_GSRNCreatorProxy as GSRNCreatorProxy, index_GSRNValidatorProxy as GSRNValidatorProxy, index_GTIN12ValidatorProxy as GTIN12ValidatorProxy, index_GTIN13ValidatorProxy as GTIN13ValidatorProxy, index_GTIN8ValidatorProxy as GTIN8ValidatorProxy, index_GTINCreatorProxy as GTINCreatorProxy, index_GTINValidatorStaticProxy as GTINValidatorStaticProxy, index_PrefixManagerProxy as PrefixManagerProxy, index_SSCCCreatorProxy as SSCCCreatorProxy, index_SSCCValidatorProxy as SSCCValidatorProxy };
1520
+ }
1521
+
1522
+ /**
1523
+ * Localization.
1524
+ */
1525
+ interface Localization {
1526
+ /**
1527
+ * Name.
1528
+ */
1529
+ name: string;
1530
+ /**
1531
+ * Description.
1532
+ */
1533
+ description: string;
1534
+ }
1535
+ /**
1536
+ * Function localization.
1537
+ */
1538
+ interface FunctionLocalization extends Localization {
1539
+ /**
1540
+ * Documentation URL.
1541
+ */
1542
+ documentationURL: string;
1543
+ }
1544
+ /**
1545
+ * Parameter localization.
1546
+ */
1547
+ interface ParameterLocalization extends Localization {
1548
+ }
1549
+ /**
1550
+ * Localization descriptor.
1551
+ */
1552
+ interface LocalizationDescriptor<T extends Localization> {
1553
+ /**
1554
+ * Localizations map by locale.
1555
+ */
1556
+ readonly localizationsMap: ReadonlyMap<string, T>;
1557
+ }
1558
+ /**
1559
+ * Proxy namespace descriptor.
1560
+ */
1561
+ interface ProxyNamespaceDescriptor {
1562
+ /**
1563
+ * Namespace if any.
1564
+ */
1565
+ readonly namespace: string | undefined;
1566
+ }
1567
+ /**
1568
+ * Proxy class descriptor.
1569
+ */
1570
+ interface ProxyClassDescriptor extends ProxyNamespaceDescriptor {
1571
+ /**
1572
+ * Class name.
1573
+ */
1574
+ readonly className: string;
1575
+ /**
1576
+ * Namespace-qualified class name.
1577
+ */
1578
+ readonly namespaceClassName: string;
1579
+ /**
1580
+ * Class descriptor.
1581
+ */
1582
+ readonly classDescriptor: ClassDescriptor;
1583
+ }
1584
+ /**
1585
+ * Proxy object descriptor.
1586
+ */
1587
+ interface ProxyObjectDescriptor extends ProxyClassDescriptor {
1588
+ /**
1589
+ * Object name.
1590
+ */
1591
+ readonly objectName: string;
1592
+ }
1593
+ /**
1594
+ * Proxy parameter descriptor.
1595
+ */
1596
+ interface ProxyParameterDescriptor extends ProxyNamespaceDescriptor, LocalizationDescriptor<ParameterLocalization> {
1597
+ /**
1598
+ * Function name.
1599
+ */
1600
+ readonly parameterName: string;
1601
+ /**
1602
+ * Parameter descriptor.
1603
+ */
1604
+ readonly parameterDescriptor: BaseParameterDescriptor;
1605
+ }
1606
+ /**
1607
+ * Proxy function descriptor.
1608
+ */
1609
+ interface ProxyFunctionDescriptor extends ProxyObjectDescriptor, LocalizationDescriptor<FunctionLocalization> {
1610
+ /**
1611
+ * Function name.
1612
+ */
1613
+ readonly functionName: string;
1614
+ /**
1615
+ * Namespace-qualified function name.
1616
+ */
1617
+ readonly namespaceFunctionName: string;
1618
+ /**
1619
+ * Proxy parameter descriptors
1620
+ */
1621
+ readonly proxyParameterDescriptors: ProxyParameterDescriptor[];
1622
+ /**
1623
+ * Method descriptor.
1624
+ */
1625
+ readonly methodDescriptor: MethodDescriptor;
1626
+ }
1627
+
1628
+ /**
1629
+ * Abstract generator.
1630
+ */
1631
+ declare abstract class Generator {
1632
+ /**
1633
+ * Documentation base URL.
1634
+ */
1635
+ private static readonly DOCUMENTATION_BASE_URL;
1636
+ /**
1637
+ * Documentation path, optionally preceded by locale.
1638
+ */
1639
+ private static readonly DOCUMENTATION_PATH;
1640
+ /**
1641
+ * Locales.
1642
+ */
1643
+ private readonly _locales;
1644
+ /**
1645
+ * Default locale.
1646
+ */
1647
+ private readonly _defaultLocale;
1648
+ /**
1649
+ * Map of function localizations maps by namespace function name.
1650
+ */
1651
+ private readonly _functionLocalizationsMapsMap;
1652
+ /**
1653
+ * Map of parameter localizations maps by namespace function parameter name.
1654
+ */
1655
+ private readonly _parameterLocalizationsMapsMap;
1656
+ /**
1657
+ *
1658
+ */
1659
+ /**
1660
+ * Constructor.
1661
+ *
1662
+ * @param includeLocalizations
1663
+ * Include localizations if true.
1664
+ */
1665
+ constructor(includeLocalizations?: boolean);
1666
+ /**
1667
+ * Get the locales.
1668
+ */
1669
+ protected get locales(): readonly string[];
1670
+ /**
1671
+ * Get the default locale.
1672
+ */
1673
+ protected get defaultLocale(): string;
1674
+ /**
1675
+ * Get function localization.
1676
+ *
1677
+ * @param namespaceFunctionName
1678
+ * Namespace function name.
1679
+ *
1680
+ * @param locale
1681
+ * Locale.
1682
+ *
1683
+ * @returns
1684
+ * Function localization.
1685
+ */
1686
+ protected getFunctionLocalization(namespaceFunctionName: string, locale: string): FunctionLocalization;
1687
+ /**
1688
+ * Get parameter localization.
1689
+ *
1690
+ * @param namespaceFunctionName
1691
+ * Namespace function name.
1692
+ *
1693
+ * @param parameterName
1694
+ * Parameter name.
1695
+ *
1696
+ * @param locale
1697
+ * Locale.
1698
+ *
1699
+ * @returns
1700
+ * Function localization.
1701
+ */
1702
+ protected getParameterLocalization(namespaceFunctionName: string, parameterName: string, locale: string): ParameterLocalization;
1703
+ /**
1704
+ * Initialize the generation of the output.
1705
+ */
1706
+ protected abstract initialize(): void;
1707
+ /**
1708
+ * Create a proxy object.
1709
+ *
1710
+ * @param proxyObjectDescriptor
1711
+ * Proxy object descriptor.
1712
+ */
1713
+ protected abstract createProxyObject(proxyObjectDescriptor: ProxyObjectDescriptor): void;
1714
+ /**
1715
+ * Create a proxy function.
1716
+ *
1717
+ * @param proxyFunctionDescriptor
1718
+ * Proxy function descriptor.
1719
+ */
1720
+ protected abstract createProxyFunction(proxyFunctionDescriptor: ProxyFunctionDescriptor): void;
1721
+ /**
1722
+ * Finalize the generation of the output.
1723
+ *
1724
+ * @param success
1725
+ * True if successful.
1726
+ */
1727
+ protected abstract finalize(success: boolean): void | Promise<void>;
1728
+ /**
1729
+ * Generate localizations map.
1730
+ *
1731
+ * @param localizedKeyPrefix
1732
+ * Localized key prefix.
1733
+ *
1734
+ * @param localizationCallback
1735
+ * Callback to finalize localization.
1736
+ *
1737
+ * @returns
1738
+ * Localization map.
1739
+ */
1740
+ private generateLocalizationsMap;
1741
+ /**
1742
+ * Generate by processing individual imports.
1743
+ */
1744
+ generate(): Promise<void>;
1745
+ }
1746
+
1747
+ export { type Address, AlphabeticProxy, AlphanumericProxy, AppExtension, type AppExtensionLocaleResources, AppUtilityProxy, type BaseParameterDescriptor, CharacterSetProxy, type ClassDescriptor, type ErrorExtends, type ExtendsParameterDescriptor, type FunctionLocalization, index as GS1, Generator, HexadecimalProxy, LibProxy, type Localization, type LocalizationDescriptor, type Matrix, type MatrixResultError, type MethodDescriptor, NumericProxy, type ParameterDescriptor, type ParameterLocalization, ProxyClass, type ProxyClassDescriptor, type ProxyFunctionDescriptor, ProxyMethod, type ProxyNamespaceDescriptor, type ProxyObjectDescriptor, ProxyParameter, type ProxyParameterDescriptor, type Range, RegExpProxy, type ResultError, type Sheet, type SheetAddress, type SheetRange, TransformerProxy, type Type, Types, appExtensionNS, appExtensionResources, expandParameterDescriptor, getClassDescriptorsMap, i18nAppExtensionInit, i18nextAppExtension };