@divkitframework/jsonbuilder 1.2.0 → 1.4.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.
@@ -4,9 +4,12 @@ declare const expr: unique symbol;
4
4
  interface DivExpression {
5
5
  [expr]: string;
6
6
  }
7
-
8
- declare function expression(expression: string): DivExpression;
9
- declare function escapeExpression(str: string): string;
7
+ declare class SafeDivExpression implements DivExpression {
8
+ [expr]: string;
9
+ constructor(expression: string);
10
+ toJSON(): string;
11
+ toString(): string;
12
+ }
10
13
 
11
14
  /**
12
15
  * Root structure.
@@ -146,27 +149,27 @@ interface IDivAccessibility {
146
149
  /**
147
150
  * Element description. It is used as the main description for screen reading applications.
148
151
  */
149
- description?: Type<string> | DivExpression;
152
+ description?: Type<string | DivExpression>;
150
153
  /**
151
154
  * A tooltip of what will happen during interaction. If Speak Hints is enabled in the VoiceOver
152
155
  * settings on iOS, a tooltip is played after `description`.
153
156
  */
154
- hint?: Type<string> | DivExpression;
157
+ hint?: Type<string | DivExpression>;
155
158
  /**
156
159
  * The way the accessibility tree is organized. In the `merge` mode the accessibility service
157
160
  * perceives an element together with a subtree as a whole. In the `exclude` mode an element
158
161
  * together with a subtree isn't available for accessibility.
159
162
  */
160
- mode?: Type<DivAccessibilityMode> | DivExpression;
163
+ mode?: Type<DivAccessibilityMode | DivExpression>;
161
164
  /**
162
165
  * Mutes the sound of the screen reader after interacting with the element.
163
166
  */
164
- mute_after_action?: Type<IntBoolean> | DivExpression;
167
+ mute_after_action?: Type<IntBoolean | DivExpression>;
165
168
  /**
166
169
  * Description of the current state of an element. For example, in the description you can
167
170
  * specify a selected date for a date selection element and an on/off state for a switch.
168
171
  */
169
- state_description?: Type<string> | DivExpression;
172
+ state_description?: Type<string | DivExpression>;
170
173
  /**
171
174
  * Element role. It is used for correct identification of an element by an accessibility service.
172
175
  */
@@ -190,7 +193,7 @@ interface IDivAction {
190
193
  /**
191
194
  * URL for logging.
192
195
  */
193
- log_url?: Type<string> | DivExpression;
196
+ log_url?: Type<string | DivExpression>;
194
197
  /**
195
198
  * Context menu.
196
199
  */
@@ -202,16 +205,16 @@ interface IDivAction {
202
205
  /**
203
206
  * Referer URL for logging.
204
207
  */
205
- referer?: Type<string> | DivExpression;
208
+ referer?: Type<string | DivExpression>;
206
209
  /**
207
210
  * The tab in which the URL must be opened.
208
211
  */
209
- target?: Type<DivActionTarget> | DivExpression;
212
+ target?: Type<DivActionTarget | DivExpression>;
210
213
  /**
211
214
  * URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with
212
215
  * elements](../../interaction.dita).
213
216
  */
214
- url?: Type<string> | DivExpression;
217
+ url?: Type<string | DivExpression>;
215
218
  }
216
219
  declare type DivActionTarget = '_self' | '_blank';
217
220
  interface IDivActionMenuItem {
@@ -226,7 +229,7 @@ interface IDivActionMenuItem {
226
229
  /**
227
230
  * Menu item title.
228
231
  */
229
- text: Type<string> | DivExpression;
232
+ text: Type<string | DivExpression>;
230
233
  }
231
234
 
232
235
  declare type DivAlignmentHorizontal = 'left' | 'center' | 'right';
@@ -240,11 +243,11 @@ interface IDivAnimation {
240
243
  /**
241
244
  * Animation duration in milliseconds.
242
245
  */
243
- duration?: Type<number> | DivExpression;
246
+ duration?: Type<number | DivExpression>;
244
247
  /**
245
248
  * Final value of an animation.
246
249
  */
247
- end_value?: Type<number> | DivExpression;
250
+ end_value?: Type<number | DivExpression>;
248
251
  /**
249
252
  * Animation speed nature. When the value is set to `spring` — animation of damping fluctuations
250
253
  * cut to 0.7 with the `damping=1` parameter. Other options correspond to the Bezier
@@ -252,7 +255,7 @@ interface IDivAnimation {
252
255
  * — cubic-bezier(0.42, 0, 1, 1);`ease_out` — cubic-bezier(0, 0, 0.58, 1);`ease_in_out` —
253
256
  * cubic-bezier(0.42, 0, 0.58, 1).
254
257
  */
255
- interpolator?: Type<DivAnimationInterpolator> | DivExpression;
258
+ interpolator?: Type<DivAnimationInterpolator | DivExpression>;
256
259
  /**
257
260
  * Animation elements.
258
261
  */
@@ -260,7 +263,7 @@ interface IDivAnimation {
260
263
  /**
261
264
  * Animation type.
262
265
  */
263
- name: Type<DivAnimationName> | DivExpression;
266
+ name: Type<DivAnimationName | DivExpression>;
264
267
  /**
265
268
  * Number of animation repetitions.
266
269
  */
@@ -268,11 +271,11 @@ interface IDivAnimation {
268
271
  /**
269
272
  * Delay in milliseconds before animation starts.
270
273
  */
271
- start_delay?: Type<number> | DivExpression;
274
+ start_delay?: Type<number | DivExpression>;
272
275
  /**
273
276
  * Starting value of an animation.
274
277
  */
275
- start_value?: Type<number> | DivExpression;
278
+ start_value?: Type<number | DivExpression>;
276
279
  }
277
280
  declare type DivAnimationName = 'fade' | 'translate' | 'scale' | 'native' | 'set' | 'no_animation';
278
281
 
@@ -307,7 +310,7 @@ interface IDivAspect {
307
310
  /**
308
311
  * `ratio = width / height`.
309
312
  */
310
- ratio: Type<number> | DivExpression;
313
+ ratio: Type<number | DivExpression>;
311
314
  }
312
315
 
313
316
  declare type DivBackground = DivLinearGradient | DivRadialGradient | DivImageBackground | DivSolidBackground;
@@ -320,15 +323,15 @@ interface IDivBase {
320
323
  /**
321
324
  * Horizontal alignment of an element inside the parent element.
322
325
  */
323
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
326
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
324
327
  /**
325
328
  * Vertical alignment of an element inside the parent element.
326
329
  */
327
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
330
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
328
331
  /**
329
332
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
330
333
  */
331
- alpha?: Type<number> | DivExpression;
334
+ alpha?: Type<number | DivExpression>;
332
335
  /**
333
336
  * Element background. It can contain multiple layers.
334
337
  */
@@ -340,7 +343,7 @@ interface IDivBase {
340
343
  /**
341
344
  * Merges cells in a column of the [grid](div-grid.md) element.
342
345
  */
343
- column_span?: Type<number> | DivExpression;
346
+ column_span?: Type<number | DivExpression>;
344
347
  /**
345
348
  * Extensions for additional processing of an element. The list of extensions is given in
346
349
  * [DivExtension](../../extensions.dita).
@@ -372,7 +375,7 @@ interface IDivBase {
372
375
  /**
373
376
  * Merges cells in a string of the [grid](div-grid.md) element.
374
377
  */
375
- row_span?: Type<number> | DivExpression;
378
+ row_span?: Type<number | DivExpression>;
376
379
  /**
377
380
  * List of [actions](div-action.md) to be executed when selecting an element in
378
381
  * [pager](div-pager.md).
@@ -410,7 +413,7 @@ interface IDivBase {
410
413
  /**
411
414
  * Element visibility.
412
415
  */
413
- visibility?: Type<DivVisibility> | DivExpression;
416
+ visibility?: Type<DivVisibility | DivExpression>;
414
417
  /**
415
418
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
416
419
  * set.
@@ -433,7 +436,7 @@ interface IDivBorder {
433
436
  /**
434
437
  * One radius of element and stroke corner rounding. Has a lower priority than `corners_radius`.
435
438
  */
436
- corner_radius?: Type<number> | DivExpression;
439
+ corner_radius?: Type<number | DivExpression>;
437
440
  /**
438
441
  * Multiple radii of element and stroke corner rounding.
439
442
  */
@@ -441,7 +444,7 @@ interface IDivBorder {
441
444
  /**
442
445
  * Adding shadow.
443
446
  */
444
- has_shadow?: Type<IntBoolean> | DivExpression;
447
+ has_shadow?: Type<IntBoolean | DivExpression>;
445
448
  /**
446
449
  * Shadow parameters.
447
450
  */
@@ -461,30 +464,30 @@ declare class DivChangeBoundsTransition<T extends DivChangeBoundsTransitionProps
461
464
  /**
462
465
  * Animation duration in milliseconds.
463
466
  */
464
- duration?: Type<number> | DivExpression;
467
+ duration?: Type<number | DivExpression>;
465
468
  /**
466
469
  * Transition speed nature.
467
470
  */
468
- interpolator?: Type<DivAnimationInterpolator> | DivExpression;
471
+ interpolator?: Type<DivAnimationInterpolator | DivExpression>;
469
472
  /**
470
473
  * Delay in milliseconds before animation starts.
471
474
  */
472
- start_delay?: Type<number> | DivExpression;
475
+ start_delay?: Type<number | DivExpression>;
473
476
  constructor(props?: Exact<DivChangeBoundsTransitionProps, T>);
474
477
  }
475
478
  interface DivChangeBoundsTransitionProps {
476
479
  /**
477
480
  * Animation duration in milliseconds.
478
481
  */
479
- duration?: Type<number> | DivExpression;
482
+ duration?: Type<number | DivExpression>;
480
483
  /**
481
484
  * Transition speed nature.
482
485
  */
483
- interpolator?: Type<DivAnimationInterpolator> | DivExpression;
486
+ interpolator?: Type<DivAnimationInterpolator | DivExpression>;
484
487
  /**
485
488
  * Delay in milliseconds before animation starts.
486
489
  */
487
- start_delay?: Type<number> | DivExpression;
490
+ start_delay?: Type<number | DivExpression>;
488
491
  }
489
492
 
490
493
  /**
@@ -535,15 +538,15 @@ declare class DivContainer<T extends DivContainerProps = DivContainerProps> {
535
538
  /**
536
539
  * Horizontal alignment of an element inside the parent element.
537
540
  */
538
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
541
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
539
542
  /**
540
543
  * Vertical alignment of an element inside the parent element.
541
544
  */
542
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
545
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
543
546
  /**
544
547
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
545
548
  */
546
- alpha?: Type<number> | DivExpression;
549
+ alpha?: Type<number | DivExpression>;
547
550
  /**
548
551
  * Element background. It can contain multiple layers.
549
552
  */
@@ -555,17 +558,17 @@ declare class DivContainer<T extends DivContainerProps = DivContainerProps> {
555
558
  /**
556
559
  * Merges cells in a column of the [grid](div-grid.md) element.
557
560
  */
558
- column_span?: Type<number> | DivExpression;
561
+ column_span?: Type<number | DivExpression>;
559
562
  /**
560
563
  * Default alignment of elements. Not used if the `alignment_horizontal` parameter is set from
561
564
  * the element field.
562
565
  */
563
- content_alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
566
+ content_alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
564
567
  /**
565
568
  * Default alignment of elements. Not used if the `alignment_vertical` parameter is set from the
566
569
  * element field.
567
570
  */
568
- content_alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
571
+ content_alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
569
572
  /**
570
573
  * Action when double-clicking on an element.
571
574
  */
@@ -599,7 +602,7 @@ declare class DivContainer<T extends DivContainerProps = DivContainerProps> {
599
602
  * they did not fit in the previous one. If the value is set to `wrap`, then a separate line will
600
603
  * be allocated for all elements with a size value of match_parent along the main axis.
601
604
  */
602
- layout_mode?: Type<DivContainerLayoutMode> | DivExpression;
605
+ layout_mode?: Type<DivContainerLayoutMode | DivExpression>;
603
606
  /**
604
607
  * Action when long-clicking on an element.
605
608
  */
@@ -612,7 +615,7 @@ declare class DivContainer<T extends DivContainerProps = DivContainerProps> {
612
615
  * Location of elements. `overlap` value overlays elements on top of each other in the order of
613
616
  * enumeration. The lowest is the zero element of an array.
614
617
  */
615
- orientation?: Type<DivContainerOrientation> | DivExpression;
618
+ orientation?: Type<DivContainerOrientation | DivExpression>;
616
619
  /**
617
620
  * Internal margins from the element stroke.
618
621
  */
@@ -620,7 +623,7 @@ declare class DivContainer<T extends DivContainerProps = DivContainerProps> {
620
623
  /**
621
624
  * Merges cells in a string of the [grid](div-grid.md) element.
622
625
  */
623
- row_span?: Type<number> | DivExpression;
626
+ row_span?: Type<number | DivExpression>;
624
627
  /**
625
628
  * List of [actions](div-action.md) to be executed when selecting an element in
626
629
  * [pager](div-pager.md).
@@ -658,7 +661,7 @@ declare class DivContainer<T extends DivContainerProps = DivContainerProps> {
658
661
  /**
659
662
  * Element visibility.
660
663
  */
661
- visibility?: Type<DivVisibility> | DivExpression;
664
+ visibility?: Type<DivVisibility | DivExpression>;
662
665
  /**
663
666
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
664
667
  * set.
@@ -694,15 +697,15 @@ interface DivContainerProps {
694
697
  /**
695
698
  * Horizontal alignment of an element inside the parent element.
696
699
  */
697
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
700
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
698
701
  /**
699
702
  * Vertical alignment of an element inside the parent element.
700
703
  */
701
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
704
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
702
705
  /**
703
706
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
704
707
  */
705
- alpha?: Type<number> | DivExpression;
708
+ alpha?: Type<number | DivExpression>;
706
709
  /**
707
710
  * Element background. It can contain multiple layers.
708
711
  */
@@ -714,17 +717,17 @@ interface DivContainerProps {
714
717
  /**
715
718
  * Merges cells in a column of the [grid](div-grid.md) element.
716
719
  */
717
- column_span?: Type<number> | DivExpression;
720
+ column_span?: Type<number | DivExpression>;
718
721
  /**
719
722
  * Default alignment of elements. Not used if the `alignment_horizontal` parameter is set from
720
723
  * the element field.
721
724
  */
722
- content_alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
725
+ content_alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
723
726
  /**
724
727
  * Default alignment of elements. Not used if the `alignment_vertical` parameter is set from the
725
728
  * element field.
726
729
  */
727
- content_alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
730
+ content_alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
728
731
  /**
729
732
  * Action when double-clicking on an element.
730
733
  */
@@ -758,7 +761,7 @@ interface DivContainerProps {
758
761
  * they did not fit in the previous one. If the value is set to `wrap`, then a separate line will
759
762
  * be allocated for all elements with a size value of match_parent along the main axis.
760
763
  */
761
- layout_mode?: Type<DivContainerLayoutMode> | DivExpression;
764
+ layout_mode?: Type<DivContainerLayoutMode | DivExpression>;
762
765
  /**
763
766
  * Action when long-clicking on an element.
764
767
  */
@@ -771,7 +774,7 @@ interface DivContainerProps {
771
774
  * Location of elements. `overlap` value overlays elements on top of each other in the order of
772
775
  * enumeration. The lowest is the zero element of an array.
773
776
  */
774
- orientation?: Type<DivContainerOrientation> | DivExpression;
777
+ orientation?: Type<DivContainerOrientation | DivExpression>;
775
778
  /**
776
779
  * Internal margins from the element stroke.
777
780
  */
@@ -779,7 +782,7 @@ interface DivContainerProps {
779
782
  /**
780
783
  * Merges cells in a string of the [grid](div-grid.md) element.
781
784
  */
782
- row_span?: Type<number> | DivExpression;
785
+ row_span?: Type<number | DivExpression>;
783
786
  /**
784
787
  * List of [actions](div-action.md) to be executed when selecting an element in
785
788
  * [pager](div-pager.md).
@@ -817,7 +820,7 @@ interface DivContainerProps {
817
820
  /**
818
821
  * Element visibility.
819
822
  */
820
- visibility?: Type<DivVisibility> | DivExpression;
823
+ visibility?: Type<DivVisibility | DivExpression>;
821
824
  /**
822
825
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
823
826
  * set.
@@ -842,19 +845,19 @@ interface IDivCornersRadius {
842
845
  /**
843
846
  * Rounding radius of a lower left corner. If not specified, then `corner_radius` is used.
844
847
  */
845
- 'bottom-left'?: Type<number> | DivExpression;
848
+ 'bottom-left'?: Type<number | DivExpression>;
846
849
  /**
847
850
  * Rounding radius of a lower right corner. If not specified, then `corner_radius` is used.
848
851
  */
849
- 'bottom-right'?: Type<number> | DivExpression;
852
+ 'bottom-right'?: Type<number | DivExpression>;
850
853
  /**
851
854
  * Rounding radius of an upper left corner. If not specified, then `corner_radius` is used.
852
855
  */
853
- 'top-left'?: Type<number> | DivExpression;
856
+ 'top-left'?: Type<number | DivExpression>;
854
857
  /**
855
858
  * Rounding radius of an upper right corner. If not specified, then `corner_radius` is used.
856
859
  */
857
- 'top-right'?: Type<number> | DivExpression;
860
+ 'top-right'?: Type<number | DivExpression>;
858
861
  }
859
862
 
860
863
  declare type DivCount = DivInfinityCount | DivFixedCount;
@@ -873,15 +876,15 @@ declare class DivCustom<T extends DivCustomProps = DivCustomProps> {
873
876
  /**
874
877
  * Horizontal alignment of an element inside the parent element.
875
878
  */
876
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
879
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
877
880
  /**
878
881
  * Vertical alignment of an element inside the parent element.
879
882
  */
880
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
883
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
881
884
  /**
882
885
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
883
886
  */
884
- alpha?: Type<number> | DivExpression;
887
+ alpha?: Type<number | DivExpression>;
885
888
  /**
886
889
  * Element background. It can contain multiple layers.
887
890
  */
@@ -893,7 +896,7 @@ declare class DivCustom<T extends DivCustomProps = DivCustomProps> {
893
896
  /**
894
897
  * Merges cells in a column of the [grid](div-grid.md) element.
895
898
  */
896
- column_span?: Type<number> | DivExpression;
899
+ column_span?: Type<number | DivExpression>;
897
900
  /**
898
901
  * Element data for a host application.
899
902
  */
@@ -937,7 +940,7 @@ declare class DivCustom<T extends DivCustomProps = DivCustomProps> {
937
940
  /**
938
941
  * Merges cells in a string of the [grid](div-grid.md) element.
939
942
  */
940
- row_span?: Type<number> | DivExpression;
943
+ row_span?: Type<number | DivExpression>;
941
944
  /**
942
945
  * List of [actions](div-action.md) to be executed when selecting an element in
943
946
  * [pager](div-pager.md).
@@ -975,7 +978,7 @@ declare class DivCustom<T extends DivCustomProps = DivCustomProps> {
975
978
  /**
976
979
  * Element visibility.
977
980
  */
978
- visibility?: Type<DivVisibility> | DivExpression;
981
+ visibility?: Type<DivVisibility | DivExpression>;
979
982
  /**
980
983
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
981
984
  * set.
@@ -999,15 +1002,15 @@ interface DivCustomProps {
999
1002
  /**
1000
1003
  * Horizontal alignment of an element inside the parent element.
1001
1004
  */
1002
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
1005
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
1003
1006
  /**
1004
1007
  * Vertical alignment of an element inside the parent element.
1005
1008
  */
1006
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
1009
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
1007
1010
  /**
1008
1011
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
1009
1012
  */
1010
- alpha?: Type<number> | DivExpression;
1013
+ alpha?: Type<number | DivExpression>;
1011
1014
  /**
1012
1015
  * Element background. It can contain multiple layers.
1013
1016
  */
@@ -1019,7 +1022,7 @@ interface DivCustomProps {
1019
1022
  /**
1020
1023
  * Merges cells in a column of the [grid](div-grid.md) element.
1021
1024
  */
1022
- column_span?: Type<number> | DivExpression;
1025
+ column_span?: Type<number | DivExpression>;
1023
1026
  /**
1024
1027
  * Element data for a host application.
1025
1028
  */
@@ -1063,7 +1066,7 @@ interface DivCustomProps {
1063
1066
  /**
1064
1067
  * Merges cells in a string of the [grid](div-grid.md) element.
1065
1068
  */
1066
- row_span?: Type<number> | DivExpression;
1069
+ row_span?: Type<number | DivExpression>;
1067
1070
  /**
1068
1071
  * List of [actions](div-action.md) to be executed when selecting an element in
1069
1072
  * [pager](div-pager.md).
@@ -1101,7 +1104,7 @@ interface DivCustomProps {
1101
1104
  /**
1102
1105
  * Element visibility.
1103
1106
  */
1104
- visibility?: Type<DivVisibility> | DivExpression;
1107
+ visibility?: Type<DivVisibility | DivExpression>;
1105
1108
  /**
1106
1109
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
1107
1110
  * set.
@@ -1121,11 +1124,11 @@ interface DivCustomProps {
1121
1124
  * Element dimension value.
1122
1125
  */
1123
1126
  interface IDivDimension {
1124
- unit?: Type<DivSizeUnit> | DivExpression;
1127
+ unit?: Type<DivSizeUnit | DivExpression>;
1125
1128
  /**
1126
1129
  * Value.
1127
1130
  */
1128
- value: Type<number> | DivExpression;
1131
+ value: Type<number | DivExpression>;
1129
1132
  }
1130
1133
 
1131
1134
  /**
@@ -1151,20 +1154,20 @@ interface IDivEdgeInsets {
1151
1154
  /**
1152
1155
  * Bottom margin.
1153
1156
  */
1154
- bottom?: Type<number> | DivExpression;
1157
+ bottom?: Type<number | DivExpression>;
1155
1158
  /**
1156
1159
  * Left margin.
1157
1160
  */
1158
- left?: Type<number> | DivExpression;
1161
+ left?: Type<number | DivExpression>;
1159
1162
  /**
1160
1163
  * Right margin.
1161
1164
  */
1162
- right?: Type<number> | DivExpression;
1165
+ right?: Type<number | DivExpression>;
1163
1166
  /**
1164
1167
  * Top margin.
1165
1168
  */
1166
- top?: Type<number> | DivExpression;
1167
- unit?: Type<DivSizeUnit> | DivExpression;
1169
+ top?: Type<number | DivExpression>;
1170
+ unit?: Type<DivSizeUnit | DivExpression>;
1168
1171
  }
1169
1172
 
1170
1173
  /**
@@ -1191,19 +1194,19 @@ declare class DivFadeTransition<T extends DivFadeTransitionProps = DivFadeTransi
1191
1194
  * Value of the alpha channel which the element starts appearing from or at which it finishes
1192
1195
  * disappearing.
1193
1196
  */
1194
- alpha?: Type<number> | DivExpression;
1197
+ alpha?: Type<number | DivExpression>;
1195
1198
  /**
1196
1199
  * Animation duration in milliseconds.
1197
1200
  */
1198
- duration?: Type<number> | DivExpression;
1201
+ duration?: Type<number | DivExpression>;
1199
1202
  /**
1200
1203
  * Transition speed nature.
1201
1204
  */
1202
- interpolator?: Type<DivAnimationInterpolator> | DivExpression;
1205
+ interpolator?: Type<DivAnimationInterpolator | DivExpression>;
1203
1206
  /**
1204
1207
  * Delay in milliseconds before animation starts.
1205
1208
  */
1206
- start_delay?: Type<number> | DivExpression;
1209
+ start_delay?: Type<number | DivExpression>;
1207
1210
  constructor(props?: Exact<DivFadeTransitionProps, T>);
1208
1211
  }
1209
1212
  interface DivFadeTransitionProps {
@@ -1211,19 +1214,19 @@ interface DivFadeTransitionProps {
1211
1214
  * Value of the alpha channel which the element starts appearing from or at which it finishes
1212
1215
  * disappearing.
1213
1216
  */
1214
- alpha?: Type<number> | DivExpression;
1217
+ alpha?: Type<number | DivExpression>;
1215
1218
  /**
1216
1219
  * Animation duration in milliseconds.
1217
1220
  */
1218
- duration?: Type<number> | DivExpression;
1221
+ duration?: Type<number | DivExpression>;
1219
1222
  /**
1220
1223
  * Transition speed nature.
1221
1224
  */
1222
- interpolator?: Type<DivAnimationInterpolator> | DivExpression;
1225
+ interpolator?: Type<DivAnimationInterpolator | DivExpression>;
1223
1226
  /**
1224
1227
  * Delay in milliseconds before animation starts.
1225
1228
  */
1226
- start_delay?: Type<number> | DivExpression;
1229
+ start_delay?: Type<number | DivExpression>;
1227
1230
  }
1228
1231
 
1229
1232
  /**
@@ -1235,14 +1238,14 @@ declare class DivFixedCount<T extends DivFixedCountProps = DivFixedCountProps> {
1235
1238
  /**
1236
1239
  * Number of repetitions.
1237
1240
  */
1238
- value: Type<number> | DivExpression;
1241
+ value: Type<number | DivExpression>;
1239
1242
  constructor(props: Exact<DivFixedCountProps, T>);
1240
1243
  }
1241
1244
  interface DivFixedCountProps {
1242
1245
  /**
1243
1246
  * Number of repetitions.
1244
1247
  */
1245
- value: Type<number> | DivExpression;
1248
+ value: Type<number | DivExpression>;
1246
1249
  }
1247
1250
 
1248
1251
  /**
@@ -1255,11 +1258,11 @@ declare class DivFixedSize<T extends DivFixedSizeProps = DivFixedSizeProps> {
1255
1258
  * Unit of measurement. To learn more about units of size measurement, see [Layout inside the
1256
1259
  * card](../../layout.dita).
1257
1260
  */
1258
- unit?: Type<DivSizeUnit> | DivExpression;
1261
+ unit?: Type<DivSizeUnit | DivExpression>;
1259
1262
  /**
1260
1263
  * Element size.
1261
1264
  */
1262
- value: Type<number> | DivExpression;
1265
+ value: Type<number | DivExpression>;
1263
1266
  constructor(props: Exact<DivFixedSizeProps, T>);
1264
1267
  }
1265
1268
  interface DivFixedSizeProps {
@@ -1267,11 +1270,11 @@ interface DivFixedSizeProps {
1267
1270
  * Unit of measurement. To learn more about units of size measurement, see [Layout inside the
1268
1271
  * card](../../layout.dita).
1269
1272
  */
1270
- unit?: Type<DivSizeUnit> | DivExpression;
1273
+ unit?: Type<DivSizeUnit | DivExpression>;
1271
1274
  /**
1272
1275
  * Element size.
1273
1276
  */
1274
- value: Type<number> | DivExpression;
1277
+ value: Type<number | DivExpression>;
1275
1278
  }
1276
1279
 
1277
1280
  /**
@@ -1303,11 +1306,11 @@ interface IDivFocus {
1303
1306
  * IDs of elements that will be next to get focus.
1304
1307
  */
1305
1308
  interface IDivFocusNextFocusIds {
1306
- down?: Type<string> | DivExpression;
1307
- forward?: Type<string> | DivExpression;
1308
- left?: Type<string> | DivExpression;
1309
- right?: Type<string> | DivExpression;
1310
- up?: Type<string> | DivExpression;
1309
+ down?: Type<string | DivExpression>;
1310
+ forward?: Type<string | DivExpression>;
1311
+ left?: Type<string | DivExpression>;
1312
+ right?: Type<string | DivExpression>;
1313
+ up?: Type<string | DivExpression>;
1311
1314
  }
1312
1315
 
1313
1316
  declare type DivFontFamily = 'text' | 'display';
@@ -1327,15 +1330,15 @@ declare class DivGallery<T extends DivGalleryProps = DivGalleryProps> {
1327
1330
  /**
1328
1331
  * Horizontal alignment of an element inside the parent element.
1329
1332
  */
1330
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
1333
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
1331
1334
  /**
1332
1335
  * Vertical alignment of an element inside the parent element.
1333
1336
  */
1334
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
1337
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
1335
1338
  /**
1336
1339
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
1337
1340
  */
1338
- alpha?: Type<number> | DivExpression;
1341
+ alpha?: Type<number | DivExpression>;
1339
1342
  /**
1340
1343
  * Element background. It can contain multiple layers.
1341
1344
  */
@@ -1347,25 +1350,25 @@ declare class DivGallery<T extends DivGalleryProps = DivGalleryProps> {
1347
1350
  /**
1348
1351
  * Number of columns for block layout.
1349
1352
  */
1350
- column_count?: Type<number> | DivExpression;
1353
+ column_count?: Type<number | DivExpression>;
1351
1354
  /**
1352
1355
  * Merges cells in a column of the [grid](div-grid.md) element.
1353
1356
  */
1354
- column_span?: Type<number> | DivExpression;
1357
+ column_span?: Type<number | DivExpression>;
1355
1358
  /**
1356
1359
  * Aligning elements in the direction perpendicular to the scroll direction. In horizontal
1357
1360
  * galleries:`start` — alignment to the top of the card;`center` — to the center;`end` — to the
1358
1361
  * bottom.</p><p>In vertical galleries:`start` — alignment to the left of the card;`center` — to
1359
1362
  * the center;`end` — to the right.
1360
1363
  */
1361
- cross_content_alignment?: Type<DivGalleryCrossContentAlignment> | DivExpression;
1364
+ cross_content_alignment?: Type<DivGalleryCrossContentAlignment | DivExpression>;
1362
1365
  /**
1363
1366
  * Ordinal number of the gallery element to be scrolled to by default. For
1364
1367
  * `scroll_mode`:`default` — the scroll position is set to the beginning of the element, without
1365
1368
  * taking into account `item_spacing`;`paging` — the scroll position is set to the center of the
1366
1369
  * element.
1367
1370
  */
1368
- default_item?: Type<number> | DivExpression;
1371
+ default_item?: Type<number | DivExpression>;
1369
1372
  /**
1370
1373
  * Extensions for additional processing of an element. The list of extensions is given in
1371
1374
  * [DivExtension](../../extensions.dita).
@@ -1389,7 +1392,7 @@ declare class DivGallery<T extends DivGalleryProps = DivGalleryProps> {
1389
1392
  /**
1390
1393
  * Spacing between elements.
1391
1394
  */
1392
- item_spacing?: Type<number> | DivExpression;
1395
+ item_spacing?: Type<number | DivExpression>;
1393
1396
  /**
1394
1397
  * Gallery elements. Scrolling to elements can be implemented
1395
1398
  * using:`div-action://set_current_item?id=&item=` — scrolling to the element with an ordinal
@@ -1410,7 +1413,7 @@ declare class DivGallery<T extends DivGalleryProps = DivGalleryProps> {
1410
1413
  /**
1411
1414
  * Gallery orientation.
1412
1415
  */
1413
- orientation?: Type<DivGalleryOrientation> | DivExpression;
1416
+ orientation?: Type<DivGalleryOrientation | DivExpression>;
1414
1417
  /**
1415
1418
  * Internal margins from the element stroke.
1416
1419
  */
@@ -1419,15 +1422,15 @@ declare class DivGallery<T extends DivGalleryProps = DivGalleryProps> {
1419
1422
  * If the parameter is enabled, the gallery won't transmit the scroll gesture to the parent
1420
1423
  * element.
1421
1424
  */
1422
- restrict_parent_scroll?: Type<IntBoolean> | DivExpression;
1425
+ restrict_parent_scroll?: Type<IntBoolean | DivExpression>;
1423
1426
  /**
1424
1427
  * Merges cells in a string of the [grid](div-grid.md) element.
1425
1428
  */
1426
- row_span?: Type<number> | DivExpression;
1429
+ row_span?: Type<number | DivExpression>;
1427
1430
  /**
1428
1431
  * Scroll type: `default` — continuous, `paging` — page-by-page.
1429
1432
  */
1430
- scroll_mode?: Type<DivGalleryScrollMode> | DivExpression;
1433
+ scroll_mode?: Type<DivGalleryScrollMode | DivExpression>;
1431
1434
  /**
1432
1435
  * List of [actions](div-action.md) to be executed when selecting an element in
1433
1436
  * [pager](div-pager.md).
@@ -1465,7 +1468,7 @@ declare class DivGallery<T extends DivGalleryProps = DivGalleryProps> {
1465
1468
  /**
1466
1469
  * Element visibility.
1467
1470
  */
1468
- visibility?: Type<DivVisibility> | DivExpression;
1471
+ visibility?: Type<DivVisibility | DivExpression>;
1469
1472
  /**
1470
1473
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
1471
1474
  * set.
@@ -1489,15 +1492,15 @@ interface DivGalleryProps {
1489
1492
  /**
1490
1493
  * Horizontal alignment of an element inside the parent element.
1491
1494
  */
1492
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
1495
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
1493
1496
  /**
1494
1497
  * Vertical alignment of an element inside the parent element.
1495
1498
  */
1496
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
1499
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
1497
1500
  /**
1498
1501
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
1499
1502
  */
1500
- alpha?: Type<number> | DivExpression;
1503
+ alpha?: Type<number | DivExpression>;
1501
1504
  /**
1502
1505
  * Element background. It can contain multiple layers.
1503
1506
  */
@@ -1509,25 +1512,25 @@ interface DivGalleryProps {
1509
1512
  /**
1510
1513
  * Number of columns for block layout.
1511
1514
  */
1512
- column_count?: Type<number> | DivExpression;
1515
+ column_count?: Type<number | DivExpression>;
1513
1516
  /**
1514
1517
  * Merges cells in a column of the [grid](div-grid.md) element.
1515
1518
  */
1516
- column_span?: Type<number> | DivExpression;
1519
+ column_span?: Type<number | DivExpression>;
1517
1520
  /**
1518
1521
  * Aligning elements in the direction perpendicular to the scroll direction. In horizontal
1519
1522
  * galleries:`start` — alignment to the top of the card;`center` — to the center;`end` — to the
1520
1523
  * bottom.</p><p>In vertical galleries:`start` — alignment to the left of the card;`center` — to
1521
1524
  * the center;`end` — to the right.
1522
1525
  */
1523
- cross_content_alignment?: Type<DivGalleryCrossContentAlignment> | DivExpression;
1526
+ cross_content_alignment?: Type<DivGalleryCrossContentAlignment | DivExpression>;
1524
1527
  /**
1525
1528
  * Ordinal number of the gallery element to be scrolled to by default. For
1526
1529
  * `scroll_mode`:`default` — the scroll position is set to the beginning of the element, without
1527
1530
  * taking into account `item_spacing`;`paging` — the scroll position is set to the center of the
1528
1531
  * element.
1529
1532
  */
1530
- default_item?: Type<number> | DivExpression;
1533
+ default_item?: Type<number | DivExpression>;
1531
1534
  /**
1532
1535
  * Extensions for additional processing of an element. The list of extensions is given in
1533
1536
  * [DivExtension](../../extensions.dita).
@@ -1551,7 +1554,7 @@ interface DivGalleryProps {
1551
1554
  /**
1552
1555
  * Spacing between elements.
1553
1556
  */
1554
- item_spacing?: Type<number> | DivExpression;
1557
+ item_spacing?: Type<number | DivExpression>;
1555
1558
  /**
1556
1559
  * Gallery elements. Scrolling to elements can be implemented
1557
1560
  * using:`div-action://set_current_item?id=&item=` — scrolling to the element with an ordinal
@@ -1572,7 +1575,7 @@ interface DivGalleryProps {
1572
1575
  /**
1573
1576
  * Gallery orientation.
1574
1577
  */
1575
- orientation?: Type<DivGalleryOrientation> | DivExpression;
1578
+ orientation?: Type<DivGalleryOrientation | DivExpression>;
1576
1579
  /**
1577
1580
  * Internal margins from the element stroke.
1578
1581
  */
@@ -1581,15 +1584,15 @@ interface DivGalleryProps {
1581
1584
  * If the parameter is enabled, the gallery won't transmit the scroll gesture to the parent
1582
1585
  * element.
1583
1586
  */
1584
- restrict_parent_scroll?: Type<IntBoolean> | DivExpression;
1587
+ restrict_parent_scroll?: Type<IntBoolean | DivExpression>;
1585
1588
  /**
1586
1589
  * Merges cells in a string of the [grid](div-grid.md) element.
1587
1590
  */
1588
- row_span?: Type<number> | DivExpression;
1591
+ row_span?: Type<number | DivExpression>;
1589
1592
  /**
1590
1593
  * Scroll type: `default` — continuous, `paging` — page-by-page.
1591
1594
  */
1592
- scroll_mode?: Type<DivGalleryScrollMode> | DivExpression;
1595
+ scroll_mode?: Type<DivGalleryScrollMode | DivExpression>;
1593
1596
  /**
1594
1597
  * List of [actions](div-action.md) to be executed when selecting an element in
1595
1598
  * [pager](div-pager.md).
@@ -1627,7 +1630,7 @@ interface DivGalleryProps {
1627
1630
  /**
1628
1631
  * Element visibility.
1629
1632
  */
1630
- visibility?: Type<DivVisibility> | DivExpression;
1633
+ visibility?: Type<DivVisibility | DivExpression>;
1631
1634
  /**
1632
1635
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
1633
1636
  * set.
@@ -1671,15 +1674,15 @@ declare class DivGifImage<T extends DivGifImageProps = DivGifImageProps> {
1671
1674
  /**
1672
1675
  * Horizontal alignment of an element inside the parent element.
1673
1676
  */
1674
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
1677
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
1675
1678
  /**
1676
1679
  * Vertical alignment of an element inside the parent element.
1677
1680
  */
1678
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
1681
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
1679
1682
  /**
1680
1683
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
1681
1684
  */
1682
- alpha?: Type<number> | DivExpression;
1685
+ alpha?: Type<number | DivExpression>;
1683
1686
  aspect?: Type<IDivAspect>;
1684
1687
  /**
1685
1688
  * Element background. It can contain multiple layers.
@@ -1692,15 +1695,15 @@ declare class DivGifImage<T extends DivGifImageProps = DivGifImageProps> {
1692
1695
  /**
1693
1696
  * Merges cells in a column of the [grid](div-grid.md) element.
1694
1697
  */
1695
- column_span?: Type<number> | DivExpression;
1698
+ column_span?: Type<number | DivExpression>;
1696
1699
  /**
1697
1700
  * Horizontal image alignment.
1698
1701
  */
1699
- content_alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
1702
+ content_alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
1700
1703
  /**
1701
1704
  * Vertical image alignment.
1702
1705
  */
1703
- content_alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
1706
+ content_alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
1704
1707
  /**
1705
1708
  * Action when double-clicking on an element.
1706
1709
  */
@@ -1717,7 +1720,7 @@ declare class DivGifImage<T extends DivGifImageProps = DivGifImageProps> {
1717
1720
  /**
1718
1721
  * Direct URL to a GIF image.
1719
1722
  */
1720
- gif_url: Type<string> | DivExpression;
1723
+ gif_url: Type<string | DivExpression>;
1721
1724
  /**
1722
1725
  * Element height. For Android: if there is text in this or in a child element, specify height in
1723
1726
  * `sp` to scale the element together with the text. To learn more about units of size
@@ -1744,25 +1747,25 @@ declare class DivGifImage<T extends DivGifImageProps = DivGifImageProps> {
1744
1747
  /**
1745
1748
  * Placeholder background before the image is loaded.
1746
1749
  */
1747
- placeholder_color?: Type<string> | DivExpression;
1750
+ placeholder_color?: Type<string | DivExpression>;
1748
1751
  /**
1749
1752
  * Background image must be loaded before the display.
1750
1753
  */
1751
- preload_required?: Type<IntBoolean> | DivExpression;
1754
+ preload_required?: Type<IntBoolean | DivExpression>;
1752
1755
  /**
1753
1756
  * Image preview encoded in `base64`. It will be shown instead of `placeholder_color` before the
1754
1757
  * image is loaded. Format `data url`: `data:[;base64],<data>`
1755
1758
  */
1756
- preview?: Type<string> | DivExpression;
1759
+ preview?: Type<string | DivExpression>;
1757
1760
  /**
1758
1761
  * Merges cells in a string of the [grid](div-grid.md) element.
1759
1762
  */
1760
- row_span?: Type<number> | DivExpression;
1763
+ row_span?: Type<number | DivExpression>;
1761
1764
  /**
1762
1765
  * Image scaling:`fit` places the entire image into the element (free space is filled with
1763
1766
  * background);`fill` scales the image to the element size and cuts off the excess.
1764
1767
  */
1765
- scale?: Type<DivImageScale> | DivExpression;
1768
+ scale?: Type<DivImageScale | DivExpression>;
1766
1769
  /**
1767
1770
  * List of [actions](div-action.md) to be executed when selecting an element in
1768
1771
  * [pager](div-pager.md).
@@ -1800,7 +1803,7 @@ declare class DivGifImage<T extends DivGifImageProps = DivGifImageProps> {
1800
1803
  /**
1801
1804
  * Element visibility.
1802
1805
  */
1803
- visibility?: Type<DivVisibility> | DivExpression;
1806
+ visibility?: Type<DivVisibility | DivExpression>;
1804
1807
  /**
1805
1808
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
1806
1809
  * set.
@@ -1836,15 +1839,15 @@ interface DivGifImageProps {
1836
1839
  /**
1837
1840
  * Horizontal alignment of an element inside the parent element.
1838
1841
  */
1839
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
1842
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
1840
1843
  /**
1841
1844
  * Vertical alignment of an element inside the parent element.
1842
1845
  */
1843
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
1846
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
1844
1847
  /**
1845
1848
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
1846
1849
  */
1847
- alpha?: Type<number> | DivExpression;
1850
+ alpha?: Type<number | DivExpression>;
1848
1851
  aspect?: Type<IDivAspect>;
1849
1852
  /**
1850
1853
  * Element background. It can contain multiple layers.
@@ -1857,15 +1860,15 @@ interface DivGifImageProps {
1857
1860
  /**
1858
1861
  * Merges cells in a column of the [grid](div-grid.md) element.
1859
1862
  */
1860
- column_span?: Type<number> | DivExpression;
1863
+ column_span?: Type<number | DivExpression>;
1861
1864
  /**
1862
1865
  * Horizontal image alignment.
1863
1866
  */
1864
- content_alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
1867
+ content_alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
1865
1868
  /**
1866
1869
  * Vertical image alignment.
1867
1870
  */
1868
- content_alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
1871
+ content_alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
1869
1872
  /**
1870
1873
  * Action when double-clicking on an element.
1871
1874
  */
@@ -1882,7 +1885,7 @@ interface DivGifImageProps {
1882
1885
  /**
1883
1886
  * Direct URL to a GIF image.
1884
1887
  */
1885
- gif_url: Type<string> | DivExpression;
1888
+ gif_url: Type<string | DivExpression>;
1886
1889
  /**
1887
1890
  * Element height. For Android: if there is text in this or in a child element, specify height in
1888
1891
  * `sp` to scale the element together with the text. To learn more about units of size
@@ -1909,25 +1912,25 @@ interface DivGifImageProps {
1909
1912
  /**
1910
1913
  * Placeholder background before the image is loaded.
1911
1914
  */
1912
- placeholder_color?: Type<string> | DivExpression;
1915
+ placeholder_color?: Type<string | DivExpression>;
1913
1916
  /**
1914
1917
  * Background image must be loaded before the display.
1915
1918
  */
1916
- preload_required?: Type<IntBoolean> | DivExpression;
1919
+ preload_required?: Type<IntBoolean | DivExpression>;
1917
1920
  /**
1918
1921
  * Image preview encoded in `base64`. It will be shown instead of `placeholder_color` before the
1919
1922
  * image is loaded. Format `data url`: `data:[;base64],<data>`
1920
1923
  */
1921
- preview?: Type<string> | DivExpression;
1924
+ preview?: Type<string | DivExpression>;
1922
1925
  /**
1923
1926
  * Merges cells in a string of the [grid](div-grid.md) element.
1924
1927
  */
1925
- row_span?: Type<number> | DivExpression;
1928
+ row_span?: Type<number | DivExpression>;
1926
1929
  /**
1927
1930
  * Image scaling:`fit` places the entire image into the element (free space is filled with
1928
1931
  * background);`fill` scales the image to the element size and cuts off the excess.
1929
1932
  */
1930
- scale?: Type<DivImageScale> | DivExpression;
1933
+ scale?: Type<DivImageScale | DivExpression>;
1931
1934
  /**
1932
1935
  * List of [actions](div-action.md) to be executed when selecting an element in
1933
1936
  * [pager](div-pager.md).
@@ -1965,7 +1968,7 @@ interface DivGifImageProps {
1965
1968
  /**
1966
1969
  * Element visibility.
1967
1970
  */
1968
- visibility?: Type<DivVisibility> | DivExpression;
1971
+ visibility?: Type<DivVisibility | DivExpression>;
1969
1972
  /**
1970
1973
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
1971
1974
  * set.
@@ -2006,15 +2009,15 @@ declare class DivGrid<T extends DivGridProps = DivGridProps> {
2006
2009
  /**
2007
2010
  * Horizontal alignment of an element inside the parent element.
2008
2011
  */
2009
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
2012
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
2010
2013
  /**
2011
2014
  * Vertical alignment of an element inside the parent element.
2012
2015
  */
2013
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
2016
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
2014
2017
  /**
2015
2018
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
2016
2019
  */
2017
- alpha?: Type<number> | DivExpression;
2020
+ alpha?: Type<number | DivExpression>;
2018
2021
  /**
2019
2022
  * Element background. It can contain multiple layers.
2020
2023
  */
@@ -2026,19 +2029,19 @@ declare class DivGrid<T extends DivGridProps = DivGridProps> {
2026
2029
  /**
2027
2030
  * Number of columns.
2028
2031
  */
2029
- column_count: Type<number> | DivExpression;
2032
+ column_count: Type<number | DivExpression>;
2030
2033
  /**
2031
2034
  * Merges cells in a column of the [grid](div-grid.md) element.
2032
2035
  */
2033
- column_span?: Type<number> | DivExpression;
2036
+ column_span?: Type<number | DivExpression>;
2034
2037
  /**
2035
2038
  * Horizontal alignment of grid contents.
2036
2039
  */
2037
- content_alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
2040
+ content_alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
2038
2041
  /**
2039
2042
  * Vertical alignment of grid contents.
2040
2043
  */
2041
- content_alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
2044
+ content_alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
2042
2045
  /**
2043
2046
  * Action when double-clicking on an element.
2044
2047
  */
@@ -2082,7 +2085,7 @@ declare class DivGrid<T extends DivGridProps = DivGridProps> {
2082
2085
  /**
2083
2086
  * Merges cells in a string of the [grid](div-grid.md) element.
2084
2087
  */
2085
- row_span?: Type<number> | DivExpression;
2088
+ row_span?: Type<number | DivExpression>;
2086
2089
  /**
2087
2090
  * List of [actions](div-action.md) to be executed when selecting an element in
2088
2091
  * [pager](div-pager.md).
@@ -2120,7 +2123,7 @@ declare class DivGrid<T extends DivGridProps = DivGridProps> {
2120
2123
  /**
2121
2124
  * Element visibility.
2122
2125
  */
2123
- visibility?: Type<DivVisibility> | DivExpression;
2126
+ visibility?: Type<DivVisibility | DivExpression>;
2124
2127
  /**
2125
2128
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
2126
2129
  * set.
@@ -2156,15 +2159,15 @@ interface DivGridProps {
2156
2159
  /**
2157
2160
  * Horizontal alignment of an element inside the parent element.
2158
2161
  */
2159
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
2162
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
2160
2163
  /**
2161
2164
  * Vertical alignment of an element inside the parent element.
2162
2165
  */
2163
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
2166
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
2164
2167
  /**
2165
2168
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
2166
2169
  */
2167
- alpha?: Type<number> | DivExpression;
2170
+ alpha?: Type<number | DivExpression>;
2168
2171
  /**
2169
2172
  * Element background. It can contain multiple layers.
2170
2173
  */
@@ -2176,19 +2179,19 @@ interface DivGridProps {
2176
2179
  /**
2177
2180
  * Number of columns.
2178
2181
  */
2179
- column_count: Type<number> | DivExpression;
2182
+ column_count: Type<number | DivExpression>;
2180
2183
  /**
2181
2184
  * Merges cells in a column of the [grid](div-grid.md) element.
2182
2185
  */
2183
- column_span?: Type<number> | DivExpression;
2186
+ column_span?: Type<number | DivExpression>;
2184
2187
  /**
2185
2188
  * Horizontal alignment of grid contents.
2186
2189
  */
2187
- content_alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
2190
+ content_alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
2188
2191
  /**
2189
2192
  * Vertical alignment of grid contents.
2190
2193
  */
2191
- content_alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
2194
+ content_alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
2192
2195
  /**
2193
2196
  * Action when double-clicking on an element.
2194
2197
  */
@@ -2232,7 +2235,7 @@ interface DivGridProps {
2232
2235
  /**
2233
2236
  * Merges cells in a string of the [grid](div-grid.md) element.
2234
2237
  */
2235
- row_span?: Type<number> | DivExpression;
2238
+ row_span?: Type<number | DivExpression>;
2236
2239
  /**
2237
2240
  * List of [actions](div-action.md) to be executed when selecting an element in
2238
2241
  * [pager](div-pager.md).
@@ -2270,7 +2273,7 @@ interface DivGridProps {
2270
2273
  /**
2271
2274
  * Element visibility.
2272
2275
  */
2273
- visibility?: Type<DivVisibility> | DivExpression;
2276
+ visibility?: Type<DivVisibility | DivExpression>;
2274
2277
  /**
2275
2278
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
2276
2279
  * set.
@@ -2311,15 +2314,15 @@ declare class DivImage<T extends DivImageProps = DivImageProps> {
2311
2314
  /**
2312
2315
  * Horizontal alignment of an element inside the parent element.
2313
2316
  */
2314
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
2317
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
2315
2318
  /**
2316
2319
  * Vertical alignment of an element inside the parent element.
2317
2320
  */
2318
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
2321
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
2319
2322
  /**
2320
2323
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
2321
2324
  */
2322
- alpha?: Type<number> | DivExpression;
2325
+ alpha?: Type<number | DivExpression>;
2323
2326
  /**
2324
2327
  * Transparency animation when loading an image.
2325
2328
  */
@@ -2336,15 +2339,15 @@ declare class DivImage<T extends DivImageProps = DivImageProps> {
2336
2339
  /**
2337
2340
  * Merges cells in a column of the [grid](div-grid.md) element.
2338
2341
  */
2339
- column_span?: Type<number> | DivExpression;
2342
+ column_span?: Type<number | DivExpression>;
2340
2343
  /**
2341
2344
  * Horizontal image alignment.
2342
2345
  */
2343
- content_alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
2346
+ content_alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
2344
2347
  /**
2345
2348
  * Vertical image alignment.
2346
2349
  */
2347
- content_alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
2350
+ content_alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
2348
2351
  /**
2349
2352
  * Action when double-clicking on an element.
2350
2353
  */
@@ -2369,7 +2372,7 @@ declare class DivImage<T extends DivImageProps = DivImageProps> {
2369
2372
  * displayed as the first frame. Use the parameter carefully — it will worsen the preview display
2370
2373
  * time and can worsen the application launch time.
2371
2374
  */
2372
- high_priority_preview_show?: Type<IntBoolean> | DivExpression;
2375
+ high_priority_preview_show?: Type<IntBoolean | DivExpression>;
2373
2376
  /**
2374
2377
  * Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier`
2375
2378
  * on iOS.
@@ -2378,7 +2381,7 @@ declare class DivImage<T extends DivImageProps = DivImageProps> {
2378
2381
  /**
2379
2382
  * Direct URL to an image.
2380
2383
  */
2381
- image_url: Type<string> | DivExpression;
2384
+ image_url: Type<string | DivExpression>;
2382
2385
  /**
2383
2386
  * Action when long-clicking on an element.
2384
2387
  */
@@ -2394,25 +2397,25 @@ declare class DivImage<T extends DivImageProps = DivImageProps> {
2394
2397
  /**
2395
2398
  * Placeholder background before the image is loaded.
2396
2399
  */
2397
- placeholder_color?: Type<string> | DivExpression;
2400
+ placeholder_color?: Type<string | DivExpression>;
2398
2401
  /**
2399
2402
  * Background image must be loaded before the display.
2400
2403
  */
2401
- preload_required?: Type<IntBoolean> | DivExpression;
2404
+ preload_required?: Type<IntBoolean | DivExpression>;
2402
2405
  /**
2403
2406
  * Image preview encoded in `base64`. It will be shown instead of `placeholder_color` before the
2404
2407
  * image is loaded. Format `data url`: `data:[;base64],<data>`
2405
2408
  */
2406
- preview?: Type<string> | DivExpression;
2409
+ preview?: Type<string | DivExpression>;
2407
2410
  /**
2408
2411
  * Merges cells in a string of the [grid](div-grid.md) element.
2409
2412
  */
2410
- row_span?: Type<number> | DivExpression;
2413
+ row_span?: Type<number | DivExpression>;
2411
2414
  /**
2412
2415
  * Image scaling:`fit` places the entire image into the element (free space is filled with
2413
2416
  * background);`fill` scales the image to the element size and cuts off the excess.
2414
2417
  */
2415
- scale?: Type<DivImageScale> | DivExpression;
2418
+ scale?: Type<DivImageScale | DivExpression>;
2416
2419
  /**
2417
2420
  * List of [actions](div-action.md) to be executed when selecting an element in
2418
2421
  * [pager](div-pager.md).
@@ -2421,7 +2424,7 @@ declare class DivImage<T extends DivImageProps = DivImageProps> {
2421
2424
  /**
2422
2425
  * New color of a contour image.
2423
2426
  */
2424
- tint_color?: Type<string> | DivExpression;
2427
+ tint_color?: Type<string | DivExpression>;
2425
2428
  /**
2426
2429
  * Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
2427
2430
  * hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
@@ -2454,7 +2457,7 @@ declare class DivImage<T extends DivImageProps = DivImageProps> {
2454
2457
  /**
2455
2458
  * Element visibility.
2456
2459
  */
2457
- visibility?: Type<DivVisibility> | DivExpression;
2460
+ visibility?: Type<DivVisibility | DivExpression>;
2458
2461
  /**
2459
2462
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
2460
2463
  * set.
@@ -2490,15 +2493,15 @@ interface DivImageProps {
2490
2493
  /**
2491
2494
  * Horizontal alignment of an element inside the parent element.
2492
2495
  */
2493
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
2496
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
2494
2497
  /**
2495
2498
  * Vertical alignment of an element inside the parent element.
2496
2499
  */
2497
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
2500
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
2498
2501
  /**
2499
2502
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
2500
2503
  */
2501
- alpha?: Type<number> | DivExpression;
2504
+ alpha?: Type<number | DivExpression>;
2502
2505
  /**
2503
2506
  * Transparency animation when loading an image.
2504
2507
  */
@@ -2515,15 +2518,15 @@ interface DivImageProps {
2515
2518
  /**
2516
2519
  * Merges cells in a column of the [grid](div-grid.md) element.
2517
2520
  */
2518
- column_span?: Type<number> | DivExpression;
2521
+ column_span?: Type<number | DivExpression>;
2519
2522
  /**
2520
2523
  * Horizontal image alignment.
2521
2524
  */
2522
- content_alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
2525
+ content_alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
2523
2526
  /**
2524
2527
  * Vertical image alignment.
2525
2528
  */
2526
- content_alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
2529
+ content_alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
2527
2530
  /**
2528
2531
  * Action when double-clicking on an element.
2529
2532
  */
@@ -2548,7 +2551,7 @@ interface DivImageProps {
2548
2551
  * displayed as the first frame. Use the parameter carefully — it will worsen the preview display
2549
2552
  * time and can worsen the application launch time.
2550
2553
  */
2551
- high_priority_preview_show?: Type<IntBoolean> | DivExpression;
2554
+ high_priority_preview_show?: Type<IntBoolean | DivExpression>;
2552
2555
  /**
2553
2556
  * Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier`
2554
2557
  * on iOS.
@@ -2557,7 +2560,7 @@ interface DivImageProps {
2557
2560
  /**
2558
2561
  * Direct URL to an image.
2559
2562
  */
2560
- image_url: Type<string> | DivExpression;
2563
+ image_url: Type<string | DivExpression>;
2561
2564
  /**
2562
2565
  * Action when long-clicking on an element.
2563
2566
  */
@@ -2573,25 +2576,25 @@ interface DivImageProps {
2573
2576
  /**
2574
2577
  * Placeholder background before the image is loaded.
2575
2578
  */
2576
- placeholder_color?: Type<string> | DivExpression;
2579
+ placeholder_color?: Type<string | DivExpression>;
2577
2580
  /**
2578
2581
  * Background image must be loaded before the display.
2579
2582
  */
2580
- preload_required?: Type<IntBoolean> | DivExpression;
2583
+ preload_required?: Type<IntBoolean | DivExpression>;
2581
2584
  /**
2582
2585
  * Image preview encoded in `base64`. It will be shown instead of `placeholder_color` before the
2583
2586
  * image is loaded. Format `data url`: `data:[;base64],<data>`
2584
2587
  */
2585
- preview?: Type<string> | DivExpression;
2588
+ preview?: Type<string | DivExpression>;
2586
2589
  /**
2587
2590
  * Merges cells in a string of the [grid](div-grid.md) element.
2588
2591
  */
2589
- row_span?: Type<number> | DivExpression;
2592
+ row_span?: Type<number | DivExpression>;
2590
2593
  /**
2591
2594
  * Image scaling:`fit` places the entire image into the element (free space is filled with
2592
2595
  * background);`fill` scales the image to the element size and cuts off the excess.
2593
2596
  */
2594
- scale?: Type<DivImageScale> | DivExpression;
2597
+ scale?: Type<DivImageScale | DivExpression>;
2595
2598
  /**
2596
2599
  * List of [actions](div-action.md) to be executed when selecting an element in
2597
2600
  * [pager](div-pager.md).
@@ -2600,7 +2603,7 @@ interface DivImageProps {
2600
2603
  /**
2601
2604
  * New color of a contour image.
2602
2605
  */
2603
- tint_color?: Type<string> | DivExpression;
2606
+ tint_color?: Type<string | DivExpression>;
2604
2607
  /**
2605
2608
  * Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
2606
2609
  * hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
@@ -2633,7 +2636,7 @@ interface DivImageProps {
2633
2636
  /**
2634
2637
  * Element visibility.
2635
2638
  */
2636
- visibility?: Type<DivVisibility> | DivExpression;
2639
+ visibility?: Type<DivVisibility | DivExpression>;
2637
2640
  /**
2638
2641
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
2639
2642
  * set.
@@ -2658,54 +2661,54 @@ declare class DivImageBackground<T extends DivImageBackgroundProps = DivImageBac
2658
2661
  /**
2659
2662
  * Image transparency.
2660
2663
  */
2661
- alpha?: Type<number> | DivExpression;
2664
+ alpha?: Type<number | DivExpression>;
2662
2665
  /**
2663
2666
  * Horizontal image alignment.
2664
2667
  */
2665
- content_alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
2668
+ content_alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
2666
2669
  /**
2667
2670
  * Vertical image alignment.
2668
2671
  */
2669
- content_alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
2672
+ content_alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
2670
2673
  /**
2671
2674
  * Image URL.
2672
2675
  */
2673
- image_url: Type<string> | DivExpression;
2676
+ image_url: Type<string | DivExpression>;
2674
2677
  /**
2675
2678
  * Background image must be loaded before the display.
2676
2679
  */
2677
- preload_required?: Type<IntBoolean> | DivExpression;
2680
+ preload_required?: Type<IntBoolean | DivExpression>;
2678
2681
  /**
2679
2682
  * Image scaling.
2680
2683
  */
2681
- scale?: Type<DivImageScale> | DivExpression;
2684
+ scale?: Type<DivImageScale | DivExpression>;
2682
2685
  constructor(props: Exact<DivImageBackgroundProps, T>);
2683
2686
  }
2684
2687
  interface DivImageBackgroundProps {
2685
2688
  /**
2686
2689
  * Image transparency.
2687
2690
  */
2688
- alpha?: Type<number> | DivExpression;
2691
+ alpha?: Type<number | DivExpression>;
2689
2692
  /**
2690
2693
  * Horizontal image alignment.
2691
2694
  */
2692
- content_alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
2695
+ content_alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
2693
2696
  /**
2694
2697
  * Vertical image alignment.
2695
2698
  */
2696
- content_alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
2699
+ content_alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
2697
2700
  /**
2698
2701
  * Image URL.
2699
2702
  */
2700
- image_url: Type<string> | DivExpression;
2703
+ image_url: Type<string | DivExpression>;
2701
2704
  /**
2702
2705
  * Background image must be loaded before the display.
2703
2706
  */
2704
- preload_required?: Type<IntBoolean> | DivExpression;
2707
+ preload_required?: Type<IntBoolean | DivExpression>;
2705
2708
  /**
2706
2709
  * Image scaling.
2707
2710
  */
2708
- scale?: Type<DivImageScale> | DivExpression;
2711
+ scale?: Type<DivImageScale | DivExpression>;
2709
2712
  }
2710
2713
 
2711
2714
  declare type DivImageScale = 'fill' | 'no_scale' | 'fit';
@@ -2723,27 +2726,27 @@ declare class DivIndicator<T extends DivIndicatorProps = DivIndicatorProps> {
2723
2726
  /**
2724
2727
  * Active indicator color.
2725
2728
  */
2726
- active_item_color?: Type<string> | DivExpression;
2729
+ active_item_color?: Type<string | DivExpression>;
2727
2730
  /**
2728
2731
  * A size multiplier for an active indicator.
2729
2732
  */
2730
- active_item_size?: Type<number> | DivExpression;
2733
+ active_item_size?: Type<number | DivExpression>;
2731
2734
  /**
2732
2735
  * Horizontal alignment of an element inside the parent element.
2733
2736
  */
2734
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
2737
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
2735
2738
  /**
2736
2739
  * Vertical alignment of an element inside the parent element.
2737
2740
  */
2738
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
2741
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
2739
2742
  /**
2740
2743
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
2741
2744
  */
2742
- alpha?: Type<number> | DivExpression;
2745
+ alpha?: Type<number | DivExpression>;
2743
2746
  /**
2744
2747
  * Animation of switching between indicators.
2745
2748
  */
2746
- animation?: Type<DivIndicatorAnimation> | DivExpression;
2749
+ animation?: Type<DivIndicatorAnimation | DivExpression>;
2747
2750
  /**
2748
2751
  * Element background. It can contain multiple layers.
2749
2752
  */
@@ -2755,7 +2758,7 @@ declare class DivIndicator<T extends DivIndicatorProps = DivIndicatorProps> {
2755
2758
  /**
2756
2759
  * Merges cells in a column of the [grid](div-grid.md) element.
2757
2760
  */
2758
- column_span?: Type<number> | DivExpression;
2761
+ column_span?: Type<number | DivExpression>;
2759
2762
  /**
2760
2763
  * Extensions for additional processing of an element. The list of extensions is given in
2761
2764
  * [DivExtension](../../extensions.dita).
@@ -2779,7 +2782,7 @@ declare class DivIndicator<T extends DivIndicatorProps = DivIndicatorProps> {
2779
2782
  /**
2780
2783
  * Indicator color.
2781
2784
  */
2782
- inactive_item_color?: Type<string> | DivExpression;
2785
+ inactive_item_color?: Type<string | DivExpression>;
2783
2786
  /**
2784
2787
  * External margins from the element stroke.
2785
2788
  */
@@ -2788,7 +2791,7 @@ declare class DivIndicator<T extends DivIndicatorProps = DivIndicatorProps> {
2788
2791
  * A size multiplier for a minimal indicator. It is used when the required number of indicators
2789
2792
  * don't fit on the screen.
2790
2793
  */
2791
- minimum_item_size?: Type<number> | DivExpression;
2794
+ minimum_item_size?: Type<number | DivExpression>;
2792
2795
  /**
2793
2796
  * Internal margins from the element stroke.
2794
2797
  */
@@ -2800,7 +2803,7 @@ declare class DivIndicator<T extends DivIndicatorProps = DivIndicatorProps> {
2800
2803
  /**
2801
2804
  * Merges cells in a string of the [grid](div-grid.md) element.
2802
2805
  */
2803
- row_span?: Type<number> | DivExpression;
2806
+ row_span?: Type<number | DivExpression>;
2804
2807
  /**
2805
2808
  * List of [actions](div-action.md) to be executed when selecting an element in
2806
2809
  * [pager](div-pager.md).
@@ -2846,7 +2849,7 @@ declare class DivIndicator<T extends DivIndicatorProps = DivIndicatorProps> {
2846
2849
  /**
2847
2850
  * Element visibility.
2848
2851
  */
2849
- visibility?: Type<DivVisibility> | DivExpression;
2852
+ visibility?: Type<DivVisibility | DivExpression>;
2850
2853
  /**
2851
2854
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
2852
2855
  * set.
@@ -2870,27 +2873,27 @@ interface DivIndicatorProps {
2870
2873
  /**
2871
2874
  * Active indicator color.
2872
2875
  */
2873
- active_item_color?: Type<string> | DivExpression;
2876
+ active_item_color?: Type<string | DivExpression>;
2874
2877
  /**
2875
2878
  * A size multiplier for an active indicator.
2876
2879
  */
2877
- active_item_size?: Type<number> | DivExpression;
2880
+ active_item_size?: Type<number | DivExpression>;
2878
2881
  /**
2879
2882
  * Horizontal alignment of an element inside the parent element.
2880
2883
  */
2881
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
2884
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
2882
2885
  /**
2883
2886
  * Vertical alignment of an element inside the parent element.
2884
2887
  */
2885
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
2888
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
2886
2889
  /**
2887
2890
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
2888
2891
  */
2889
- alpha?: Type<number> | DivExpression;
2892
+ alpha?: Type<number | DivExpression>;
2890
2893
  /**
2891
2894
  * Animation of switching between indicators.
2892
2895
  */
2893
- animation?: Type<DivIndicatorAnimation> | DivExpression;
2896
+ animation?: Type<DivIndicatorAnimation | DivExpression>;
2894
2897
  /**
2895
2898
  * Element background. It can contain multiple layers.
2896
2899
  */
@@ -2902,7 +2905,7 @@ interface DivIndicatorProps {
2902
2905
  /**
2903
2906
  * Merges cells in a column of the [grid](div-grid.md) element.
2904
2907
  */
2905
- column_span?: Type<number> | DivExpression;
2908
+ column_span?: Type<number | DivExpression>;
2906
2909
  /**
2907
2910
  * Extensions for additional processing of an element. The list of extensions is given in
2908
2911
  * [DivExtension](../../extensions.dita).
@@ -2926,7 +2929,7 @@ interface DivIndicatorProps {
2926
2929
  /**
2927
2930
  * Indicator color.
2928
2931
  */
2929
- inactive_item_color?: Type<string> | DivExpression;
2932
+ inactive_item_color?: Type<string | DivExpression>;
2930
2933
  /**
2931
2934
  * External margins from the element stroke.
2932
2935
  */
@@ -2935,7 +2938,7 @@ interface DivIndicatorProps {
2935
2938
  * A size multiplier for a minimal indicator. It is used when the required number of indicators
2936
2939
  * don't fit on the screen.
2937
2940
  */
2938
- minimum_item_size?: Type<number> | DivExpression;
2941
+ minimum_item_size?: Type<number | DivExpression>;
2939
2942
  /**
2940
2943
  * Internal margins from the element stroke.
2941
2944
  */
@@ -2947,7 +2950,7 @@ interface DivIndicatorProps {
2947
2950
  /**
2948
2951
  * Merges cells in a string of the [grid](div-grid.md) element.
2949
2952
  */
2950
- row_span?: Type<number> | DivExpression;
2953
+ row_span?: Type<number | DivExpression>;
2951
2954
  /**
2952
2955
  * List of [actions](div-action.md) to be executed when selecting an element in
2953
2956
  * [pager](div-pager.md).
@@ -2993,7 +2996,7 @@ interface DivIndicatorProps {
2993
2996
  /**
2994
2997
  * Element visibility.
2995
2998
  */
2996
- visibility?: Type<DivVisibility> | DivExpression;
2999
+ visibility?: Type<DivVisibility | DivExpression>;
2997
3000
  /**
2998
3001
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
2999
3002
  * set.
@@ -3034,15 +3037,15 @@ declare class DivInput<T extends DivInputProps = DivInputProps> {
3034
3037
  /**
3035
3038
  * Horizontal alignment of an element inside the parent element.
3036
3039
  */
3037
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
3040
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
3038
3041
  /**
3039
3042
  * Vertical alignment of an element inside the parent element.
3040
3043
  */
3041
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
3044
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
3042
3045
  /**
3043
3046
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
3044
3047
  */
3045
- alpha?: Type<number> | DivExpression;
3048
+ alpha?: Type<number | DivExpression>;
3046
3049
  /**
3047
3050
  * Element background. It can contain multiple layers.
3048
3051
  */
@@ -3054,7 +3057,7 @@ declare class DivInput<T extends DivInputProps = DivInputProps> {
3054
3057
  /**
3055
3058
  * Merges cells in a column of the [grid](div-grid.md) element.
3056
3059
  */
3057
- column_span?: Type<number> | DivExpression;
3060
+ column_span?: Type<number | DivExpression>;
3058
3061
  /**
3059
3062
  * Extensions for additional processing of an element. The list of extensions is given in
3060
3063
  * [DivExtension](../../extensions.dita).
@@ -3068,21 +3071,21 @@ declare class DivInput<T extends DivInputProps = DivInputProps> {
3068
3071
  * Font family:`text` — a standard text font;`display` — a family of fonts with a large font
3069
3072
  * size.
3070
3073
  */
3071
- font_family?: Type<DivFontFamily> | DivExpression;
3074
+ font_family?: Type<DivFontFamily | DivExpression>;
3072
3075
  /**
3073
3076
  * Font size.
3074
3077
  */
3075
- font_size?: Type<number> | DivExpression;
3078
+ font_size?: Type<number | DivExpression>;
3076
3079
  /**
3077
3080
  * Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
3078
3081
  * screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
3079
3082
  * height in `sp`. Only available on Android.
3080
3083
  */
3081
- font_size_unit?: Type<DivSizeUnit> | DivExpression;
3084
+ font_size_unit?: Type<DivSizeUnit | DivExpression>;
3082
3085
  /**
3083
3086
  * Style.
3084
3087
  */
3085
- font_weight?: Type<DivFontWeight> | DivExpression;
3088
+ font_weight?: Type<DivFontWeight | DivExpression>;
3086
3089
  /**
3087
3090
  * Element height. For Android: if there is text in this or in a child element, specify height in
3088
3091
  * `sp` to scale the element together with the text. To learn more about units of size
@@ -3093,15 +3096,15 @@ declare class DivInput<T extends DivInputProps = DivInputProps> {
3093
3096
  * Text highlight color. If the value isn't set, the color set in the client will be used
3094
3097
  * instead.
3095
3098
  */
3096
- highlight_color?: Type<string> | DivExpression;
3099
+ highlight_color?: Type<string | DivExpression>;
3097
3100
  /**
3098
3101
  * Text color.
3099
3102
  */
3100
- hint_color?: Type<string> | DivExpression;
3103
+ hint_color?: Type<string | DivExpression>;
3101
3104
  /**
3102
3105
  * Tooltip text.
3103
3106
  */
3104
- hint_text?: Type<string> | DivExpression;
3107
+ hint_text?: Type<string | DivExpression>;
3105
3108
  /**
3106
3109
  * Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier`
3107
3110
  * on iOS.
@@ -3110,16 +3113,16 @@ declare class DivInput<T extends DivInputProps = DivInputProps> {
3110
3113
  /**
3111
3114
  * Keyboard type.
3112
3115
  */
3113
- keyboard_type?: Type<DivInputKeyboardType> | DivExpression;
3116
+ keyboard_type?: Type<DivInputKeyboardType | DivExpression>;
3114
3117
  /**
3115
3118
  * Spacing between characters.
3116
3119
  */
3117
- letter_spacing?: Type<number> | DivExpression;
3120
+ letter_spacing?: Type<number | DivExpression>;
3118
3121
  /**
3119
3122
  * Line spacing of the text range. The count is taken from the font baseline. Measured in units
3120
3123
  * specified in `font_size_unit`.
3121
3124
  */
3122
- line_height?: Type<number> | DivExpression;
3125
+ line_height?: Type<number | DivExpression>;
3123
3126
  /**
3124
3127
  * External margins from the element stroke.
3125
3128
  */
@@ -3127,7 +3130,7 @@ declare class DivInput<T extends DivInputProps = DivInputProps> {
3127
3130
  /**
3128
3131
  * Maximum number of lines that will be visible in the input view.
3129
3132
  */
3130
- max_visible_lines?: Type<number> | DivExpression;
3133
+ max_visible_lines?: Type<number | DivExpression>;
3131
3134
  /**
3132
3135
  * Text input line used in the native interface.
3133
3136
  */
@@ -3139,11 +3142,11 @@ declare class DivInput<T extends DivInputProps = DivInputProps> {
3139
3142
  /**
3140
3143
  * Merges cells in a string of the [grid](div-grid.md) element.
3141
3144
  */
3142
- row_span?: Type<number> | DivExpression;
3145
+ row_span?: Type<number | DivExpression>;
3143
3146
  /**
3144
3147
  * Highlighting input text when focused.
3145
3148
  */
3146
- select_all_on_focus?: Type<IntBoolean> | DivExpression;
3149
+ select_all_on_focus?: Type<IntBoolean | DivExpression>;
3147
3150
  /**
3148
3151
  * List of [actions](div-action.md) to be executed when selecting an element in
3149
3152
  * [pager](div-pager.md).
@@ -3152,7 +3155,7 @@ declare class DivInput<T extends DivInputProps = DivInputProps> {
3152
3155
  /**
3153
3156
  * Text color.
3154
3157
  */
3155
- text_color?: Type<string> | DivExpression;
3158
+ text_color?: Type<string | DivExpression>;
3156
3159
  /**
3157
3160
  * Name of text storage variable.
3158
3161
  */
@@ -3189,7 +3192,7 @@ declare class DivInput<T extends DivInputProps = DivInputProps> {
3189
3192
  /**
3190
3193
  * Element visibility.
3191
3194
  */
3192
- visibility?: Type<DivVisibility> | DivExpression;
3195
+ visibility?: Type<DivVisibility | DivExpression>;
3193
3196
  /**
3194
3197
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
3195
3198
  * set.
@@ -3213,15 +3216,15 @@ interface DivInputProps {
3213
3216
  /**
3214
3217
  * Horizontal alignment of an element inside the parent element.
3215
3218
  */
3216
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
3219
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
3217
3220
  /**
3218
3221
  * Vertical alignment of an element inside the parent element.
3219
3222
  */
3220
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
3223
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
3221
3224
  /**
3222
3225
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
3223
3226
  */
3224
- alpha?: Type<number> | DivExpression;
3227
+ alpha?: Type<number | DivExpression>;
3225
3228
  /**
3226
3229
  * Element background. It can contain multiple layers.
3227
3230
  */
@@ -3233,7 +3236,7 @@ interface DivInputProps {
3233
3236
  /**
3234
3237
  * Merges cells in a column of the [grid](div-grid.md) element.
3235
3238
  */
3236
- column_span?: Type<number> | DivExpression;
3239
+ column_span?: Type<number | DivExpression>;
3237
3240
  /**
3238
3241
  * Extensions for additional processing of an element. The list of extensions is given in
3239
3242
  * [DivExtension](../../extensions.dita).
@@ -3247,21 +3250,21 @@ interface DivInputProps {
3247
3250
  * Font family:`text` — a standard text font;`display` — a family of fonts with a large font
3248
3251
  * size.
3249
3252
  */
3250
- font_family?: Type<DivFontFamily> | DivExpression;
3253
+ font_family?: Type<DivFontFamily | DivExpression>;
3251
3254
  /**
3252
3255
  * Font size.
3253
3256
  */
3254
- font_size?: Type<number> | DivExpression;
3257
+ font_size?: Type<number | DivExpression>;
3255
3258
  /**
3256
3259
  * Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
3257
3260
  * screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
3258
3261
  * height in `sp`. Only available on Android.
3259
3262
  */
3260
- font_size_unit?: Type<DivSizeUnit> | DivExpression;
3263
+ font_size_unit?: Type<DivSizeUnit | DivExpression>;
3261
3264
  /**
3262
3265
  * Style.
3263
3266
  */
3264
- font_weight?: Type<DivFontWeight> | DivExpression;
3267
+ font_weight?: Type<DivFontWeight | DivExpression>;
3265
3268
  /**
3266
3269
  * Element height. For Android: if there is text in this or in a child element, specify height in
3267
3270
  * `sp` to scale the element together with the text. To learn more about units of size
@@ -3272,15 +3275,15 @@ interface DivInputProps {
3272
3275
  * Text highlight color. If the value isn't set, the color set in the client will be used
3273
3276
  * instead.
3274
3277
  */
3275
- highlight_color?: Type<string> | DivExpression;
3278
+ highlight_color?: Type<string | DivExpression>;
3276
3279
  /**
3277
3280
  * Text color.
3278
3281
  */
3279
- hint_color?: Type<string> | DivExpression;
3282
+ hint_color?: Type<string | DivExpression>;
3280
3283
  /**
3281
3284
  * Tooltip text.
3282
3285
  */
3283
- hint_text?: Type<string> | DivExpression;
3286
+ hint_text?: Type<string | DivExpression>;
3284
3287
  /**
3285
3288
  * Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier`
3286
3289
  * on iOS.
@@ -3289,16 +3292,16 @@ interface DivInputProps {
3289
3292
  /**
3290
3293
  * Keyboard type.
3291
3294
  */
3292
- keyboard_type?: Type<DivInputKeyboardType> | DivExpression;
3295
+ keyboard_type?: Type<DivInputKeyboardType | DivExpression>;
3293
3296
  /**
3294
3297
  * Spacing between characters.
3295
3298
  */
3296
- letter_spacing?: Type<number> | DivExpression;
3299
+ letter_spacing?: Type<number | DivExpression>;
3297
3300
  /**
3298
3301
  * Line spacing of the text range. The count is taken from the font baseline. Measured in units
3299
3302
  * specified in `font_size_unit`.
3300
3303
  */
3301
- line_height?: Type<number> | DivExpression;
3304
+ line_height?: Type<number | DivExpression>;
3302
3305
  /**
3303
3306
  * External margins from the element stroke.
3304
3307
  */
@@ -3306,7 +3309,7 @@ interface DivInputProps {
3306
3309
  /**
3307
3310
  * Maximum number of lines that will be visible in the input view.
3308
3311
  */
3309
- max_visible_lines?: Type<number> | DivExpression;
3312
+ max_visible_lines?: Type<number | DivExpression>;
3310
3313
  /**
3311
3314
  * Text input line used in the native interface.
3312
3315
  */
@@ -3318,11 +3321,11 @@ interface DivInputProps {
3318
3321
  /**
3319
3322
  * Merges cells in a string of the [grid](div-grid.md) element.
3320
3323
  */
3321
- row_span?: Type<number> | DivExpression;
3324
+ row_span?: Type<number | DivExpression>;
3322
3325
  /**
3323
3326
  * Highlighting input text when focused.
3324
3327
  */
3325
- select_all_on_focus?: Type<IntBoolean> | DivExpression;
3328
+ select_all_on_focus?: Type<IntBoolean | DivExpression>;
3326
3329
  /**
3327
3330
  * List of [actions](div-action.md) to be executed when selecting an element in
3328
3331
  * [pager](div-pager.md).
@@ -3331,7 +3334,7 @@ interface DivInputProps {
3331
3334
  /**
3332
3335
  * Text color.
3333
3336
  */
3334
- text_color?: Type<string> | DivExpression;
3337
+ text_color?: Type<string | DivExpression>;
3335
3338
  /**
3336
3339
  * Name of text storage variable.
3337
3340
  */
@@ -3368,7 +3371,7 @@ interface DivInputProps {
3368
3371
  /**
3369
3372
  * Element visibility.
3370
3373
  */
3371
- visibility?: Type<DivVisibility> | DivExpression;
3374
+ visibility?: Type<DivVisibility | DivExpression>;
3372
3375
  /**
3373
3376
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
3374
3377
  * set.
@@ -3391,7 +3394,7 @@ interface IDivInputNativeInterface {
3391
3394
  /**
3392
3395
  * Text input line color.
3393
3396
  */
3394
- color: Type<string> | DivExpression;
3397
+ color: Type<string | DivExpression>;
3395
3398
  }
3396
3399
 
3397
3400
  declare type DivLineStyle = 'none' | 'single';
@@ -3405,7 +3408,7 @@ declare class DivLinearGradient<T extends DivLinearGradientProps = DivLinearGrad
3405
3408
  /**
3406
3409
  * Angle of gradient direction.
3407
3410
  */
3408
- angle?: Type<number> | DivExpression;
3411
+ angle?: Type<number | DivExpression>;
3409
3412
  /**
3410
3413
  * Colors. Gradient points will be located at an equal distance from each other.
3411
3414
  */
@@ -3416,7 +3419,7 @@ interface DivLinearGradientProps {
3416
3419
  /**
3417
3420
  * Angle of gradient direction.
3418
3421
  */
3419
- angle?: Type<number> | DivExpression;
3422
+ angle?: Type<number | DivExpression>;
3420
3423
  /**
3421
3424
  * Colors. Gradient points will be located at an equal distance from each other.
3422
3425
  */
@@ -3433,7 +3436,7 @@ declare class DivMatchParentSize<T extends DivMatchParentSizeProps = DivMatchPar
3433
3436
  * Weight when distributing free space between elements with the size type `match_parent` inside
3434
3437
  * an element. If the weight isn't specified, the elements will divide the place equally.
3435
3438
  */
3436
- weight?: Type<number> | DivExpression;
3439
+ weight?: Type<number | DivExpression>;
3437
3440
  constructor(props?: Exact<DivMatchParentSizeProps, T>);
3438
3441
  }
3439
3442
  interface DivMatchParentSizeProps {
@@ -3441,7 +3444,7 @@ interface DivMatchParentSizeProps {
3441
3444
  * Weight when distributing free space between elements with the size type `match_parent` inside
3442
3445
  * an element. If the weight isn't specified, the elements will divide the place equally.
3443
3446
  */
3444
- weight?: Type<number> | DivExpression;
3447
+ weight?: Type<number | DivExpression>;
3445
3448
  }
3446
3449
 
3447
3450
  /**
@@ -3496,15 +3499,15 @@ declare class DivPager<T extends DivPagerProps = DivPagerProps> {
3496
3499
  /**
3497
3500
  * Horizontal alignment of an element inside the parent element.
3498
3501
  */
3499
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
3502
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
3500
3503
  /**
3501
3504
  * Vertical alignment of an element inside the parent element.
3502
3505
  */
3503
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
3506
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
3504
3507
  /**
3505
3508
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
3506
3509
  */
3507
- alpha?: Type<number> | DivExpression;
3510
+ alpha?: Type<number | DivExpression>;
3508
3511
  /**
3509
3512
  * Element background. It can contain multiple layers.
3510
3513
  */
@@ -3516,11 +3519,11 @@ declare class DivPager<T extends DivPagerProps = DivPagerProps> {
3516
3519
  /**
3517
3520
  * Merges cells in a column of the [grid](div-grid.md) element.
3518
3521
  */
3519
- column_span?: Type<number> | DivExpression;
3522
+ column_span?: Type<number | DivExpression>;
3520
3523
  /**
3521
3524
  * Ordinal number of the pager element that will be opened by default.
3522
3525
  */
3523
- default_item?: Type<number> | DivExpression;
3526
+ default_item?: Type<number | DivExpression>;
3524
3527
  /**
3525
3528
  * Extensions for additional processing of an element. The list of extensions is given in
3526
3529
  * [DivExtension](../../extensions.dita).
@@ -3569,7 +3572,7 @@ declare class DivPager<T extends DivPagerProps = DivPagerProps> {
3569
3572
  /**
3570
3573
  * Pager orientation.
3571
3574
  */
3572
- orientation?: Type<DivPagerOrientation> | DivExpression;
3575
+ orientation?: Type<DivPagerOrientation | DivExpression>;
3573
3576
  /**
3574
3577
  * Internal margins from the element stroke.
3575
3578
  */
@@ -3578,11 +3581,11 @@ declare class DivPager<T extends DivPagerProps = DivPagerProps> {
3578
3581
  * If the parameter is enabled, the pager won't transmit the scroll gesture to the parent
3579
3582
  * element.
3580
3583
  */
3581
- restrict_parent_scroll?: Type<IntBoolean> | DivExpression;
3584
+ restrict_parent_scroll?: Type<IntBoolean | DivExpression>;
3582
3585
  /**
3583
3586
  * Merges cells in a string of the [grid](div-grid.md) element.
3584
3587
  */
3585
- row_span?: Type<number> | DivExpression;
3588
+ row_span?: Type<number | DivExpression>;
3586
3589
  /**
3587
3590
  * List of [actions](div-action.md) to be executed when selecting an element in
3588
3591
  * [pager](div-pager.md).
@@ -3620,7 +3623,7 @@ declare class DivPager<T extends DivPagerProps = DivPagerProps> {
3620
3623
  /**
3621
3624
  * Element visibility.
3622
3625
  */
3623
- visibility?: Type<DivVisibility> | DivExpression;
3626
+ visibility?: Type<DivVisibility | DivExpression>;
3624
3627
  /**
3625
3628
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
3626
3629
  * set.
@@ -3644,15 +3647,15 @@ interface DivPagerProps {
3644
3647
  /**
3645
3648
  * Horizontal alignment of an element inside the parent element.
3646
3649
  */
3647
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
3650
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
3648
3651
  /**
3649
3652
  * Vertical alignment of an element inside the parent element.
3650
3653
  */
3651
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
3654
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
3652
3655
  /**
3653
3656
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
3654
3657
  */
3655
- alpha?: Type<number> | DivExpression;
3658
+ alpha?: Type<number | DivExpression>;
3656
3659
  /**
3657
3660
  * Element background. It can contain multiple layers.
3658
3661
  */
@@ -3664,11 +3667,11 @@ interface DivPagerProps {
3664
3667
  /**
3665
3668
  * Merges cells in a column of the [grid](div-grid.md) element.
3666
3669
  */
3667
- column_span?: Type<number> | DivExpression;
3670
+ column_span?: Type<number | DivExpression>;
3668
3671
  /**
3669
3672
  * Ordinal number of the pager element that will be opened by default.
3670
3673
  */
3671
- default_item?: Type<number> | DivExpression;
3674
+ default_item?: Type<number | DivExpression>;
3672
3675
  /**
3673
3676
  * Extensions for additional processing of an element. The list of extensions is given in
3674
3677
  * [DivExtension](../../extensions.dita).
@@ -3717,7 +3720,7 @@ interface DivPagerProps {
3717
3720
  /**
3718
3721
  * Pager orientation.
3719
3722
  */
3720
- orientation?: Type<DivPagerOrientation> | DivExpression;
3723
+ orientation?: Type<DivPagerOrientation | DivExpression>;
3721
3724
  /**
3722
3725
  * Internal margins from the element stroke.
3723
3726
  */
@@ -3726,11 +3729,11 @@ interface DivPagerProps {
3726
3729
  * If the parameter is enabled, the pager won't transmit the scroll gesture to the parent
3727
3730
  * element.
3728
3731
  */
3729
- restrict_parent_scroll?: Type<IntBoolean> | DivExpression;
3732
+ restrict_parent_scroll?: Type<IntBoolean | DivExpression>;
3730
3733
  /**
3731
3734
  * Merges cells in a string of the [grid](div-grid.md) element.
3732
3735
  */
3733
- row_span?: Type<number> | DivExpression;
3736
+ row_span?: Type<number | DivExpression>;
3734
3737
  /**
3735
3738
  * List of [actions](div-action.md) to be executed when selecting an element in
3736
3739
  * [pager](div-pager.md).
@@ -3768,7 +3771,7 @@ interface DivPagerProps {
3768
3771
  /**
3769
3772
  * Element visibility.
3770
3773
  */
3771
- visibility?: Type<DivVisibility> | DivExpression;
3774
+ visibility?: Type<DivVisibility | DivExpression>;
3772
3775
  /**
3773
3776
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
3774
3777
  * set.
@@ -3800,7 +3803,7 @@ interface IDivPatch {
3800
3803
  * least one element, the changes aren't applied.`partial` — all possible changes are applied. If
3801
3804
  * there are errors, they are reported.
3802
3805
  */
3803
- mode?: Type<DivPatchMode> | DivExpression;
3806
+ mode?: Type<DivPatchMode | DivExpression>;
3804
3807
  }
3805
3808
  declare type DivPatchMode = 'transactional' | 'partial';
3806
3809
  interface IDivPatchChange {
@@ -3823,14 +3826,14 @@ declare class DivPercentageSize<T extends DivPercentageSizeProps = DivPercentage
3823
3826
  /**
3824
3827
  * Element size value.
3825
3828
  */
3826
- value: Type<number> | DivExpression;
3829
+ value: Type<number | DivExpression>;
3827
3830
  constructor(props: Exact<DivPercentageSizeProps, T>);
3828
3831
  }
3829
3832
  interface DivPercentageSizeProps {
3830
3833
  /**
3831
3834
  * Element size value.
3832
3835
  */
3833
- value: Type<number> | DivExpression;
3836
+ value: Type<number | DivExpression>;
3834
3837
  }
3835
3838
 
3836
3839
  declare type DivPivot = DivPivotFixed | DivPivotPercentage;
@@ -3845,11 +3848,11 @@ declare class DivPivotFixed<T extends DivPivotFixedProps = DivPivotFixedProps> {
3845
3848
  * Unit of size measurement. To learn more about units of size measurement, see [Layout inside
3846
3849
  * the card](../../layout.dita).
3847
3850
  */
3848
- unit?: Type<DivSizeUnit> | DivExpression;
3851
+ unit?: Type<DivSizeUnit | DivExpression>;
3849
3852
  /**
3850
3853
  * Offset.
3851
3854
  */
3852
- value?: Type<number> | DivExpression;
3855
+ value?: Type<number | DivExpression>;
3853
3856
  constructor(props?: Exact<DivPivotFixedProps, T>);
3854
3857
  }
3855
3858
  interface DivPivotFixedProps {
@@ -3857,11 +3860,11 @@ interface DivPivotFixedProps {
3857
3860
  * Unit of size measurement. To learn more about units of size measurement, see [Layout inside
3858
3861
  * the card](../../layout.dita).
3859
3862
  */
3860
- unit?: Type<DivSizeUnit> | DivExpression;
3863
+ unit?: Type<DivSizeUnit | DivExpression>;
3861
3864
  /**
3862
3865
  * Offset.
3863
3866
  */
3864
- value?: Type<number> | DivExpression;
3867
+ value?: Type<number | DivExpression>;
3865
3868
  }
3866
3869
 
3867
3870
  /**
@@ -3873,14 +3876,14 @@ declare class DivPivotPercentage<T extends DivPivotPercentageProps = DivPivotPer
3873
3876
  /**
3874
3877
  * Location of the element.
3875
3878
  */
3876
- value: Type<number> | DivExpression;
3879
+ value: Type<number | DivExpression>;
3877
3880
  constructor(props: Exact<DivPivotPercentageProps, T>);
3878
3881
  }
3879
3882
  interface DivPivotPercentageProps {
3880
3883
  /**
3881
3884
  * Location of the element.
3882
3885
  */
3883
- value: Type<number> | DivExpression;
3886
+ value: Type<number | DivExpression>;
3884
3887
  }
3885
3888
 
3886
3889
  /**
@@ -3904,46 +3907,114 @@ declare class DivRadialGradient<T extends DivRadialGradientProps = DivRadialGrad
3904
3907
  readonly _props?: Exact<DivRadialGradientProps, T>;
3905
3908
  readonly type = "radial_gradient";
3906
3909
  /**
3907
- * Shift of the central point of the gradient relative to the left edge along the X axis in the
3908
- * range `0..1`.
3910
+ * Shift of the central point of the gradient relative to the left edge along the X axis.
3909
3911
  */
3910
- center_x?: Type<number> | DivExpression;
3912
+ center_x?: Type<DivRadialGradientCenter>;
3911
3913
  /**
3912
- * Shift of the central point of the gradient relative to the upper edge along the Y axis in the
3913
- * range `0..1`.
3914
+ * Shift of the central point of the gradient relative to the upper edge along the Y axis.
3914
3915
  */
3915
- center_y?: Type<number> | DivExpression;
3916
+ center_y?: Type<DivRadialGradientCenter>;
3916
3917
  /**
3917
3918
  * Colors. Gradient points will be located at an equal distance from each other.
3918
3919
  */
3919
3920
  colors: Type<NonEmptyArray<string | DivExpression>>;
3920
3921
  /**
3921
- * Radius of the gradient transition in `dp`.
3922
+ * Radius of the gradient transition.
3922
3923
  */
3923
- radius: Type<number> | DivExpression;
3924
+ radius?: Type<DivRadialGradientRadius>;
3924
3925
  constructor(props: Exact<DivRadialGradientProps, T>);
3925
3926
  }
3926
3927
  interface DivRadialGradientProps {
3927
3928
  /**
3928
- * Shift of the central point of the gradient relative to the left edge along the X axis in the
3929
- * range `0..1`.
3929
+ * Shift of the central point of the gradient relative to the left edge along the X axis.
3930
3930
  */
3931
- center_x?: Type<number> | DivExpression;
3931
+ center_x?: Type<DivRadialGradientCenter>;
3932
3932
  /**
3933
- * Shift of the central point of the gradient relative to the upper edge along the Y axis in the
3934
- * range `0..1`.
3933
+ * Shift of the central point of the gradient relative to the upper edge along the Y axis.
3935
3934
  */
3936
- center_y?: Type<number> | DivExpression;
3935
+ center_y?: Type<DivRadialGradientCenter>;
3937
3936
  /**
3938
3937
  * Colors. Gradient points will be located at an equal distance from each other.
3939
3938
  */
3940
3939
  colors: Type<NonEmptyArray<string | DivExpression>>;
3941
3940
  /**
3942
- * Radius of the gradient transition in `dp`.
3941
+ * Radius of the gradient transition.
3942
+ */
3943
+ radius?: Type<DivRadialGradientRadius>;
3944
+ }
3945
+
3946
+ declare type DivRadialGradientCenter = DivRadialGradientFixedCenter | DivRadialGradientRelativeCenter;
3947
+
3948
+ /**
3949
+ * Fixed central point of the gradient.
3950
+ */
3951
+ declare class DivRadialGradientFixedCenter<T extends DivRadialGradientFixedCenterProps = DivRadialGradientFixedCenterProps> {
3952
+ readonly _props?: Exact<DivRadialGradientFixedCenterProps, T>;
3953
+ readonly type = "fixed";
3954
+ /**
3955
+ * Unit of measurement. To learn more about units of size measurement, see [Layout inside the
3956
+ * card](../../layout.dita).
3957
+ */
3958
+ unit?: Type<DivSizeUnit | DivExpression>;
3959
+ /**
3960
+ * Shift value of the fixed central point of the gradient.
3961
+ */
3962
+ value: Type<number | DivExpression>;
3963
+ constructor(props: Exact<DivRadialGradientFixedCenterProps, T>);
3964
+ }
3965
+ interface DivRadialGradientFixedCenterProps {
3966
+ /**
3967
+ * Unit of measurement. To learn more about units of size measurement, see [Layout inside the
3968
+ * card](../../layout.dita).
3969
+ */
3970
+ unit?: Type<DivSizeUnit | DivExpression>;
3971
+ /**
3972
+ * Shift value of the fixed central point of the gradient.
3973
+ */
3974
+ value: Type<number | DivExpression>;
3975
+ }
3976
+
3977
+ declare type DivRadialGradientRadius = DivFixedSize | DivRadialGradientRelativeRadius;
3978
+
3979
+ /**
3980
+ * Relative central point of the gradient.
3981
+ */
3982
+ declare class DivRadialGradientRelativeCenter<T extends DivRadialGradientRelativeCenterProps = DivRadialGradientRelativeCenterProps> {
3983
+ readonly _props?: Exact<DivRadialGradientRelativeCenterProps, T>;
3984
+ readonly type = "relative";
3985
+ /**
3986
+ * Shift value of the central relative point of the gradient in the range `0..1`.
3987
+ */
3988
+ value: Type<number | DivExpression>;
3989
+ constructor(props: Exact<DivRadialGradientRelativeCenterProps, T>);
3990
+ }
3991
+ interface DivRadialGradientRelativeCenterProps {
3992
+ /**
3993
+ * Shift value of the central relative point of the gradient in the range `0..1`.
3943
3994
  */
3944
- radius: Type<number> | DivExpression;
3995
+ value: Type<number | DivExpression>;
3945
3996
  }
3946
3997
 
3998
+ /**
3999
+ * Relative radius of the gradient transition.
4000
+ */
4001
+ declare class DivRadialGradientRelativeRadius<T extends DivRadialGradientRelativeRadiusProps = DivRadialGradientRelativeRadiusProps> {
4002
+ readonly _props?: Exact<DivRadialGradientRelativeRadiusProps, T>;
4003
+ readonly type = "relative";
4004
+ /**
4005
+ * Type of relative radius of the gradient transition.
4006
+ */
4007
+ value: Type<DivRadialGradientRelativeRadiusValue | DivExpression>;
4008
+ constructor(props: Exact<DivRadialGradientRelativeRadiusProps, T>);
4009
+ }
4010
+ interface DivRadialGradientRelativeRadiusProps {
4011
+ /**
4012
+ * Type of relative radius of the gradient transition.
4013
+ */
4014
+ value: Type<DivRadialGradientRelativeRadiusValue | DivExpression>;
4015
+ }
4016
+ declare type DivRadialGradientRelativeRadiusValue = 'nearest_corner' | 'farthest_corner' | 'nearest_side' | 'farthest_side';
4017
+
3947
4018
  /**
3948
4019
  * A rectangle with rounded corners.
3949
4020
  */
@@ -3988,56 +4059,56 @@ declare class DivScaleTransition<T extends DivScaleTransitionProps = DivScaleTra
3988
4059
  /**
3989
4060
  * Animation duration in milliseconds.
3990
4061
  */
3991
- duration?: Type<number> | DivExpression;
4062
+ duration?: Type<number | DivExpression>;
3992
4063
  /**
3993
4064
  * Transition speed nature.
3994
4065
  */
3995
- interpolator?: Type<DivAnimationInterpolator> | DivExpression;
4066
+ interpolator?: Type<DivAnimationInterpolator | DivExpression>;
3996
4067
  /**
3997
4068
  * Relative coordinate `X` of the point that won't change its position in case of scaling.
3998
4069
  */
3999
- pivot_x?: Type<number> | DivExpression;
4070
+ pivot_x?: Type<number | DivExpression>;
4000
4071
  /**
4001
4072
  * Relative coordinate `Y` of the point that won't change its position in case of scaling.
4002
4073
  */
4003
- pivot_y?: Type<number> | DivExpression;
4074
+ pivot_y?: Type<number | DivExpression>;
4004
4075
  /**
4005
4076
  * Value of the scale from which the element starts appearing or at which it finishes
4006
4077
  * disappearing.
4007
4078
  */
4008
- scale?: Type<number> | DivExpression;
4079
+ scale?: Type<number | DivExpression>;
4009
4080
  /**
4010
4081
  * Delay in milliseconds before animation starts.
4011
4082
  */
4012
- start_delay?: Type<number> | DivExpression;
4083
+ start_delay?: Type<number | DivExpression>;
4013
4084
  constructor(props?: Exact<DivScaleTransitionProps, T>);
4014
4085
  }
4015
4086
  interface DivScaleTransitionProps {
4016
4087
  /**
4017
4088
  * Animation duration in milliseconds.
4018
4089
  */
4019
- duration?: Type<number> | DivExpression;
4090
+ duration?: Type<number | DivExpression>;
4020
4091
  /**
4021
4092
  * Transition speed nature.
4022
4093
  */
4023
- interpolator?: Type<DivAnimationInterpolator> | DivExpression;
4094
+ interpolator?: Type<DivAnimationInterpolator | DivExpression>;
4024
4095
  /**
4025
4096
  * Relative coordinate `X` of the point that won't change its position in case of scaling.
4026
4097
  */
4027
- pivot_x?: Type<number> | DivExpression;
4098
+ pivot_x?: Type<number | DivExpression>;
4028
4099
  /**
4029
4100
  * Relative coordinate `Y` of the point that won't change its position in case of scaling.
4030
4101
  */
4031
- pivot_y?: Type<number> | DivExpression;
4102
+ pivot_y?: Type<number | DivExpression>;
4032
4103
  /**
4033
4104
  * Value of the scale from which the element starts appearing or at which it finishes
4034
4105
  * disappearing.
4035
4106
  */
4036
- scale?: Type<number> | DivExpression;
4107
+ scale?: Type<number | DivExpression>;
4037
4108
  /**
4038
4109
  * Delay in milliseconds before animation starts.
4039
4110
  */
4040
- start_delay?: Type<number> | DivExpression;
4111
+ start_delay?: Type<number | DivExpression>;
4041
4112
  }
4042
4113
 
4043
4114
  /**
@@ -4065,15 +4136,15 @@ declare class DivSeparator<T extends DivSeparatorProps = DivSeparatorProps> {
4065
4136
  /**
4066
4137
  * Horizontal alignment of an element inside the parent element.
4067
4138
  */
4068
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
4139
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
4069
4140
  /**
4070
4141
  * Vertical alignment of an element inside the parent element.
4071
4142
  */
4072
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
4143
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
4073
4144
  /**
4074
4145
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
4075
4146
  */
4076
- alpha?: Type<number> | DivExpression;
4147
+ alpha?: Type<number | DivExpression>;
4077
4148
  /**
4078
4149
  * Element background. It can contain multiple layers.
4079
4150
  */
@@ -4085,7 +4156,7 @@ declare class DivSeparator<T extends DivSeparatorProps = DivSeparatorProps> {
4085
4156
  /**
4086
4157
  * Merges cells in a column of the [grid](div-grid.md) element.
4087
4158
  */
4088
- column_span?: Type<number> | DivExpression;
4159
+ column_span?: Type<number | DivExpression>;
4089
4160
  /**
4090
4161
  * Separator display settings.
4091
4162
  */
@@ -4129,7 +4200,7 @@ declare class DivSeparator<T extends DivSeparatorProps = DivSeparatorProps> {
4129
4200
  /**
4130
4201
  * Merges cells in a string of the [grid](div-grid.md) element.
4131
4202
  */
4132
- row_span?: Type<number> | DivExpression;
4203
+ row_span?: Type<number | DivExpression>;
4133
4204
  /**
4134
4205
  * List of [actions](div-action.md) to be executed when selecting an element in
4135
4206
  * [pager](div-pager.md).
@@ -4167,7 +4238,7 @@ declare class DivSeparator<T extends DivSeparatorProps = DivSeparatorProps> {
4167
4238
  /**
4168
4239
  * Element visibility.
4169
4240
  */
4170
- visibility?: Type<DivVisibility> | DivExpression;
4241
+ visibility?: Type<DivVisibility | DivExpression>;
4171
4242
  /**
4172
4243
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
4173
4244
  * set.
@@ -4203,15 +4274,15 @@ interface DivSeparatorProps {
4203
4274
  /**
4204
4275
  * Horizontal alignment of an element inside the parent element.
4205
4276
  */
4206
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
4277
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
4207
4278
  /**
4208
4279
  * Vertical alignment of an element inside the parent element.
4209
4280
  */
4210
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
4281
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
4211
4282
  /**
4212
4283
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
4213
4284
  */
4214
- alpha?: Type<number> | DivExpression;
4285
+ alpha?: Type<number | DivExpression>;
4215
4286
  /**
4216
4287
  * Element background. It can contain multiple layers.
4217
4288
  */
@@ -4223,7 +4294,7 @@ interface DivSeparatorProps {
4223
4294
  /**
4224
4295
  * Merges cells in a column of the [grid](div-grid.md) element.
4225
4296
  */
4226
- column_span?: Type<number> | DivExpression;
4297
+ column_span?: Type<number | DivExpression>;
4227
4298
  /**
4228
4299
  * Separator display settings.
4229
4300
  */
@@ -4267,7 +4338,7 @@ interface DivSeparatorProps {
4267
4338
  /**
4268
4339
  * Merges cells in a string of the [grid](div-grid.md) element.
4269
4340
  */
4270
- row_span?: Type<number> | DivExpression;
4341
+ row_span?: Type<number | DivExpression>;
4271
4342
  /**
4272
4343
  * List of [actions](div-action.md) to be executed when selecting an element in
4273
4344
  * [pager](div-pager.md).
@@ -4305,7 +4376,7 @@ interface DivSeparatorProps {
4305
4376
  /**
4306
4377
  * Element visibility.
4307
4378
  */
4308
- visibility?: Type<DivVisibility> | DivExpression;
4379
+ visibility?: Type<DivVisibility | DivExpression>;
4309
4380
  /**
4310
4381
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
4311
4382
  * set.
@@ -4328,11 +4399,11 @@ interface IDivSeparatorDelimiterStyle {
4328
4399
  * Separator color. To prevent the separator from being displayed, set transparency in the alpha
4329
4400
  * channel. For example, `#00FFFFFF`.
4330
4401
  */
4331
- color?: Type<string> | DivExpression;
4402
+ color?: Type<string | DivExpression>;
4332
4403
  /**
4333
4404
  * Separator orientation:`vertical` — vertical;`horizontal` — horizontal.<
4334
4405
  */
4335
- orientation?: Type<DelimiterStyleOrientation> | DivExpression;
4406
+ orientation?: Type<DelimiterStyleOrientation | DivExpression>;
4336
4407
  }
4337
4408
  declare type DelimiterStyleOrientation = 'vertical' | 'horizontal';
4338
4409
 
@@ -4343,15 +4414,15 @@ interface IDivShadow {
4343
4414
  /**
4344
4415
  * Shadow transparency.
4345
4416
  */
4346
- alpha?: Type<number> | DivExpression;
4417
+ alpha?: Type<number | DivExpression>;
4347
4418
  /**
4348
4419
  * Blur intensity.
4349
4420
  */
4350
- blur?: Type<number> | DivExpression;
4421
+ blur?: Type<number | DivExpression>;
4351
4422
  /**
4352
4423
  * Shadow color.
4353
4424
  */
4354
- color?: Type<string> | DivExpression;
4425
+ color?: Type<string | DivExpression>;
4355
4426
  /**
4356
4427
  * Shadow offset.
4357
4428
  */
@@ -4369,7 +4440,7 @@ declare class DivShapeDrawable<T extends DivShapeDrawableProps = DivShapeDrawabl
4369
4440
  /**
4370
4441
  * Fill color.
4371
4442
  */
4372
- color: Type<string> | DivExpression;
4443
+ color: Type<string | DivExpression>;
4373
4444
  /**
4374
4445
  * Shape.
4375
4446
  */
@@ -4384,7 +4455,7 @@ interface DivShapeDrawableProps {
4384
4455
  /**
4385
4456
  * Fill color.
4386
4457
  */
4387
- color: Type<string> | DivExpression;
4458
+ color: Type<string | DivExpression>;
4388
4459
  /**
4389
4460
  * Shape.
4390
4461
  */
@@ -4414,20 +4485,20 @@ declare class DivSlideTransition<T extends DivSlideTransitionProps = DivSlideTra
4414
4485
  /**
4415
4486
  * Animation duration in milliseconds.
4416
4487
  */
4417
- duration?: Type<number> | DivExpression;
4488
+ duration?: Type<number | DivExpression>;
4418
4489
  /**
4419
4490
  * Edge of a parent element for one of the action types:where the element will move from when
4420
4491
  * appearing;where the element will move to when disappearing.
4421
4492
  */
4422
- edge?: Type<DivSlideTransitionEdge> | DivExpression;
4493
+ edge?: Type<DivSlideTransitionEdge | DivExpression>;
4423
4494
  /**
4424
4495
  * Transition speed nature.
4425
4496
  */
4426
- interpolator?: Type<DivAnimationInterpolator> | DivExpression;
4497
+ interpolator?: Type<DivAnimationInterpolator | DivExpression>;
4427
4498
  /**
4428
4499
  * Delay in milliseconds before animation starts.
4429
4500
  */
4430
- start_delay?: Type<number> | DivExpression;
4501
+ start_delay?: Type<number | DivExpression>;
4431
4502
  constructor(props?: Exact<DivSlideTransitionProps, T>);
4432
4503
  }
4433
4504
  interface DivSlideTransitionProps {
@@ -4440,20 +4511,20 @@ interface DivSlideTransitionProps {
4440
4511
  /**
4441
4512
  * Animation duration in milliseconds.
4442
4513
  */
4443
- duration?: Type<number> | DivExpression;
4514
+ duration?: Type<number | DivExpression>;
4444
4515
  /**
4445
4516
  * Edge of a parent element for one of the action types:where the element will move from when
4446
4517
  * appearing;where the element will move to when disappearing.
4447
4518
  */
4448
- edge?: Type<DivSlideTransitionEdge> | DivExpression;
4519
+ edge?: Type<DivSlideTransitionEdge | DivExpression>;
4449
4520
  /**
4450
4521
  * Transition speed nature.
4451
4522
  */
4452
- interpolator?: Type<DivAnimationInterpolator> | DivExpression;
4523
+ interpolator?: Type<DivAnimationInterpolator | DivExpression>;
4453
4524
  /**
4454
4525
  * Delay in milliseconds before animation starts.
4455
4526
  */
4456
- start_delay?: Type<number> | DivExpression;
4527
+ start_delay?: Type<number | DivExpression>;
4457
4528
  }
4458
4529
  declare type DivSlideTransitionEdge = 'left' | 'top' | 'right' | 'bottom';
4459
4530
 
@@ -4470,15 +4541,15 @@ declare class DivSlider<T extends DivSliderProps = DivSliderProps> {
4470
4541
  /**
4471
4542
  * Horizontal alignment of an element inside the parent element.
4472
4543
  */
4473
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
4544
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
4474
4545
  /**
4475
4546
  * Vertical alignment of an element inside the parent element.
4476
4547
  */
4477
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
4548
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
4478
4549
  /**
4479
4550
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
4480
4551
  */
4481
- alpha?: Type<number> | DivExpression;
4552
+ alpha?: Type<number | DivExpression>;
4482
4553
  /**
4483
4554
  * Element background. It can contain multiple layers.
4484
4555
  */
@@ -4490,7 +4561,7 @@ declare class DivSlider<T extends DivSliderProps = DivSliderProps> {
4490
4561
  /**
4491
4562
  * Merges cells in a column of the [grid](div-grid.md) element.
4492
4563
  */
4493
- column_span?: Type<number> | DivExpression;
4564
+ column_span?: Type<number | DivExpression>;
4494
4565
  /**
4495
4566
  * Extensions for additional processing of an element. The list of extensions is given in
4496
4567
  * [DivExtension](../../extensions.dita).
@@ -4518,11 +4589,11 @@ declare class DivSlider<T extends DivSliderProps = DivSliderProps> {
4518
4589
  /**
4519
4590
  * Maximum value. It must be greater than the minimum value.
4520
4591
  */
4521
- max_value?: Type<number> | DivExpression;
4592
+ max_value?: Type<number | DivExpression>;
4522
4593
  /**
4523
4594
  * Minimum value.
4524
4595
  */
4525
- min_value?: Type<number> | DivExpression;
4596
+ min_value?: Type<number | DivExpression>;
4526
4597
  /**
4527
4598
  * Internal margins from the element stroke.
4528
4599
  */
@@ -4530,7 +4601,7 @@ declare class DivSlider<T extends DivSliderProps = DivSliderProps> {
4530
4601
  /**
4531
4602
  * Merges cells in a string of the [grid](div-grid.md) element.
4532
4603
  */
4533
- row_span?: Type<number> | DivExpression;
4604
+ row_span?: Type<number | DivExpression>;
4534
4605
  /**
4535
4606
  * Accessibility for the secondary thumb.
4536
4607
  */
@@ -4612,7 +4683,7 @@ declare class DivSlider<T extends DivSliderProps = DivSliderProps> {
4612
4683
  /**
4613
4684
  * Element visibility.
4614
4685
  */
4615
- visibility?: Type<DivVisibility> | DivExpression;
4686
+ visibility?: Type<DivVisibility | DivExpression>;
4616
4687
  /**
4617
4688
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
4618
4689
  * set.
@@ -4636,15 +4707,15 @@ interface DivSliderProps {
4636
4707
  /**
4637
4708
  * Horizontal alignment of an element inside the parent element.
4638
4709
  */
4639
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
4710
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
4640
4711
  /**
4641
4712
  * Vertical alignment of an element inside the parent element.
4642
4713
  */
4643
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
4714
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
4644
4715
  /**
4645
4716
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
4646
4717
  */
4647
- alpha?: Type<number> | DivExpression;
4718
+ alpha?: Type<number | DivExpression>;
4648
4719
  /**
4649
4720
  * Element background. It can contain multiple layers.
4650
4721
  */
@@ -4656,7 +4727,7 @@ interface DivSliderProps {
4656
4727
  /**
4657
4728
  * Merges cells in a column of the [grid](div-grid.md) element.
4658
4729
  */
4659
- column_span?: Type<number> | DivExpression;
4730
+ column_span?: Type<number | DivExpression>;
4660
4731
  /**
4661
4732
  * Extensions for additional processing of an element. The list of extensions is given in
4662
4733
  * [DivExtension](../../extensions.dita).
@@ -4684,11 +4755,11 @@ interface DivSliderProps {
4684
4755
  /**
4685
4756
  * Maximum value. It must be greater than the minimum value.
4686
4757
  */
4687
- max_value?: Type<number> | DivExpression;
4758
+ max_value?: Type<number | DivExpression>;
4688
4759
  /**
4689
4760
  * Minimum value.
4690
4761
  */
4691
- min_value?: Type<number> | DivExpression;
4762
+ min_value?: Type<number | DivExpression>;
4692
4763
  /**
4693
4764
  * Internal margins from the element stroke.
4694
4765
  */
@@ -4696,7 +4767,7 @@ interface DivSliderProps {
4696
4767
  /**
4697
4768
  * Merges cells in a string of the [grid](div-grid.md) element.
4698
4769
  */
4699
- row_span?: Type<number> | DivExpression;
4770
+ row_span?: Type<number | DivExpression>;
4700
4771
  /**
4701
4772
  * Accessibility for the secondary thumb.
4702
4773
  */
@@ -4778,7 +4849,7 @@ interface DivSliderProps {
4778
4849
  /**
4779
4850
  * Element visibility.
4780
4851
  */
4781
- visibility?: Type<DivVisibility> | DivExpression;
4852
+ visibility?: Type<DivVisibility | DivExpression>;
4782
4853
  /**
4783
4854
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
4784
4855
  * set.
@@ -4797,12 +4868,12 @@ interface IDivSliderTextStyle {
4797
4868
  /**
4798
4869
  * Font size.
4799
4870
  */
4800
- font_size: Type<number> | DivExpression;
4801
- font_size_unit?: Type<DivSizeUnit> | DivExpression;
4871
+ font_size: Type<number | DivExpression>;
4872
+ font_size_unit?: Type<DivSizeUnit | DivExpression>;
4802
4873
  /**
4803
4874
  * Style.
4804
4875
  */
4805
- font_weight?: Type<DivFontWeight> | DivExpression;
4876
+ font_weight?: Type<DivFontWeight | DivExpression>;
4806
4877
  /**
4807
4878
  * Shift relative to the center.
4808
4879
  */
@@ -4810,7 +4881,7 @@ interface IDivSliderTextStyle {
4810
4881
  /**
4811
4882
  * Text color.
4812
4883
  */
4813
- text_color?: Type<string> | DivExpression;
4884
+ text_color?: Type<string | DivExpression>;
4814
4885
  }
4815
4886
 
4816
4887
  /**
@@ -4822,14 +4893,14 @@ declare class DivSolidBackground<T extends DivSolidBackgroundProps = DivSolidBac
4822
4893
  /**
4823
4894
  * Color.
4824
4895
  */
4825
- color: Type<string> | DivExpression;
4896
+ color: Type<string | DivExpression>;
4826
4897
  constructor(props: Exact<DivSolidBackgroundProps, T>);
4827
4898
  }
4828
4899
  interface DivSolidBackgroundProps {
4829
4900
  /**
4830
4901
  * Color.
4831
4902
  */
4832
- color: Type<string> | DivExpression;
4903
+ color: Type<string | DivExpression>;
4833
4904
  }
4834
4905
 
4835
4906
  /**
@@ -4845,15 +4916,15 @@ declare class DivState<T extends DivStateProps = DivStateProps> {
4845
4916
  /**
4846
4917
  * Horizontal alignment of an element inside the parent element.
4847
4918
  */
4848
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
4919
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
4849
4920
  /**
4850
4921
  * Vertical alignment of an element inside the parent element.
4851
4922
  */
4852
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
4923
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
4853
4924
  /**
4854
4925
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
4855
4926
  */
4856
- alpha?: Type<number> | DivExpression;
4927
+ alpha?: Type<number | DivExpression>;
4857
4928
  /**
4858
4929
  * Element background. It can contain multiple layers.
4859
4930
  */
@@ -4865,12 +4936,12 @@ declare class DivState<T extends DivStateProps = DivStateProps> {
4865
4936
  /**
4866
4937
  * Merges cells in a column of the [grid](div-grid.md) element.
4867
4938
  */
4868
- column_span?: Type<number> | DivExpression;
4939
+ column_span?: Type<number | DivExpression>;
4869
4940
  /**
4870
4941
  * ID of the status that will be set by default. If the parameter isnt set, the first state of
4871
4942
  * the `states` will be set.
4872
4943
  */
4873
- default_state_id?: Type<string> | DivExpression;
4944
+ default_state_id?: Type<string | DivExpression>;
4874
4945
  /**
4875
4946
  * ID of an element to search in the hierarchy. The ID must be unique at one hierarchy level.
4876
4947
  *
@@ -4908,7 +4979,7 @@ declare class DivState<T extends DivStateProps = DivStateProps> {
4908
4979
  /**
4909
4980
  * Merges cells in a string of the [grid](div-grid.md) element.
4910
4981
  */
4911
- row_span?: Type<number> | DivExpression;
4982
+ row_span?: Type<number | DivExpression>;
4912
4983
  /**
4913
4984
  * List of [actions](div-action.md) to be executed when selecting an element in
4914
4985
  * [pager](div-pager.md).
@@ -4935,7 +5006,7 @@ declare class DivState<T extends DivStateProps = DivStateProps> {
4935
5006
  *
4936
5007
  * @deprecated
4937
5008
  */
4938
- transition_animation_selector?: Type<DivTransitionSelector> | DivExpression;
5009
+ transition_animation_selector?: Type<DivTransitionSelector | DivExpression>;
4939
5010
  /**
4940
5011
  * Change animation. It is played when the position or size of an element changes in the new
4941
5012
  * layout.
@@ -4958,7 +5029,7 @@ declare class DivState<T extends DivStateProps = DivStateProps> {
4958
5029
  /**
4959
5030
  * Element visibility.
4960
5031
  */
4961
- visibility?: Type<DivVisibility> | DivExpression;
5032
+ visibility?: Type<DivVisibility | DivExpression>;
4962
5033
  /**
4963
5034
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
4964
5035
  * set.
@@ -4982,15 +5053,15 @@ interface DivStateProps {
4982
5053
  /**
4983
5054
  * Horizontal alignment of an element inside the parent element.
4984
5055
  */
4985
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
5056
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
4986
5057
  /**
4987
5058
  * Vertical alignment of an element inside the parent element.
4988
5059
  */
4989
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
5060
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
4990
5061
  /**
4991
5062
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
4992
5063
  */
4993
- alpha?: Type<number> | DivExpression;
5064
+ alpha?: Type<number | DivExpression>;
4994
5065
  /**
4995
5066
  * Element background. It can contain multiple layers.
4996
5067
  */
@@ -5002,12 +5073,12 @@ interface DivStateProps {
5002
5073
  /**
5003
5074
  * Merges cells in a column of the [grid](div-grid.md) element.
5004
5075
  */
5005
- column_span?: Type<number> | DivExpression;
5076
+ column_span?: Type<number | DivExpression>;
5006
5077
  /**
5007
5078
  * ID of the status that will be set by default. If the parameter isnt set, the first state of
5008
5079
  * the `states` will be set.
5009
5080
  */
5010
- default_state_id?: Type<string> | DivExpression;
5081
+ default_state_id?: Type<string | DivExpression>;
5011
5082
  /**
5012
5083
  * ID of an element to search in the hierarchy. The ID must be unique at one hierarchy level.
5013
5084
  *
@@ -5045,7 +5116,7 @@ interface DivStateProps {
5045
5116
  /**
5046
5117
  * Merges cells in a string of the [grid](div-grid.md) element.
5047
5118
  */
5048
- row_span?: Type<number> | DivExpression;
5119
+ row_span?: Type<number | DivExpression>;
5049
5120
  /**
5050
5121
  * List of [actions](div-action.md) to be executed when selecting an element in
5051
5122
  * [pager](div-pager.md).
@@ -5072,7 +5143,7 @@ interface DivStateProps {
5072
5143
  *
5073
5144
  * @deprecated
5074
5145
  */
5075
- transition_animation_selector?: Type<DivTransitionSelector> | DivExpression;
5146
+ transition_animation_selector?: Type<DivTransitionSelector | DivExpression>;
5076
5147
  /**
5077
5148
  * Change animation. It is played when the position or size of an element changes in the new
5078
5149
  * layout.
@@ -5095,7 +5166,7 @@ interface DivStateProps {
5095
5166
  /**
5096
5167
  * Element visibility.
5097
5168
  */
5098
- visibility?: Type<DivVisibility> | DivExpression;
5169
+ visibility?: Type<DivVisibility | DivExpression>;
5099
5170
  /**
5100
5171
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
5101
5172
  * set.
@@ -5146,12 +5217,12 @@ interface IDivStroke {
5146
5217
  /**
5147
5218
  * Stroke color.
5148
5219
  */
5149
- color: Type<string> | DivExpression;
5150
- unit?: Type<DivSizeUnit> | DivExpression;
5220
+ color: Type<string | DivExpression>;
5221
+ unit?: Type<DivSizeUnit | DivExpression>;
5151
5222
  /**
5152
5223
  * Stroke width.
5153
5224
  */
5154
- width?: Type<number> | DivExpression;
5225
+ width?: Type<number | DivExpression>;
5155
5226
  }
5156
5227
 
5157
5228
  /**
@@ -5168,15 +5239,15 @@ declare class DivTabs<T extends DivTabsProps = DivTabsProps> {
5168
5239
  /**
5169
5240
  * Horizontal alignment of an element inside the parent element.
5170
5241
  */
5171
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
5242
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
5172
5243
  /**
5173
5244
  * Vertical alignment of an element inside the parent element.
5174
5245
  */
5175
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
5246
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
5176
5247
  /**
5177
5248
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
5178
5249
  */
5179
- alpha?: Type<number> | DivExpression;
5250
+ alpha?: Type<number | DivExpression>;
5180
5251
  /**
5181
5252
  * Element background. It can contain multiple layers.
5182
5253
  */
@@ -5188,11 +5259,11 @@ declare class DivTabs<T extends DivTabsProps = DivTabsProps> {
5188
5259
  /**
5189
5260
  * Merges cells in a column of the [grid](div-grid.md) element.
5190
5261
  */
5191
- column_span?: Type<number> | DivExpression;
5262
+ column_span?: Type<number | DivExpression>;
5192
5263
  /**
5193
5264
  * Updating height when changing the active element. In the browser, the value is always `true`.
5194
5265
  */
5195
- dynamic_height?: Type<IntBoolean> | DivExpression;
5266
+ dynamic_height?: Type<IntBoolean | DivExpression>;
5196
5267
  /**
5197
5268
  * Extensions for additional processing of an element. The list of extensions is given in
5198
5269
  * [DivExtension](../../extensions.dita).
@@ -5205,7 +5276,7 @@ declare class DivTabs<T extends DivTabsProps = DivTabsProps> {
5205
5276
  /**
5206
5277
  * A separating line between tabs and contents.
5207
5278
  */
5208
- has_separator?: Type<IntBoolean> | DivExpression;
5279
+ has_separator?: Type<IntBoolean | DivExpression>;
5209
5280
  /**
5210
5281
  * Element height. For Android: if there is text in this or in a child element, specify height in
5211
5282
  * `sp` to scale the element together with the text. To learn more about units of size
@@ -5240,11 +5311,11 @@ declare class DivTabs<T extends DivTabsProps = DivTabsProps> {
5240
5311
  /**
5241
5312
  * If the parameter is enabled, tabs won't transmit the scroll gesture to the parent element.
5242
5313
  */
5243
- restrict_parent_scroll?: Type<IntBoolean> | DivExpression;
5314
+ restrict_parent_scroll?: Type<IntBoolean | DivExpression>;
5244
5315
  /**
5245
5316
  * Merges cells in a string of the [grid](div-grid.md) element.
5246
5317
  */
5247
- row_span?: Type<number> | DivExpression;
5318
+ row_span?: Type<number | DivExpression>;
5248
5319
  /**
5249
5320
  * List of [actions](div-action.md) to be executed when selecting an element in
5250
5321
  * [pager](div-pager.md).
@@ -5253,11 +5324,11 @@ declare class DivTabs<T extends DivTabsProps = DivTabsProps> {
5253
5324
  /**
5254
5325
  * Ordinal number of the tab that will be opened by default.
5255
5326
  */
5256
- selected_tab?: Type<number> | DivExpression;
5327
+ selected_tab?: Type<number | DivExpression>;
5257
5328
  /**
5258
5329
  * Separator color.
5259
5330
  */
5260
- separator_color?: Type<string> | DivExpression;
5331
+ separator_color?: Type<string | DivExpression>;
5261
5332
  /**
5262
5333
  * Indents from the separating line. Not used if `has_separator = false`.
5263
5334
  */
@@ -5265,7 +5336,7 @@ declare class DivTabs<T extends DivTabsProps = DivTabsProps> {
5265
5336
  /**
5266
5337
  * Switching tabs by scrolling through the contents.
5267
5338
  */
5268
- switch_tabs_by_content_swipe_enabled?: Type<IntBoolean> | DivExpression;
5339
+ switch_tabs_by_content_swipe_enabled?: Type<IntBoolean | DivExpression>;
5269
5340
  /**
5270
5341
  * Design style of tab titles.
5271
5342
  */
@@ -5306,7 +5377,7 @@ declare class DivTabs<T extends DivTabsProps = DivTabsProps> {
5306
5377
  /**
5307
5378
  * Element visibility.
5308
5379
  */
5309
- visibility?: Type<DivVisibility> | DivExpression;
5380
+ visibility?: Type<DivVisibility | DivExpression>;
5310
5381
  /**
5311
5382
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
5312
5383
  * set.
@@ -5330,15 +5401,15 @@ interface DivTabsProps {
5330
5401
  /**
5331
5402
  * Horizontal alignment of an element inside the parent element.
5332
5403
  */
5333
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
5404
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
5334
5405
  /**
5335
5406
  * Vertical alignment of an element inside the parent element.
5336
5407
  */
5337
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
5408
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
5338
5409
  /**
5339
5410
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
5340
5411
  */
5341
- alpha?: Type<number> | DivExpression;
5412
+ alpha?: Type<number | DivExpression>;
5342
5413
  /**
5343
5414
  * Element background. It can contain multiple layers.
5344
5415
  */
@@ -5350,11 +5421,11 @@ interface DivTabsProps {
5350
5421
  /**
5351
5422
  * Merges cells in a column of the [grid](div-grid.md) element.
5352
5423
  */
5353
- column_span?: Type<number> | DivExpression;
5424
+ column_span?: Type<number | DivExpression>;
5354
5425
  /**
5355
5426
  * Updating height when changing the active element. In the browser, the value is always `true`.
5356
5427
  */
5357
- dynamic_height?: Type<IntBoolean> | DivExpression;
5428
+ dynamic_height?: Type<IntBoolean | DivExpression>;
5358
5429
  /**
5359
5430
  * Extensions for additional processing of an element. The list of extensions is given in
5360
5431
  * [DivExtension](../../extensions.dita).
@@ -5367,7 +5438,7 @@ interface DivTabsProps {
5367
5438
  /**
5368
5439
  * A separating line between tabs and contents.
5369
5440
  */
5370
- has_separator?: Type<IntBoolean> | DivExpression;
5441
+ has_separator?: Type<IntBoolean | DivExpression>;
5371
5442
  /**
5372
5443
  * Element height. For Android: if there is text in this or in a child element, specify height in
5373
5444
  * `sp` to scale the element together with the text. To learn more about units of size
@@ -5402,11 +5473,11 @@ interface DivTabsProps {
5402
5473
  /**
5403
5474
  * If the parameter is enabled, tabs won't transmit the scroll gesture to the parent element.
5404
5475
  */
5405
- restrict_parent_scroll?: Type<IntBoolean> | DivExpression;
5476
+ restrict_parent_scroll?: Type<IntBoolean | DivExpression>;
5406
5477
  /**
5407
5478
  * Merges cells in a string of the [grid](div-grid.md) element.
5408
5479
  */
5409
- row_span?: Type<number> | DivExpression;
5480
+ row_span?: Type<number | DivExpression>;
5410
5481
  /**
5411
5482
  * List of [actions](div-action.md) to be executed when selecting an element in
5412
5483
  * [pager](div-pager.md).
@@ -5415,11 +5486,11 @@ interface DivTabsProps {
5415
5486
  /**
5416
5487
  * Ordinal number of the tab that will be opened by default.
5417
5488
  */
5418
- selected_tab?: Type<number> | DivExpression;
5489
+ selected_tab?: Type<number | DivExpression>;
5419
5490
  /**
5420
5491
  * Separator color.
5421
5492
  */
5422
- separator_color?: Type<string> | DivExpression;
5493
+ separator_color?: Type<string | DivExpression>;
5423
5494
  /**
5424
5495
  * Indents from the separating line. Not used if `has_separator = false`.
5425
5496
  */
@@ -5427,7 +5498,7 @@ interface DivTabsProps {
5427
5498
  /**
5428
5499
  * Switching tabs by scrolling through the contents.
5429
5500
  */
5430
- switch_tabs_by_content_swipe_enabled?: Type<IntBoolean> | DivExpression;
5501
+ switch_tabs_by_content_swipe_enabled?: Type<IntBoolean | DivExpression>;
5431
5502
  /**
5432
5503
  * Design style of tab titles.
5433
5504
  */
@@ -5468,7 +5539,7 @@ interface DivTabsProps {
5468
5539
  /**
5469
5540
  * Element visibility.
5470
5541
  */
5471
- visibility?: Type<DivVisibility> | DivExpression;
5542
+ visibility?: Type<DivVisibility | DivExpression>;
5472
5543
  /**
5473
5544
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
5474
5545
  * set.
@@ -5494,7 +5565,7 @@ interface IDivTabsItem {
5494
5565
  /**
5495
5566
  * Tab title.
5496
5567
  */
5497
- title: Type<string> | DivExpression;
5568
+ title: Type<string | DivExpression>;
5498
5569
  /**
5499
5570
  * Action when clicking on the active tab title.
5500
5571
  */
@@ -5507,28 +5578,28 @@ interface IDivTabsTabTitleStyle {
5507
5578
  /**
5508
5579
  * Background color of the active tab title.
5509
5580
  */
5510
- active_background_color?: Type<string> | DivExpression;
5581
+ active_background_color?: Type<string | DivExpression>;
5511
5582
  /**
5512
5583
  * Active tab title style.
5513
5584
  */
5514
- active_font_weight?: Type<DivFontWeight> | DivExpression;
5585
+ active_font_weight?: Type<DivFontWeight | DivExpression>;
5515
5586
  /**
5516
5587
  * Color of the active tab title text.
5517
5588
  */
5518
- active_text_color?: Type<string> | DivExpression;
5589
+ active_text_color?: Type<string | DivExpression>;
5519
5590
  /**
5520
5591
  * Duration of active title change animation.
5521
5592
  */
5522
- animation_duration?: Type<number> | DivExpression;
5593
+ animation_duration?: Type<number | DivExpression>;
5523
5594
  /**
5524
5595
  * Active title change animation.
5525
5596
  */
5526
- animation_type?: Type<TabTitleStyleAnimationType> | DivExpression;
5597
+ animation_type?: Type<TabTitleStyleAnimationType | DivExpression>;
5527
5598
  /**
5528
5599
  * Title corner rounding radius. If the parameter isn't specified, the rounding is maximum (half
5529
5600
  * of the smallest size). Not used if the `corners_radius` parameter is set.
5530
5601
  */
5531
- corner_radius?: Type<number> | DivExpression;
5602
+ corner_radius?: Type<number | DivExpression>;
5532
5603
  /**
5533
5604
  * Rounding radii of corners of multiple titles. Empty values are replaced by `corner_radius`.
5534
5605
  */
@@ -5537,45 +5608,45 @@ interface IDivTabsTabTitleStyle {
5537
5608
  * Font family:`text` — a standard text font;`display` — a family of fonts with a large font
5538
5609
  * size.
5539
5610
  */
5540
- font_family?: Type<DivFontFamily> | DivExpression;
5611
+ font_family?: Type<DivFontFamily | DivExpression>;
5541
5612
  /**
5542
5613
  * Title font size.
5543
5614
  */
5544
- font_size?: Type<number> | DivExpression;
5615
+ font_size?: Type<number | DivExpression>;
5545
5616
  /**
5546
5617
  * Units of title font size measurement.
5547
5618
  */
5548
- font_size_unit?: Type<DivSizeUnit> | DivExpression;
5619
+ font_size_unit?: Type<DivSizeUnit | DivExpression>;
5549
5620
  /**
5550
5621
  * Style. Use `active_font_weight` and `inactive_font_weight` instead.
5551
5622
  *
5552
5623
  * @deprecated
5553
5624
  */
5554
- font_weight?: Type<DivFontWeight> | DivExpression;
5625
+ font_weight?: Type<DivFontWeight | DivExpression>;
5555
5626
  /**
5556
5627
  * Background color of the inactive tab title.
5557
5628
  */
5558
- inactive_background_color?: Type<string> | DivExpression;
5629
+ inactive_background_color?: Type<string | DivExpression>;
5559
5630
  /**
5560
5631
  * Inactive tab title style.
5561
5632
  */
5562
- inactive_font_weight?: Type<DivFontWeight> | DivExpression;
5633
+ inactive_font_weight?: Type<DivFontWeight | DivExpression>;
5563
5634
  /**
5564
5635
  * Color of the inactive tab title text.
5565
5636
  */
5566
- inactive_text_color?: Type<string> | DivExpression;
5637
+ inactive_text_color?: Type<string | DivExpression>;
5567
5638
  /**
5568
5639
  * Spacing between neighbouring tab titles.
5569
5640
  */
5570
- item_spacing?: Type<number> | DivExpression;
5641
+ item_spacing?: Type<number | DivExpression>;
5571
5642
  /**
5572
5643
  * Spacing between title characters.
5573
5644
  */
5574
- letter_spacing?: Type<number> | DivExpression;
5645
+ letter_spacing?: Type<number | DivExpression>;
5575
5646
  /**
5576
5647
  * Line spacing of the text range. The count is taken from the font baseline.
5577
5648
  */
5578
- line_height?: Type<number> | DivExpression;
5649
+ line_height?: Type<number | DivExpression>;
5579
5650
  /**
5580
5651
  * Indents around the tab title.
5581
5652
  */
@@ -5608,19 +5679,19 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
5608
5679
  /**
5609
5680
  * Horizontal alignment of an element inside the parent element.
5610
5681
  */
5611
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
5682
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
5612
5683
  /**
5613
5684
  * Vertical alignment of an element inside the parent element.
5614
5685
  */
5615
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
5686
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
5616
5687
  /**
5617
5688
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
5618
5689
  */
5619
- alpha?: Type<number> | DivExpression;
5690
+ alpha?: Type<number | DivExpression>;
5620
5691
  /**
5621
5692
  * Automatic text cropping to fit the container size.
5622
5693
  */
5623
- auto_ellipsize?: Type<IntBoolean> | DivExpression;
5694
+ auto_ellipsize?: Type<IntBoolean | DivExpression>;
5624
5695
  /**
5625
5696
  * Element background. It can contain multiple layers.
5626
5697
  */
@@ -5632,7 +5703,7 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
5632
5703
  /**
5633
5704
  * Merges cells in a column of the [grid](div-grid.md) element.
5634
5705
  */
5635
- column_span?: Type<number> | DivExpression;
5706
+ column_span?: Type<number | DivExpression>;
5636
5707
  /**
5637
5708
  * Action when double-clicking on an element.
5638
5709
  */
@@ -5653,21 +5724,21 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
5653
5724
  /**
5654
5725
  * Text color when focusing on the element.
5655
5726
  */
5656
- focused_text_color?: Type<string> | DivExpression;
5727
+ focused_text_color?: Type<string | DivExpression>;
5657
5728
  /**
5658
5729
  * Font family:`text` — a standard text font;`display` — a family of fonts with a large font
5659
5730
  * size.
5660
5731
  */
5661
- font_family?: Type<DivFontFamily> | DivExpression;
5732
+ font_family?: Type<DivFontFamily | DivExpression>;
5662
5733
  /**
5663
5734
  * Font size.
5664
5735
  */
5665
- font_size?: Type<number> | DivExpression;
5666
- font_size_unit?: Type<DivSizeUnit> | DivExpression;
5736
+ font_size?: Type<number | DivExpression>;
5737
+ font_size_unit?: Type<DivSizeUnit | DivExpression>;
5667
5738
  /**
5668
5739
  * Style.
5669
5740
  */
5670
- font_weight?: Type<DivFontWeight> | DivExpression;
5741
+ font_weight?: Type<DivFontWeight | DivExpression>;
5671
5742
  /**
5672
5743
  * Element height. For Android: if there is text in this or in a child element, specify height in
5673
5744
  * `sp` to scale the element together with the text. To learn more about units of size
@@ -5686,11 +5757,11 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
5686
5757
  /**
5687
5758
  * Spacing between characters.
5688
5759
  */
5689
- letter_spacing?: Type<number> | DivExpression;
5760
+ letter_spacing?: Type<number | DivExpression>;
5690
5761
  /**
5691
5762
  * Line spacing of the text range. The count is taken from the font baseline.
5692
5763
  */
5693
- line_height?: Type<number> | DivExpression;
5764
+ line_height?: Type<number | DivExpression>;
5694
5765
  /**
5695
5766
  * Action when long-clicking on an element.
5696
5767
  */
@@ -5702,11 +5773,11 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
5702
5773
  /**
5703
5774
  * Maximum number of lines not to be cropped when breaking the limits.
5704
5775
  */
5705
- max_lines?: Type<number> | DivExpression;
5776
+ max_lines?: Type<number | DivExpression>;
5706
5777
  /**
5707
5778
  * Minimum number of cropped lines when breaking the limits.
5708
5779
  */
5709
- min_hidden_lines?: Type<number> | DivExpression;
5780
+ min_hidden_lines?: Type<number | DivExpression>;
5710
5781
  /**
5711
5782
  * Internal margins from the element stroke.
5712
5783
  */
@@ -5719,11 +5790,11 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
5719
5790
  /**
5720
5791
  * Merges cells in a string of the [grid](div-grid.md) element.
5721
5792
  */
5722
- row_span?: Type<number> | DivExpression;
5793
+ row_span?: Type<number | DivExpression>;
5723
5794
  /**
5724
5795
  * Selecting and copying text.
5725
5796
  */
5726
- selectable?: Type<IntBoolean> | DivExpression;
5797
+ selectable?: Type<IntBoolean | DivExpression>;
5727
5798
  /**
5728
5799
  * List of [actions](div-action.md) to be executed when selecting an element in
5729
5800
  * [pager](div-pager.md).
@@ -5732,23 +5803,23 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
5732
5803
  /**
5733
5804
  * Strikethrough.
5734
5805
  */
5735
- strike?: Type<DivLineStyle> | DivExpression;
5806
+ strike?: Type<DivLineStyle | DivExpression>;
5736
5807
  /**
5737
5808
  * Text.
5738
5809
  */
5739
- text: Type<string> | DivExpression;
5810
+ text: Type<string | DivExpression>;
5740
5811
  /**
5741
5812
  * Horizontal text alignment.
5742
5813
  */
5743
- text_alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
5814
+ text_alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
5744
5815
  /**
5745
5816
  * Vertical text alignment.
5746
5817
  */
5747
- text_alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
5818
+ text_alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
5748
5819
  /**
5749
5820
  * Text color. Not used if the `text_gradient` parameter is set.
5750
5821
  */
5751
- text_color?: Type<string> | DivExpression;
5822
+ text_color?: Type<string | DivExpression>;
5752
5823
  /**
5753
5824
  * Gradient text color.
5754
5825
  */
@@ -5787,15 +5858,15 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
5787
5858
  *
5788
5859
  * @deprecated
5789
5860
  */
5790
- truncate?: Type<DivTextTruncate> | DivExpression;
5861
+ truncate?: Type<DivTextTruncate | DivExpression>;
5791
5862
  /**
5792
5863
  * Underline.
5793
5864
  */
5794
- underline?: Type<DivLineStyle> | DivExpression;
5865
+ underline?: Type<DivLineStyle | DivExpression>;
5795
5866
  /**
5796
5867
  * Element visibility.
5797
5868
  */
5798
- visibility?: Type<DivVisibility> | DivExpression;
5869
+ visibility?: Type<DivVisibility | DivExpression>;
5799
5870
  /**
5800
5871
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
5801
5872
  * set.
@@ -5831,19 +5902,19 @@ interface DivTextProps {
5831
5902
  /**
5832
5903
  * Horizontal alignment of an element inside the parent element.
5833
5904
  */
5834
- alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
5905
+ alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
5835
5906
  /**
5836
5907
  * Vertical alignment of an element inside the parent element.
5837
5908
  */
5838
- alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
5909
+ alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
5839
5910
  /**
5840
5911
  * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
5841
5912
  */
5842
- alpha?: Type<number> | DivExpression;
5913
+ alpha?: Type<number | DivExpression>;
5843
5914
  /**
5844
5915
  * Automatic text cropping to fit the container size.
5845
5916
  */
5846
- auto_ellipsize?: Type<IntBoolean> | DivExpression;
5917
+ auto_ellipsize?: Type<IntBoolean | DivExpression>;
5847
5918
  /**
5848
5919
  * Element background. It can contain multiple layers.
5849
5920
  */
@@ -5855,7 +5926,7 @@ interface DivTextProps {
5855
5926
  /**
5856
5927
  * Merges cells in a column of the [grid](div-grid.md) element.
5857
5928
  */
5858
- column_span?: Type<number> | DivExpression;
5929
+ column_span?: Type<number | DivExpression>;
5859
5930
  /**
5860
5931
  * Action when double-clicking on an element.
5861
5932
  */
@@ -5876,21 +5947,21 @@ interface DivTextProps {
5876
5947
  /**
5877
5948
  * Text color when focusing on the element.
5878
5949
  */
5879
- focused_text_color?: Type<string> | DivExpression;
5950
+ focused_text_color?: Type<string | DivExpression>;
5880
5951
  /**
5881
5952
  * Font family:`text` — a standard text font;`display` — a family of fonts with a large font
5882
5953
  * size.
5883
5954
  */
5884
- font_family?: Type<DivFontFamily> | DivExpression;
5955
+ font_family?: Type<DivFontFamily | DivExpression>;
5885
5956
  /**
5886
5957
  * Font size.
5887
5958
  */
5888
- font_size?: Type<number> | DivExpression;
5889
- font_size_unit?: Type<DivSizeUnit> | DivExpression;
5959
+ font_size?: Type<number | DivExpression>;
5960
+ font_size_unit?: Type<DivSizeUnit | DivExpression>;
5890
5961
  /**
5891
5962
  * Style.
5892
5963
  */
5893
- font_weight?: Type<DivFontWeight> | DivExpression;
5964
+ font_weight?: Type<DivFontWeight | DivExpression>;
5894
5965
  /**
5895
5966
  * Element height. For Android: if there is text in this or in a child element, specify height in
5896
5967
  * `sp` to scale the element together with the text. To learn more about units of size
@@ -5909,11 +5980,11 @@ interface DivTextProps {
5909
5980
  /**
5910
5981
  * Spacing between characters.
5911
5982
  */
5912
- letter_spacing?: Type<number> | DivExpression;
5983
+ letter_spacing?: Type<number | DivExpression>;
5913
5984
  /**
5914
5985
  * Line spacing of the text range. The count is taken from the font baseline.
5915
5986
  */
5916
- line_height?: Type<number> | DivExpression;
5987
+ line_height?: Type<number | DivExpression>;
5917
5988
  /**
5918
5989
  * Action when long-clicking on an element.
5919
5990
  */
@@ -5925,11 +5996,11 @@ interface DivTextProps {
5925
5996
  /**
5926
5997
  * Maximum number of lines not to be cropped when breaking the limits.
5927
5998
  */
5928
- max_lines?: Type<number> | DivExpression;
5999
+ max_lines?: Type<number | DivExpression>;
5929
6000
  /**
5930
6001
  * Minimum number of cropped lines when breaking the limits.
5931
6002
  */
5932
- min_hidden_lines?: Type<number> | DivExpression;
6003
+ min_hidden_lines?: Type<number | DivExpression>;
5933
6004
  /**
5934
6005
  * Internal margins from the element stroke.
5935
6006
  */
@@ -5942,11 +6013,11 @@ interface DivTextProps {
5942
6013
  /**
5943
6014
  * Merges cells in a string of the [grid](div-grid.md) element.
5944
6015
  */
5945
- row_span?: Type<number> | DivExpression;
6016
+ row_span?: Type<number | DivExpression>;
5946
6017
  /**
5947
6018
  * Selecting and copying text.
5948
6019
  */
5949
- selectable?: Type<IntBoolean> | DivExpression;
6020
+ selectable?: Type<IntBoolean | DivExpression>;
5950
6021
  /**
5951
6022
  * List of [actions](div-action.md) to be executed when selecting an element in
5952
6023
  * [pager](div-pager.md).
@@ -5955,23 +6026,23 @@ interface DivTextProps {
5955
6026
  /**
5956
6027
  * Strikethrough.
5957
6028
  */
5958
- strike?: Type<DivLineStyle> | DivExpression;
6029
+ strike?: Type<DivLineStyle | DivExpression>;
5959
6030
  /**
5960
6031
  * Text.
5961
6032
  */
5962
- text: Type<string> | DivExpression;
6033
+ text: Type<string | DivExpression>;
5963
6034
  /**
5964
6035
  * Horizontal text alignment.
5965
6036
  */
5966
- text_alignment_horizontal?: Type<DivAlignmentHorizontal> | DivExpression;
6037
+ text_alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
5967
6038
  /**
5968
6039
  * Vertical text alignment.
5969
6040
  */
5970
- text_alignment_vertical?: Type<DivAlignmentVertical> | DivExpression;
6041
+ text_alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
5971
6042
  /**
5972
6043
  * Text color. Not used if the `text_gradient` parameter is set.
5973
6044
  */
5974
- text_color?: Type<string> | DivExpression;
6045
+ text_color?: Type<string | DivExpression>;
5975
6046
  /**
5976
6047
  * Gradient text color.
5977
6048
  */
@@ -6010,15 +6081,15 @@ interface DivTextProps {
6010
6081
  *
6011
6082
  * @deprecated
6012
6083
  */
6013
- truncate?: Type<DivTextTruncate> | DivExpression;
6084
+ truncate?: Type<DivTextTruncate | DivExpression>;
6014
6085
  /**
6015
6086
  * Underline.
6016
6087
  */
6017
- underline?: Type<DivLineStyle> | DivExpression;
6088
+ underline?: Type<DivLineStyle | DivExpression>;
6018
6089
  /**
6019
6090
  * Element visibility.
6020
6091
  */
6021
- visibility?: Type<DivVisibility> | DivExpression;
6092
+ visibility?: Type<DivVisibility | DivExpression>;
6022
6093
  /**
6023
6094
  * Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
6024
6095
  * set.
@@ -6053,7 +6124,7 @@ interface IDivTextEllipsis {
6053
6124
  /**
6054
6125
  * Marker text.
6055
6126
  */
6056
- text: Type<string> | DivExpression;
6127
+ text: Type<string | DivExpression>;
6057
6128
  }
6058
6129
  /**
6059
6130
  * Image.
@@ -6067,15 +6138,15 @@ interface IDivTextImage {
6067
6138
  * A symbol to insert prior to an image. To insert an image at the end of the text, specify the
6068
6139
  * number of the last character plus one.
6069
6140
  */
6070
- start: Type<number> | DivExpression;
6141
+ start: Type<number | DivExpression>;
6071
6142
  /**
6072
6143
  * New color of a contour image.
6073
6144
  */
6074
- tint_color?: Type<string> | DivExpression;
6145
+ tint_color?: Type<string | DivExpression>;
6075
6146
  /**
6076
6147
  * Image URL.
6077
6148
  */
6078
- url: Type<string> | DivExpression;
6149
+ url: Type<string | DivExpression>;
6079
6150
  /**
6080
6151
  * Image width.
6081
6152
  */
@@ -6092,56 +6163,56 @@ interface IDivTextRange {
6092
6163
  /**
6093
6164
  * Ordinal number of the last character to be included in the range.
6094
6165
  */
6095
- end: Type<number> | DivExpression;
6166
+ end: Type<number | DivExpression>;
6096
6167
  /**
6097
6168
  * Font family:`text` — a standard text font;`display` — a family of fonts with a large font
6098
6169
  * size.
6099
6170
  */
6100
- font_family?: Type<DivFontFamily> | DivExpression;
6171
+ font_family?: Type<DivFontFamily | DivExpression>;
6101
6172
  /**
6102
6173
  * Font size.
6103
6174
  */
6104
- font_size?: Type<number> | DivExpression;
6175
+ font_size?: Type<number | DivExpression>;
6105
6176
  /**
6106
6177
  * Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
6107
6178
  * screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
6108
6179
  * height in `sp`. Only available on Android.
6109
6180
  */
6110
- font_size_unit?: Type<DivSizeUnit> | DivExpression;
6181
+ font_size_unit?: Type<DivSizeUnit | DivExpression>;
6111
6182
  /**
6112
6183
  * Style.
6113
6184
  */
6114
- font_weight?: Type<DivFontWeight> | DivExpression;
6185
+ font_weight?: Type<DivFontWeight | DivExpression>;
6115
6186
  /**
6116
6187
  * Spacing between characters.
6117
6188
  */
6118
- letter_spacing?: Type<number> | DivExpression;
6189
+ letter_spacing?: Type<number | DivExpression>;
6119
6190
  /**
6120
6191
  * Line spacing of the text range. The count is taken from the font baseline. Measured in units
6121
6192
  * specified in `font_size_unit`.
6122
6193
  */
6123
- line_height?: Type<number> | DivExpression;
6194
+ line_height?: Type<number | DivExpression>;
6124
6195
  /**
6125
6196
  * Ordinal number of a character which the range begins from. The first character has a number
6126
6197
  * `0`.
6127
6198
  */
6128
- start: Type<number> | DivExpression;
6199
+ start: Type<number | DivExpression>;
6129
6200
  /**
6130
6201
  * Strikethrough.
6131
6202
  */
6132
- strike?: Type<DivLineStyle> | DivExpression;
6203
+ strike?: Type<DivLineStyle | DivExpression>;
6133
6204
  /**
6134
6205
  * Text color.
6135
6206
  */
6136
- text_color?: Type<string> | DivExpression;
6207
+ text_color?: Type<string | DivExpression>;
6137
6208
  /**
6138
6209
  * The top margin of the text range. Measured in units specified in `font_size_unit`.
6139
6210
  */
6140
- top_offset?: Type<number> | DivExpression;
6211
+ top_offset?: Type<number | DivExpression>;
6141
6212
  /**
6142
6213
  * Underline.
6143
6214
  */
6144
- underline?: Type<DivLineStyle> | DivExpression;
6215
+ underline?: Type<DivLineStyle | DivExpression>;
6145
6216
  }
6146
6217
 
6147
6218
  declare type DivTextGradient = DivLinearGradient | DivRadialGradient;
@@ -6169,7 +6240,7 @@ interface IDivTooltip {
6169
6240
  * Duration of the tooltip visibility in milliseconds. When the value is set to `0`, the tooltip
6170
6241
  * will be visible until the user hides it.
6171
6242
  */
6172
- duration?: Type<number> | DivExpression;
6243
+ duration?: Type<number | DivExpression>;
6173
6244
  /**
6174
6245
  * Tooltip ID. It is used to avoid re-showing. It must be unique for all element tooltips.
6175
6246
  */
@@ -6181,7 +6252,7 @@ interface IDivTooltip {
6181
6252
  /**
6182
6253
  * The position of a tooltip relative to an element it belongs to.
6183
6254
  */
6184
- position: Type<DivTooltipPosition> | DivExpression;
6255
+ position: Type<DivTooltipPosition | DivExpression>;
6185
6256
  }
6186
6257
  declare type DivTooltipPosition = 'left' | 'top-left' | 'top' | 'top-right' | 'right' | 'bottom-right' | 'bottom' | 'bottom-left';
6187
6258
 
@@ -6201,22 +6272,22 @@ interface IDivTransform {
6201
6272
  * The number of degrees by which the element must be rotated. A positive value describes a
6202
6273
  * clockwise rotation.
6203
6274
  */
6204
- rotation?: Type<number> | DivExpression;
6275
+ rotation?: Type<number | DivExpression>;
6205
6276
  }
6206
6277
 
6207
6278
  interface IDivTransitionBase {
6208
6279
  /**
6209
6280
  * Animation duration in milliseconds.
6210
6281
  */
6211
- duration?: Type<number> | DivExpression;
6282
+ duration?: Type<number | DivExpression>;
6212
6283
  /**
6213
6284
  * Transition speed nature.
6214
6285
  */
6215
- interpolator?: Type<DivAnimationInterpolator> | DivExpression;
6286
+ interpolator?: Type<DivAnimationInterpolator | DivExpression>;
6216
6287
  /**
6217
6288
  * Delay in milliseconds before animation starts.
6218
6289
  */
6219
- start_delay?: Type<number> | DivExpression;
6290
+ start_delay?: Type<number | DivExpression>;
6220
6291
  }
6221
6292
 
6222
6293
  declare type DivTransitionSelector = 'none' | 'data_change' | 'state_change' | 'any_change';
@@ -6234,13 +6305,13 @@ interface IDivTrigger {
6234
6305
  /**
6235
6306
  * Condition for activating a trigger. For example, `liked && subscribed`.
6236
6307
  */
6237
- condition: Type<IntBoolean> | DivExpression;
6308
+ condition: Type<IntBoolean | DivExpression>;
6238
6309
  /**
6239
6310
  * Trigger activation mode:`on_condition` — a trigger is activated when the condition changes
6240
6311
  * from `false` to `true`;`on_variable` — a trigger is activated when the condition is met and
6241
6312
  * the variable value changes.
6242
6313
  */
6243
- mode?: Type<DivTriggerMode> | DivExpression;
6314
+ mode?: Type<DivTriggerMode | DivExpression>;
6244
6315
  }
6245
6316
  declare type DivTriggerMode = 'on_condition' | 'on_variable';
6246
6317
 
@@ -6263,7 +6334,7 @@ interface IDivVisibilityAction {
6263
6334
  /**
6264
6335
  * Limit on the number of loggings. If `0`, the limit is removed.
6265
6336
  */
6266
- log_limit?: Type<number> | DivExpression;
6337
+ log_limit?: Type<number | DivExpression>;
6267
6338
  /**
6268
6339
  * Additional parameters, passed to the host application.
6269
6340
  */
@@ -6271,20 +6342,20 @@ interface IDivVisibilityAction {
6271
6342
  /**
6272
6343
  * Referer URL for logging.
6273
6344
  */
6274
- referer?: Type<string> | DivExpression;
6345
+ referer?: Type<string | DivExpression>;
6275
6346
  /**
6276
6347
  * URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with
6277
6348
  * elements](../../interaction.dita).
6278
6349
  */
6279
- url?: Type<string> | DivExpression;
6350
+ url?: Type<string | DivExpression>;
6280
6351
  /**
6281
6352
  * Time in milliseconds during which an element must be visible to trigger `visibility-action`.
6282
6353
  */
6283
- visibility_duration?: Type<number> | DivExpression;
6354
+ visibility_duration?: Type<number | DivExpression>;
6284
6355
  /**
6285
6356
  * Percentage of the visible part of an element that triggers `visibility-action`.
6286
6357
  */
6287
- visibility_percentage?: Type<number> | DivExpression;
6358
+ visibility_percentage?: Type<number | DivExpression>;
6288
6359
  }
6289
6360
 
6290
6361
  /**
@@ -6297,7 +6368,7 @@ declare class DivWrapContentSize<T extends DivWrapContentSizeProps = DivWrapCont
6297
6368
  * The final size mustn't exceed the parent one. On iOS and in a default browser `false`. On
6298
6369
  * Android always `true`.
6299
6370
  */
6300
- constrained?: Type<IntBoolean> | DivExpression;
6371
+ constrained?: Type<IntBoolean | DivExpression>;
6301
6372
  constructor(props?: Exact<DivWrapContentSizeProps, T>);
6302
6373
  }
6303
6374
  interface DivWrapContentSizeProps {
@@ -6305,7 +6376,7 @@ interface DivWrapContentSizeProps {
6305
6376
  * The final size mustn't exceed the parent one. On iOS and in a default browser `false`. On
6306
6377
  * Android always `true`.
6307
6378
  */
6308
- constrained?: Type<IntBoolean> | DivExpression;
6379
+ constrained?: Type<IntBoolean | DivExpression>;
6309
6380
  }
6310
6381
 
6311
6382
  /**
@@ -6427,6 +6498,9 @@ declare function matchParent(): DivMatchParentSize;
6427
6498
  declare function weighted(weight: number): DivMatchParentSize;
6428
6499
  declare function wrapContent(): DivWrapContentSize;
6429
6500
 
6501
+ declare function expression(expression: string): DivExpression;
6502
+ declare function escapeExpression(str: string): string;
6503
+
6430
6504
  declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
6431
6505
  declare type IsNeverType<T> = [T] extends [never] ? true : false;
6432
6506
  declare type NU<T> = unknown extends T ? {} : IsNeverType<T> extends true ? {} : T;
@@ -6575,4 +6649,4 @@ declare function rewriteTemplateVersions<T extends ITemplates>(templates: T, res
6575
6649
  };
6576
6650
  };
6577
6651
 
6578
- export { BooleanVariable, BooleanVariableProps, ColorVariable, ColorVariableProps, DelimiterStyleOrientation, Div, DivAccessibilityMode, DivAccessibilityType, DivActionTarget, DivAlignmentHorizontal, DivAlignmentVertical, DivAnimationInterpolator, DivAnimationName, DivAppearanceSetTransition, DivAppearanceSetTransitionProps, DivAppearanceTransition, DivBackground, DivChangeBoundsTransition, DivChangeBoundsTransitionProps, DivChangeSetTransition, DivChangeSetTransitionProps, DivChangeTransition, DivContainer, DivContainerLayoutMode, DivContainerOrientation, DivContainerProps, DivCount, DivCustom, DivCustomProps, DivDrawable, DivExpression, DivFadeTransition, DivFadeTransitionProps, DivFixedCount, DivFixedCountProps, DivFixedSize, DivFixedSizeProps, DivFontFamily, DivFontWeight, DivGallery, DivGalleryCrossContentAlignment, DivGalleryOrientation, DivGalleryProps, DivGalleryScrollMode, DivGifImage, DivGifImageProps, DivGradientBackground, DivGrid, DivGridProps, DivImage, DivImageBackground, DivImageBackgroundProps, DivImageProps, DivImageScale, DivIndicator, DivIndicatorAnimation, DivIndicatorProps, DivInfinityCount, DivInfinityCountProps, DivInput, DivInputKeyboardType, DivInputProps, DivLineStyle, DivLinearGradient, DivLinearGradientProps, DivMatchParentSize, DivMatchParentSizeProps, DivNeighbourPageSize, DivNeighbourPageSizeProps, DivPageSize, DivPageSizeProps, DivPager, DivPagerLayoutMode, DivPagerOrientation, DivPagerProps, DivPatchMode, DivPercentageSize, DivPercentageSizeProps, DivPivot, DivPivotFixed, DivPivotFixedProps, DivPivotPercentage, DivPivotPercentageProps, DivRadialGradient, DivRadialGradientProps, DivRoundedRectangleShape, DivRoundedRectangleShapeProps, DivScaleTransition, DivScaleTransitionProps, DivSeparator, DivSeparatorProps, DivShape, DivShapeDrawable, DivShapeDrawableProps, DivSize, DivSizeUnit, DivSlideTransition, DivSlideTransitionEdge, DivSlideTransitionProps, DivSlider, DivSliderProps, DivSolidBackground, DivSolidBackgroundProps, DivState, DivStateProps, DivTabs, DivTabsProps, DivText, DivTextGradient, DivTextProps, DivTextTruncate, DivTooltipPosition, DivTransitionSelector, DivTransitionTrigger, DivTriggerMode, DivVariable, DivVisibility, DivWrapContentSize, DivWrapContentSizeProps, Exact, IDivAccessibility, IDivAction, IDivActionMenuItem, IDivAnimation, IDivAspect, IDivBase, IDivBorder, IDivCornersRadius, IDivData, IDivDataState, IDivDimension, IDivDownloadCallbacks, IDivEdgeInsets, IDivExtension, IDivFocus, IDivFocusNextFocusIds, IDivInputNativeInterface, IDivPatch, IDivPatchChange, IDivPoint, IDivSeparatorDelimiterStyle, IDivShadow, IDivSliderTextStyle, IDivStateState, IDivStroke, IDivTabsItem, IDivTabsTabTitleStyle, IDivTextEllipsis, IDivTextImage, IDivTextRange, IDivTooltip, IDivTransform, IDivTransitionBase, IDivTrigger, IDivVisibilityAction, ITemplates, IntBoolean, IntegerVariable, IntegerVariableProps, NonEmptyArray, NumberVariable, NumberVariableProps, StringVariable, StringVariableProps, TabTitleStyleAnimationType, TemplateBlock, TemplateHelper, TemplatePropertyReference, TemplateResolvedAction, ThelperWithMemo, Type, UrlVariable, UrlVariableProps, copyTemplates, divCard, escapeCard, escapeExpression, expression, fixed, getTemplateHash, isExternalTemplate, matchParent, reference, rewriteNames, rewriteRefs, rewriteTemplateVersions, runResolveDeps, template, templateHelper, templatesDepsMap, thelperVersion, thelperWithMemo, treeWalkDFS, weighted, wrapContent };
6652
+ export { BooleanVariable, BooleanVariableProps, ColorVariable, ColorVariableProps, DelimiterStyleOrientation, Div, DivAccessibilityMode, DivAccessibilityType, DivActionTarget, DivAlignmentHorizontal, DivAlignmentVertical, DivAnimationInterpolator, DivAnimationName, DivAppearanceSetTransition, DivAppearanceSetTransitionProps, DivAppearanceTransition, DivBackground, DivChangeBoundsTransition, DivChangeBoundsTransitionProps, DivChangeSetTransition, DivChangeSetTransitionProps, DivChangeTransition, DivContainer, DivContainerLayoutMode, DivContainerOrientation, DivContainerProps, DivCount, DivCustom, DivCustomProps, DivDrawable, DivExpression, DivFadeTransition, DivFadeTransitionProps, DivFixedCount, DivFixedCountProps, DivFixedSize, DivFixedSizeProps, DivFontFamily, DivFontWeight, DivGallery, DivGalleryCrossContentAlignment, DivGalleryOrientation, DivGalleryProps, DivGalleryScrollMode, DivGifImage, DivGifImageProps, DivGradientBackground, DivGrid, DivGridProps, DivImage, DivImageBackground, DivImageBackgroundProps, DivImageProps, DivImageScale, DivIndicator, DivIndicatorAnimation, DivIndicatorProps, DivInfinityCount, DivInfinityCountProps, DivInput, DivInputKeyboardType, DivInputProps, DivLineStyle, DivLinearGradient, DivLinearGradientProps, DivMatchParentSize, DivMatchParentSizeProps, DivNeighbourPageSize, DivNeighbourPageSizeProps, DivPageSize, DivPageSizeProps, DivPager, DivPagerLayoutMode, DivPagerOrientation, DivPagerProps, DivPatchMode, DivPercentageSize, DivPercentageSizeProps, DivPivot, DivPivotFixed, DivPivotFixedProps, DivPivotPercentage, DivPivotPercentageProps, DivRadialGradient, DivRadialGradientCenter, DivRadialGradientFixedCenter, DivRadialGradientFixedCenterProps, DivRadialGradientProps, DivRadialGradientRadius, DivRadialGradientRelativeCenter, DivRadialGradientRelativeCenterProps, DivRadialGradientRelativeRadius, DivRadialGradientRelativeRadiusProps, DivRadialGradientRelativeRadiusValue, DivRoundedRectangleShape, DivRoundedRectangleShapeProps, DivScaleTransition, DivScaleTransitionProps, DivSeparator, DivSeparatorProps, DivShape, DivShapeDrawable, DivShapeDrawableProps, DivSize, DivSizeUnit, DivSlideTransition, DivSlideTransitionEdge, DivSlideTransitionProps, DivSlider, DivSliderProps, DivSolidBackground, DivSolidBackgroundProps, DivState, DivStateProps, DivTabs, DivTabsProps, DivText, DivTextGradient, DivTextProps, DivTextTruncate, DivTooltipPosition, DivTransitionSelector, DivTransitionTrigger, DivTriggerMode, DivVariable, DivVisibility, DivWrapContentSize, DivWrapContentSizeProps, Exact, IDivAccessibility, IDivAction, IDivActionMenuItem, IDivAnimation, IDivAspect, IDivBase, IDivBorder, IDivCornersRadius, IDivData, IDivDataState, IDivDimension, IDivDownloadCallbacks, IDivEdgeInsets, IDivExtension, IDivFocus, IDivFocusNextFocusIds, IDivInputNativeInterface, IDivPatch, IDivPatchChange, IDivPoint, IDivSeparatorDelimiterStyle, IDivShadow, IDivSliderTextStyle, IDivStateState, IDivStroke, IDivTabsItem, IDivTabsTabTitleStyle, IDivTextEllipsis, IDivTextImage, IDivTextRange, IDivTooltip, IDivTransform, IDivTransitionBase, IDivTrigger, IDivVisibilityAction, ITemplates, IntBoolean, IntegerVariable, IntegerVariableProps, NonEmptyArray, NumberVariable, NumberVariableProps, SafeDivExpression, StringVariable, StringVariableProps, TabTitleStyleAnimationType, TemplateBlock, TemplateHelper, TemplatePropertyReference, TemplateResolvedAction, ThelperWithMemo, Type, UrlVariable, UrlVariableProps, copyTemplates, divCard, escapeCard, escapeExpression, expression, fixed, getTemplateHash, isExternalTemplate, matchParent, reference, rewriteNames, rewriteRefs, rewriteTemplateVersions, runResolveDeps, template, templateHelper, templatesDepsMap, thelperVersion, thelperWithMemo, treeWalkDFS, weighted, wrapContent };