pivotkit-react 0.0.0-stage → 0.1.0

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 (71) hide show
  1. package/CHANGELOG.md +300 -0
  2. package/LICENSE +21 -0
  3. package/README.md +327 -2
  4. package/dist/chunks/chunk-C32TYSHG.js +441 -0
  5. package/dist/chunks/chunk-ILHFIV2P.js +784 -0
  6. package/dist/chunks/chunk-KKJO36W5.js +1833 -0
  7. package/dist/chunks/chunk-XYP47DJ3.js +123 -0
  8. package/dist/echarts.js +262 -0
  9. package/dist/index.js +3390 -0
  10. package/dist/labels.js +12 -0
  11. package/dist/menus.js +1085 -0
  12. package/dist/styles.css +2447 -0
  13. package/package.json +70 -4
  14. package/types/PivotReport.d.ts +20 -0
  15. package/types/all-labels.d.ts +5 -0
  16. package/types/chart-decorate.d.ts +16 -0
  17. package/types/chart-options.d.ts +23 -0
  18. package/types/chart-summary.d.ts +12 -0
  19. package/types/chart-tooltip.d.ts +38 -0
  20. package/types/chart-types.d.ts +152 -0
  21. package/types/chart.d.ts +39 -0
  22. package/types/chip-menus.d.ts +32 -0
  23. package/types/clear-input.d.ts +20 -0
  24. package/types/dnd-moves.d.ts +45 -0
  25. package/types/dnd.d.ts +101 -0
  26. package/types/dom.d.ts +52 -0
  27. package/types/drill-export.d.ts +42 -0
  28. package/types/drill-panel.d.ts +39 -0
  29. package/types/drill.d.ts +62 -0
  30. package/types/echarts.d.ts +4 -0
  31. package/types/export-run.d.ts +59 -0
  32. package/types/field-info.d.ts +34 -0
  33. package/types/fields.d.ts +32 -0
  34. package/types/files.d.ts +27 -0
  35. package/types/filter.d.ts +21 -0
  36. package/types/icons.d.ts +76 -0
  37. package/types/index.d.ts +536 -0
  38. package/types/info.d.ts +34 -0
  39. package/types/iso.d.ts +2 -0
  40. package/types/labels.d.ts +721 -0
  41. package/types/lazy-menus.d.ts +16 -0
  42. package/types/menu-labels.d.ts +255 -0
  43. package/types/menus.d.ts +7 -0
  44. package/types/names.d.ts +80 -0
  45. package/types/numbers.d.ts +13 -0
  46. package/types/overflow.d.ts +59 -0
  47. package/types/place.d.ts +43 -0
  48. package/types/popover.d.ts +89 -0
  49. package/types/rove.d.ts +20 -0
  50. package/types/section.d.ts +42 -0
  51. package/types/share.d.ts +123 -0
  52. package/types/skeleton.d.ts +9 -0
  53. package/types/storage.d.ts +24 -0
  54. package/types/table.d.ts +23 -0
  55. package/types/templates.d.ts +40 -0
  56. package/types/theme.d.ts +24 -0
  57. package/types/tip-list.d.ts +20 -0
  58. package/types/tips.d.ts +298 -0
  59. package/types/toasts.d.ts +26 -0
  60. package/types/toolbar-panels.d.ts +90 -0
  61. package/types/toolbar.d.ts +5 -0
  62. package/types/use-big-result.d.ts +29 -0
  63. package/types/use-export.d.ts +7 -0
  64. package/types/use-theme.d.ts +11 -0
  65. package/types/use-view-history.d.ts +34 -0
  66. package/types/version.d.ts +2 -0
  67. package/types/view-history.d.ts +89 -0
  68. package/types/view-ops.d.ts +344 -0
  69. package/types/view-store.d.ts +52 -0
  70. package/types/virtual.d.ts +44 -0
  71. package/types/zones.d.ts +42 -0
@@ -0,0 +1,721 @@
1
+ export type UiLabels = typeof en & import("./menu-labels.js").MenuTexts;
2
+ /**
3
+ * Every text of the UI: these and the menus' (menu-labels.js, loaded with the menus; a type import
4
+ * only, so they stay out of the first load).
5
+ * @typedef {typeof en & import("./menu-labels.js").MenuTexts} UiLabels
6
+ */
7
+ export declare const en: {
8
+ /** the language of the texts, for the report's lang attribute */
9
+ lang: string;
10
+ /** the name of the report's region landmark */
11
+ report: string;
12
+ core: import("pivotkit-core").Labels;
13
+ zones: {
14
+ rows: string;
15
+ cols: string;
16
+ values: string;
17
+ filters: string;
18
+ };
19
+ zoneHints: {
20
+ rows: string;
21
+ cols: string;
22
+ values: string;
23
+ filters: string;
24
+ };
25
+ fields: string;
26
+ fieldsHint: string;
27
+ searchFields: string;
28
+ fieldListKeys: string;
29
+ noFieldMatch: string;
30
+ fieldMenu: string;
31
+ addTo: string;
32
+ alreadyIn: string;
33
+ move: string;
34
+ moveTo: string;
35
+ dragHandle: string;
36
+ dragIntoZone: string;
37
+ removeField: string;
38
+ types: {
39
+ string: string;
40
+ number: string;
41
+ date: string;
42
+ boolean: string;
43
+ null: string;
44
+ };
45
+ inZone: string;
46
+ stateFiltered: string;
47
+ stateSorted: string;
48
+ toolbar: string;
49
+ table: string;
50
+ chart: string;
51
+ view: string;
52
+ chartType: string;
53
+ chartTypeIs: string;
54
+ chartTypes: {
55
+ auto: string;
56
+ bar: string;
57
+ stacked: string;
58
+ horizontal: string;
59
+ line: string;
60
+ area: string;
61
+ pie: string;
62
+ donut: string;
63
+ heatmap: string;
64
+ };
65
+ undo: string;
66
+ redo: string;
67
+ reset: string;
68
+ resetHint: string;
69
+ swap: string;
70
+ layout: string;
71
+ showLayout: string;
72
+ layoutEmpty: string;
73
+ more: string;
74
+ views: string;
75
+ exportLabel: string;
76
+ options: string;
77
+ totals: string;
78
+ grandTotalRow: string;
79
+ grandTotalColumn: string;
80
+ rowSubtotals: string;
81
+ colSubtotals: string;
82
+ expand: string;
83
+ collapse: string;
84
+ showAs: string;
85
+ sort: string;
86
+ sortLabelAsc: string;
87
+ sortLabelDesc: string;
88
+ sortCustom: string;
89
+ sortCustomDesc: string;
90
+ sortValueDesc: string;
91
+ sortValueAsc: string;
92
+ units: {
93
+ year: string;
94
+ yearQuarter: string;
95
+ yearMonth: string;
96
+ yearWeek: string;
97
+ day: string;
98
+ quarter: string;
99
+ month: string;
100
+ week: string;
101
+ weekday: string;
102
+ hour: string;
103
+ bin: string;
104
+ };
105
+ derivedName: string;
106
+ unitInName: {
107
+ year: string;
108
+ yearQuarter: string;
109
+ yearMonth: string;
110
+ yearWeek: string;
111
+ day: string;
112
+ quarter: string;
113
+ month: string;
114
+ week: string;
115
+ weekday: string;
116
+ hour: string;
117
+ bin: string;
118
+ };
119
+ binsName: string;
120
+ top: string;
121
+ topBadge: string;
122
+ bottomBadge: string;
123
+ by: string;
124
+ filter: string;
125
+ filtered: string;
126
+ filterSummary: string;
127
+ filterTitle: string;
128
+ condition: string;
129
+ labelOps: {
130
+ equals: string;
131
+ notEquals: string;
132
+ contains: string;
133
+ notContains: string;
134
+ beginsWith: string;
135
+ endsWith: string;
136
+ };
137
+ emptyTitle: string;
138
+ emptySteps: string[];
139
+ emptyFields: string;
140
+ tryView: string;
141
+ error: string;
142
+ tooLarge: string;
143
+ tooManyGroups: string;
144
+ tooManyCells: string;
145
+ tooManyRows: string;
146
+ tooMuchWork: string;
147
+ zoneFull: string;
148
+ viewTrimmed: string;
149
+ issues: string;
150
+ dismissIssues: string;
151
+ loadingChart: string;
152
+ noChartData: string;
153
+ rowsCount: {
154
+ one: string;
155
+ other: string;
156
+ };
157
+ tableName: string;
158
+ emptyCell: string;
159
+ emptyValue: string;
160
+ rowLabel: string;
161
+ chartSummary: string;
162
+ chartCounts: string;
163
+ chartCategories: {
164
+ one: string;
165
+ other: string;
166
+ };
167
+ chartSeries: {
168
+ one: string;
169
+ other: string;
170
+ };
171
+ chartExtremes: string;
172
+ chartTableHint: string;
173
+ categories: string;
174
+ close: string;
175
+ toastRemoved: string;
176
+ toastUndone: string;
177
+ toastRedone: string;
178
+ toastReset: string;
179
+ toastExported: string;
180
+ toastLoaded: string;
181
+ toastExportFailed: string;
182
+ steps: {
183
+ added: string;
184
+ removed: string;
185
+ moved: string;
186
+ reordered: string;
187
+ sort: string;
188
+ group: string;
189
+ filter: string;
190
+ filtersRemoved: string;
191
+ top: string;
192
+ value: string;
193
+ display: string;
194
+ chart: string;
195
+ totals: string;
196
+ collapse: string;
197
+ swap: string;
198
+ template: string;
199
+ reset: string;
200
+ outside: string;
201
+ viewLoaded: string;
202
+ chartDisplay: string;
203
+ change: string;
204
+ };
205
+ tips: {
206
+ filterEmpty: string;
207
+ top: string;
208
+ bottom: string;
209
+ chartCapped: string;
210
+ showAs: {
211
+ percentOfGrandTotal: string;
212
+ percentOfRowTotal: string;
213
+ percentOfColumnTotal: string;
214
+ percentOfParentRow: string;
215
+ percentOfParentColumn: string;
216
+ percentRunningTotal: string;
217
+ percentDifferenceFromPrevious: string;
218
+ };
219
+ chartOverTime: string;
220
+ pieSlices: string;
221
+ pieColumns: string;
222
+ chartDates: string;
223
+ chartTrend: string;
224
+ chartSeries: string;
225
+ textValue: string;
226
+ dateUngrouped: string;
227
+ manyColumns: string;
228
+ values: string;
229
+ afterDrag: string;
230
+ saveTemplate: string;
231
+ menus: string;
232
+ cells: string;
233
+ };
234
+ tipActions: {
235
+ removeFilters: string;
236
+ swap: string;
237
+ groupDate: string;
238
+ saveTemplate: string;
239
+ bars: string;
240
+ auto: string;
241
+ };
242
+ dismissTip: string;
243
+ tipsTitle: string;
244
+ shortcuts: {
245
+ undo: string;
246
+ redo: string;
247
+ move: string;
248
+ open: string;
249
+ drag: string;
250
+ close: string;
251
+ fields: string;
252
+ fieldMenu: string;
253
+ };
254
+ skipToToolbar: string;
255
+ aboutField: string;
256
+ learnMore: string;
257
+ dragInstructions: string;
258
+ dragStart: string;
259
+ dragOverAt: string;
260
+ dragOverEnd: string;
261
+ dragOverNone: string;
262
+ dragEndAt: string;
263
+ dragEndEnd: string;
264
+ dragRemove: string;
265
+ dragCancel: string;
266
+ panel: string;
267
+ showFields: string;
268
+ hideFields: string;
269
+ collapseFields: string;
270
+ expandFields: string;
271
+ dropToRemove: string;
272
+ loadingReport: string;
273
+ loadingMenu: string;
274
+ menuFailed: string;
275
+ tryAgain: string;
276
+ chartDisplay: string;
277
+ axisEvery: string;
278
+ clearText: string;
279
+ toastLinkCopied: string;
280
+ toastJsonCopied: string;
281
+ toastCopyFailed: string;
282
+ toastLinkTooLong: string;
283
+ toastViewLoaded: string;
284
+ toastViewLoadedPartly: string;
285
+ toastLinkOpened: string;
286
+ toastLinkOpenedPartly: string;
287
+ viewLeftOut: string;
288
+ loadCheckSource: string;
289
+ loadCheckOtherSource: string;
290
+ loadCheckMissing: string;
291
+ loadCheckChanged: string;
292
+ linkCheckTitle: string;
293
+ viewMissingFields: string;
294
+ viewOtherIssue: string;
295
+ viewOtherIssues: string;
296
+ viewFailed: {
297
+ empty: string;
298
+ tooLarge: string;
299
+ notJson: string;
300
+ notView: string;
301
+ newer: string;
302
+ badLink: string;
303
+ file: string;
304
+ };
305
+ filterIs: string;
306
+ valueConditions: {
307
+ compare: string;
308
+ between: string;
309
+ notBetween: string;
310
+ };
311
+ zoneInfo: {
312
+ rows: string;
313
+ cols: string;
314
+ values: string;
315
+ filters: string;
316
+ };
317
+ expandNothing: string;
318
+ collapseNeedsRows: string;
319
+ needsRowField: string;
320
+ needsColField: string;
321
+ needsRowFields: string;
322
+ needsColFields: string;
323
+ enlarge: string;
324
+ reduce: string;
325
+ fullScreen: string;
326
+ collapseAllDone: string;
327
+ groupsCollapsed: {
328
+ one: string;
329
+ other: string;
330
+ };
331
+ groupsExpanded: {
332
+ one: string;
333
+ other: string;
334
+ };
335
+ };
336
+ export declare const de: {
337
+ lang: string;
338
+ report: string;
339
+ core: import("pivotkit-core").Labels;
340
+ zones: {
341
+ rows: string;
342
+ cols: string;
343
+ values: string;
344
+ filters: string;
345
+ };
346
+ zoneHints: {
347
+ rows: string;
348
+ cols: string;
349
+ values: string;
350
+ filters: string;
351
+ };
352
+ fields: string;
353
+ fieldsHint: string;
354
+ searchFields: string;
355
+ fieldListKeys: string;
356
+ noFieldMatch: string;
357
+ fieldMenu: string;
358
+ addTo: string;
359
+ alreadyIn: string;
360
+ move: string;
361
+ moveTo: string;
362
+ dragHandle: string;
363
+ dragIntoZone: string;
364
+ removeField: string;
365
+ types: {
366
+ string: string;
367
+ number: string;
368
+ date: string;
369
+ boolean: string;
370
+ null: string;
371
+ };
372
+ inZone: string;
373
+ stateFiltered: string;
374
+ stateSorted: string;
375
+ toolbar: string;
376
+ table: string;
377
+ chart: string;
378
+ view: string;
379
+ chartType: string;
380
+ chartTypeIs: string;
381
+ chartTypes: {
382
+ auto: string;
383
+ bar: string;
384
+ stacked: string;
385
+ horizontal: string;
386
+ line: string;
387
+ area: string;
388
+ pie: string;
389
+ donut: string;
390
+ heatmap: string;
391
+ };
392
+ undo: string;
393
+ redo: string;
394
+ reset: string;
395
+ resetHint: string;
396
+ swap: string;
397
+ layout: string;
398
+ showLayout: string;
399
+ layoutEmpty: string;
400
+ more: string;
401
+ views: string;
402
+ exportLabel: string;
403
+ options: string;
404
+ totals: string;
405
+ grandTotalRow: string;
406
+ grandTotalColumn: string;
407
+ rowSubtotals: string;
408
+ colSubtotals: string;
409
+ expand: string;
410
+ collapse: string;
411
+ showAs: string;
412
+ sort: string;
413
+ sortLabelAsc: string;
414
+ sortLabelDesc: string;
415
+ sortCustom: string;
416
+ sortCustomDesc: string;
417
+ sortValueDesc: string;
418
+ sortValueAsc: string;
419
+ units: {
420
+ year: string;
421
+ yearQuarter: string;
422
+ yearMonth: string;
423
+ yearWeek: string;
424
+ day: string;
425
+ quarter: string;
426
+ month: string;
427
+ week: string;
428
+ weekday: string;
429
+ hour: string;
430
+ bin: string;
431
+ };
432
+ derivedName: string;
433
+ unitInName: {
434
+ year: string;
435
+ yearQuarter: string;
436
+ yearMonth: string;
437
+ yearWeek: string;
438
+ day: string;
439
+ quarter: string;
440
+ month: string;
441
+ week: string;
442
+ weekday: string;
443
+ hour: string;
444
+ bin: string;
445
+ };
446
+ binsName: string;
447
+ top: string;
448
+ topBadge: string;
449
+ bottomBadge: string;
450
+ by: string;
451
+ filter: string;
452
+ filtered: string;
453
+ filterSummary: string;
454
+ filterTitle: string;
455
+ condition: string;
456
+ labelOps: {
457
+ equals: string;
458
+ notEquals: string;
459
+ contains: string;
460
+ notContains: string;
461
+ beginsWith: string;
462
+ endsWith: string;
463
+ };
464
+ emptyTitle: string;
465
+ emptySteps: string[];
466
+ emptyFields: string;
467
+ tryView: string;
468
+ error: string;
469
+ tooLarge: string;
470
+ tooManyGroups: string;
471
+ tooManyCells: string;
472
+ tooManyRows: string;
473
+ tooMuchWork: string;
474
+ zoneFull: string;
475
+ viewTrimmed: string;
476
+ issues: string;
477
+ dismissIssues: string;
478
+ loadingChart: string;
479
+ noChartData: string;
480
+ rowsCount: {
481
+ one: string;
482
+ other: string;
483
+ };
484
+ tableName: string;
485
+ emptyCell: string;
486
+ emptyValue: string;
487
+ rowLabel: string;
488
+ chartSummary: string;
489
+ chartCounts: string;
490
+ chartCategories: {
491
+ one: string;
492
+ other: string;
493
+ };
494
+ chartSeries: {
495
+ one: string;
496
+ other: string;
497
+ };
498
+ chartExtremes: string;
499
+ chartTableHint: string;
500
+ categories: string;
501
+ close: string;
502
+ toastRemoved: string;
503
+ toastUndone: string;
504
+ toastRedone: string;
505
+ toastReset: string;
506
+ toastExported: string;
507
+ toastLoaded: string;
508
+ toastExportFailed: string;
509
+ steps: {
510
+ added: string;
511
+ removed: string;
512
+ moved: string;
513
+ reordered: string;
514
+ sort: string;
515
+ group: string;
516
+ filter: string;
517
+ filtersRemoved: string;
518
+ top: string;
519
+ value: string;
520
+ display: string;
521
+ chart: string;
522
+ totals: string;
523
+ collapse: string;
524
+ swap: string;
525
+ template: string;
526
+ reset: string;
527
+ outside: string;
528
+ viewLoaded: string;
529
+ chartDisplay: string;
530
+ change: string;
531
+ };
532
+ tips: {
533
+ filterEmpty: string;
534
+ top: string;
535
+ bottom: string;
536
+ chartCapped: string;
537
+ showAs: {
538
+ percentOfGrandTotal: string;
539
+ percentOfRowTotal: string;
540
+ percentOfColumnTotal: string;
541
+ percentOfParentRow: string;
542
+ percentOfParentColumn: string;
543
+ percentRunningTotal: string;
544
+ percentDifferenceFromPrevious: string;
545
+ };
546
+ chartOverTime: string;
547
+ pieSlices: string;
548
+ pieColumns: string;
549
+ chartDates: string;
550
+ chartTrend: string;
551
+ chartSeries: string;
552
+ textValue: string;
553
+ dateUngrouped: string;
554
+ manyColumns: string;
555
+ values: string;
556
+ afterDrag: string;
557
+ saveTemplate: string;
558
+ menus: string;
559
+ cells: string;
560
+ };
561
+ tipActions: {
562
+ removeFilters: string;
563
+ swap: string;
564
+ groupDate: string;
565
+ saveTemplate: string;
566
+ bars: string;
567
+ auto: string;
568
+ };
569
+ dismissTip: string;
570
+ tipsTitle: string;
571
+ shortcuts: {
572
+ undo: string;
573
+ redo: string;
574
+ move: string;
575
+ open: string;
576
+ drag: string;
577
+ close: string;
578
+ fields: string;
579
+ fieldMenu: string;
580
+ };
581
+ skipToToolbar: string;
582
+ aboutField: string;
583
+ learnMore: string;
584
+ dragInstructions: string;
585
+ dragStart: string;
586
+ dragOverAt: string;
587
+ dragOverEnd: string;
588
+ dragOverNone: string;
589
+ dragEndAt: string;
590
+ dragEndEnd: string;
591
+ dragRemove: string;
592
+ dragCancel: string;
593
+ panel: string;
594
+ showFields: string;
595
+ hideFields: string;
596
+ collapseFields: string;
597
+ expandFields: string;
598
+ dropToRemove: string;
599
+ loadingReport: string;
600
+ loadingMenu: string;
601
+ menuFailed: string;
602
+ tryAgain: string;
603
+ chartDisplay: string;
604
+ axisEvery: string;
605
+ clearText: string;
606
+ toastLinkCopied: string;
607
+ toastJsonCopied: string;
608
+ toastCopyFailed: string;
609
+ toastLinkTooLong: string;
610
+ toastViewLoaded: string;
611
+ toastViewLoadedPartly: string;
612
+ toastLinkOpened: string;
613
+ toastLinkOpenedPartly: string;
614
+ viewLeftOut: string;
615
+ loadCheckSource: string;
616
+ loadCheckOtherSource: string;
617
+ loadCheckMissing: string;
618
+ loadCheckChanged: string;
619
+ linkCheckTitle: string;
620
+ viewMissingFields: string;
621
+ viewOtherIssue: string;
622
+ viewOtherIssues: string;
623
+ viewFailed: {
624
+ empty: string;
625
+ tooLarge: string;
626
+ notJson: string;
627
+ notView: string;
628
+ newer: string;
629
+ badLink: string;
630
+ file: string;
631
+ };
632
+ filterIs: string;
633
+ valueConditions: {
634
+ compare: string;
635
+ between: string;
636
+ notBetween: string;
637
+ };
638
+ zoneInfo: {
639
+ rows: string;
640
+ cols: string;
641
+ values: string;
642
+ filters: string;
643
+ };
644
+ expandNothing: string;
645
+ collapseNeedsRows: string;
646
+ needsRowField: string;
647
+ needsColField: string;
648
+ needsRowFields: string;
649
+ needsColFields: string;
650
+ enlarge: string;
651
+ reduce: string;
652
+ fullScreen: string;
653
+ collapseAllDone: string;
654
+ groupsCollapsed: {
655
+ one: string;
656
+ other: string;
657
+ };
658
+ groupsExpanded: {
659
+ one: string;
660
+ other: string;
661
+ };
662
+ };
663
+ /** @type {Readonly<{ en: typeof en, de: typeof en }>} the texts of the first load; the menus' are MENU_LABELS (menu-labels.js) */
664
+ export declare const LABELS: Readonly<{
665
+ en: typeof en;
666
+ de: typeof en;
667
+ }>;
668
+ export type PartialLabels = {
669
+ [K in keyof UiLabels]?: UiLabels[K] extends string | string[] ? UiLabels[K] : Partial<UiLabels[K]>;
670
+ };
671
+ /**
672
+ * Partial labels a host passes: any entry of UiLabels, nested objects partial too.
673
+ * @typedef {{ [K in keyof UiLabels]?: UiLabels[K] extends string | string[] ? UiLabels[K] : Partial<UiLabels[K]> }} PartialLabels
674
+ */
675
+ /** The message of a thrown value, for a note. */
676
+ export declare function messageOf(error: any): string;
677
+ /**
678
+ * The note in place of the result when it cannot be shown: a limit of pivotkit-core in words with
679
+ * what to change, else `labels.error` with the error's message.
680
+ * @param {unknown} error
681
+ * @param {UiLabels} labels
682
+ * @param {string} locale for the numbers
683
+ */
684
+ export declare function errorText(error: unknown, labels: UiLabels, locale: string): string;
685
+ /**
686
+ * The note for a host's callback that threw or rejected: `withMessage` with the host's own message
687
+ * when it gave one (an Error, a text, an object with a `message` text), else `withoutMessage`.
688
+ * @param {string} withMessage with {message}
689
+ * @param {string} withoutMessage
690
+ * @param {unknown} error
691
+ */
692
+ export declare function hostFailure(withMessage: string, withoutMessage: string, error: unknown): string;
693
+ /** Replaces {name} placeholders; unknown names stay as they are. */
694
+ export declare function fill(template: any, values: any): string;
695
+ /**
696
+ * A count in words: the form of `forms` for the plural category of `count` in the labels' language
697
+ * (Intl.PluralRules), `other` when that form is missing, with {count} filled in the locale's digits.
698
+ * @param {Partial<Record<string, string>>} forms e.g. { one: "{count} row", other: "{count} rows" }
699
+ * @param {number} count
700
+ * @param {{ lang: string, locale: string }} options
701
+ */
702
+ export declare function plural(forms: Partial<Record<string, string>>, count: number, { lang, locale }: {
703
+ lang: string;
704
+ locale: string;
705
+ }): string;
706
+ /** Where resolved labels keep a host's texts for the menus (menu-labels.js); a symbol, so it is no text. */
707
+ export declare const MENU_TEXTS: unique symbol;
708
+ /**
709
+ * A deep merge of `over` into `base` that keeps the shape of `base`: an entry replaces one of the same
710
+ * kind only (text by text, a list of texts by a list of texts, an object is merged), so a wrong type
711
+ * in a host's labels cannot break the UI. Keys `base` does not have are ignored.
712
+ */
713
+ export declare function mergeLabels(base: any, over: any): any;
714
+ /**
715
+ * The labels for a locale: the language of the locale picks en or de (default en), the host's
716
+ * partial labels are merged over them.
717
+ * @param {string | undefined} locale
718
+ * @param {PartialLabels | object} [custom]
719
+ * @returns {UiLabels}
720
+ */
721
+ export declare function resolveLabels(locale: string | undefined, custom?: PartialLabels | object): UiLabels;