modern-idoc 0.4.4 → 0.5.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.
package/dist/index.d.cts CHANGED
@@ -1,20 +1,29 @@
1
+ import { Colord } from 'colord';
2
+
1
3
  type None = 'none';
2
- declare interface RgbColor {
4
+
5
+ interface AudioDeclaration {
6
+ src: string;
7
+ }
8
+ type AudioProperty = None | string | AudioDeclaration;
9
+ declare function normalizeAudio(audio?: AudioProperty): AudioDeclaration | undefined;
10
+
11
+ interface RgbColor {
3
12
  r: number;
4
13
  g: number;
5
14
  b: number;
6
15
  }
7
- declare interface HslColor {
16
+ interface HslColor {
8
17
  h: number;
9
18
  s: number;
10
19
  l: number;
11
20
  }
12
- declare interface HsvColor {
21
+ interface HsvColor {
13
22
  h: number;
14
23
  s: number;
15
24
  v: number;
16
25
  }
17
- declare interface HwbColor {
26
+ interface HwbColor {
18
27
  h: number;
19
28
  w: number;
20
29
  b: number;
@@ -40,34 +49,32 @@ interface CmykColor {
40
49
  y: number;
41
50
  k: number;
42
51
  }
43
- declare type WithAlpha<O> = O & {
52
+ type WithAlpha<O> = O & {
44
53
  a: number;
45
54
  };
46
- declare type RgbaColor = WithAlpha<RgbColor>;
47
- declare type HslaColor = WithAlpha<HslColor>;
48
- declare type HsvaColor = WithAlpha<HsvColor>;
49
- declare type HwbaColor = WithAlpha<HwbColor>;
50
- declare type XyzaColor = WithAlpha<XyzColor>;
51
- declare type LabaColor = LabColor & {
55
+ type RgbaColor = WithAlpha<RgbColor>;
56
+ type HslaColor = WithAlpha<HslColor>;
57
+ type HsvaColor = WithAlpha<HsvColor>;
58
+ type HwbaColor = WithAlpha<HwbColor>;
59
+ type XyzaColor = WithAlpha<XyzColor>;
60
+ type LabaColor = LabColor & {
52
61
  alpha: number;
53
62
  };
54
- declare type LchaColor = WithAlpha<LchColor>;
55
- declare type CmykaColor = WithAlpha<CmykColor>;
56
- declare type ObjectColor = RgbColor | RgbaColor | HslColor | HslaColor | HsvColor | HsvaColor | HwbColor | HwbaColor | XyzColor | XyzaColor | LabColor | LabaColor | LchColor | LchaColor | CmykColor | CmykaColor;
57
- declare type AnyColor = string | ObjectColor;
58
- type ColorValue = number | AnyColor;
59
-
60
- interface AudioDeclaration {
61
- src: string;
62
- }
63
- type AudioProperty = None | string | AudioDeclaration;
64
- declare function normalizeAudio(audio?: AudioProperty): AudioDeclaration | undefined;
63
+ type LchaColor = WithAlpha<LchColor>;
64
+ type CmykaColor = WithAlpha<CmykColor>;
65
+ type ObjectColor = RgbColor | RgbaColor | HslColor | HslaColor | HsvColor | HsvaColor | HwbColor | HwbaColor | XyzColor | XyzaColor | LabColor | LabaColor | LchColor | LchaColor | CmykColor | CmykaColor;
66
+ type Uint32Color = number;
67
+ type Color = None | Uint32Color | ObjectColor | string;
68
+ type RgbString = string;
69
+ type ColorDeclaration = RgbString;
70
+ declare function parseColor(color: Color): Colord;
71
+ declare function normalizeColor(color?: Color, orFail?: boolean): ColorDeclaration | undefined;
65
72
 
66
73
  interface GradientFillDeclaration {
67
74
  }
68
75
 
69
76
  interface SolidFillDeclaration {
70
- color: ColorValue;
77
+ color: ColorDeclaration;
71
78
  }
72
79
 
73
80
  /**
@@ -115,45 +122,68 @@ interface TextureFillDeclaration {
115
122
  }
116
123
 
117
124
  type FillDeclaration = Partial<TextureFillDeclaration> & Partial<SolidFillDeclaration> & Partial<GradientFillDeclaration>;
118
- type FillProperty = None | string | FillDeclaration;
125
+ type FillPropertyObject = FillDeclaration & {
126
+ color?: Color;
127
+ };
128
+ type FillProperty = None | string | FillPropertyObject;
119
129
  declare function normalizeFill(fill?: FillProperty): FillDeclaration | undefined;
120
130
 
121
- type BackgroundDeclaration = FillDeclaration;
122
- type BackgroundProperty = None | string | BackgroundDeclaration;
131
+ interface BaseBackgroundDeclaration {
132
+ withGeometry?: boolean;
133
+ }
134
+ type BackgroundDeclaration = BaseBackgroundDeclaration & FillDeclaration;
135
+ type BackgroundPropertyObject = BaseBackgroundDeclaration & FillPropertyObject;
136
+ type BackgroundProperty = None | string | BackgroundPropertyObject;
123
137
  declare function normalizeBackground(background?: BackgroundProperty): BackgroundDeclaration | undefined;
124
138
 
125
139
  interface InnerShadowDeclaration {
126
- color: ColorValue;
127
- offsetX?: number;
128
- offsetY?: number;
129
- blurRadius?: number;
140
+ color: ColorDeclaration;
141
+ offsetX: number;
142
+ offsetY: number;
143
+ blurRadius: number;
130
144
  }
131
- type InnerShadowProperty = None | InnerShadowDeclaration;
145
+ type InnerShadowPropertyObject = Partial<InnerShadowDeclaration> & {
146
+ color: Color;
147
+ };
148
+ type InnerShadowProperty = None | InnerShadowPropertyObject;
149
+ declare function getDefaultInnerShadow(): InnerShadowDeclaration;
132
150
  declare function normalizeInnerShadow(shadow?: InnerShadowProperty): InnerShadowDeclaration | undefined;
133
151
 
134
- interface OuterShadowDeclaration extends InnerShadowDeclaration {
135
- scaleX?: number;
136
- scaleY?: number;
152
+ interface BaseOuterShadowDeclaration {
153
+ scaleX: number;
154
+ scaleY: number;
137
155
  }
138
- type OuterShadowProperty = None | OuterShadowDeclaration;
156
+ type OuterShadowDeclaration = BaseOuterShadowDeclaration & InnerShadowDeclaration;
157
+ type OuterShadowPropertyObject = Partial<BaseOuterShadowDeclaration> & InnerShadowPropertyObject;
158
+ type OuterShadowProperty = None | OuterShadowPropertyObject;
159
+ declare function getDefaultOuterShadow(): OuterShadowDeclaration;
139
160
  declare function normalizeOuterShadow(shadow?: OuterShadowProperty): OuterShadowDeclaration | undefined;
140
161
 
141
162
  interface SoftEdgeDeclaration {
142
163
  radius: number;
143
164
  }
144
- interface SoftEdge {
145
- }
165
+ type SoftEdgeProperty = None | SoftEdgeDeclaration;
166
+ declare function normalizeSoftEdge(softEdge?: SoftEdgeProperty): SoftEdgeDeclaration | undefined;
146
167
 
147
168
  interface EffectDeclaration {
148
169
  innerShadow?: InnerShadowDeclaration;
149
170
  outerShadow?: OuterShadowDeclaration;
150
171
  softEdge?: SoftEdgeDeclaration;
151
172
  }
152
- type EffectProperty = None | EffectDeclaration;
173
+ interface EffectPropertyObject {
174
+ innerShadow?: InnerShadowProperty;
175
+ outerShadow?: OuterShadowProperty;
176
+ softEdge?: SoftEdgeProperty;
177
+ }
178
+ type EffectProperty = None | EffectPropertyObject;
153
179
  declare function normalizeEffect(effect?: EffectProperty): EffectDeclaration | undefined;
154
180
 
155
- type ForegroundDeclaration = FillDeclaration;
156
- type ForegroundProperty = None | string | ForegroundDeclaration;
181
+ interface BaseForegroundDeclaration {
182
+ withGeometry?: boolean;
183
+ }
184
+ type ForegroundDeclaration = BaseForegroundDeclaration & FillDeclaration;
185
+ type ForegroundPropertyObject = BaseForegroundDeclaration & FillPropertyObject;
186
+ type ForegroundProperty = None | string | ForegroundPropertyObject;
157
187
  declare function normalizeForeground(foreground?: ForegroundProperty): ForegroundDeclaration | undefined;
158
188
 
159
189
  type SVGPathData = string;
@@ -164,7 +194,7 @@ interface GeometryPathStyle {
164
194
  [key: string]: any;
165
195
  opacity: number;
166
196
  visibility: string;
167
- shadowColor: ColorValue;
197
+ shadowColor: ColorDeclaration;
168
198
  shadowOffsetX: number;
169
199
  shadowOffsetY: number;
170
200
  shadowBlur: number;
@@ -202,31 +232,54 @@ interface Node<T = MetaProperty> {
202
232
  meta?: T;
203
233
  }
204
234
 
205
- interface OutlineDeclaration {
235
+ type LineEndType = 'oval' | 'stealth' | 'triangle' | 'arrow' | 'diamond';
236
+ type LineEndSize = 'sm' | 'md' | 'lg';
237
+
238
+ interface HeadEnd {
239
+ type: LineEndType;
240
+ width?: None | LineEndSize;
241
+ height?: None | LineEndSize;
242
+ }
243
+
244
+ interface TailEnd {
245
+ type: LineEndType;
246
+ width?: None | LineEndSize;
247
+ height?: None | LineEndSize;
248
+ }
249
+
250
+ type OutlineFillDeclaration = Partial<SolidFillDeclaration> & Partial<GradientFillDeclaration>;
251
+ type OutlineStyle = 'dashed' | 'solid' | string;
252
+ interface OutlineDeclaration extends OutlineFillDeclaration {
206
253
  width?: number;
207
- style?: 'dashed' | 'solid' | string;
208
- src?: string;
209
- color?: ColorValue;
210
- opacity?: number;
254
+ color?: ColorDeclaration;
255
+ style?: OutlineStyle;
256
+ headEnd?: HeadEnd;
257
+ tailEnd?: TailEnd;
211
258
  }
212
- type OutlineProperty = None | string | Partial<OutlineDeclaration>;
259
+ type OutlinePropertyObject = Partial<OutlineDeclaration> & {
260
+ color?: Color;
261
+ };
262
+ type OutlineProperty = None | string | OutlinePropertyObject;
213
263
  declare function normalizeOutline(outline?: OutlineProperty): OutlineDeclaration | undefined;
214
264
 
215
265
  type BoxShadow = None | string;
216
266
  interface ShadowDeclaration {
217
- color: ColorValue;
267
+ color: ColorDeclaration;
218
268
  offsetX?: number;
219
269
  offsetY?: number;
220
270
  blur?: number;
221
271
  }
222
- type ShadowProperty = None | BoxShadow | ShadowDeclaration;
223
- interface ShadowStyleDeclaration {
272
+ type ShadowPropertyObject = Partial<ShadowDeclaration> & {
273
+ color?: Color;
274
+ };
275
+ type ShadowProperty = None | BoxShadow | ShadowPropertyObject;
276
+ type ShadowStyleDeclaration = Partial<{
224
277
  boxShadow: BoxShadow;
225
- shadowColor?: ColorValue;
226
- shadowOffsetX?: number;
227
- shadowOffsetY?: number;
228
- shadowBlur?: number;
229
- }
278
+ shadowColor: ColorDeclaration;
279
+ shadowOffsetX: number;
280
+ shadowOffsetY: number;
281
+ shadowBlur: number;
282
+ }>;
230
283
  declare function getDefaultShadowStyle(): ShadowStyleDeclaration;
231
284
  declare function normalizeShadow(shadow?: ShadowProperty): ShadowDeclaration | undefined;
232
285
 
@@ -265,53 +318,53 @@ type HighlightColormap = None | Record<string, string>;
265
318
  type HighlightSize = StyleUnit | `${number}rem` | 'cover';
266
319
  type HighlightThickness = StyleUnit;
267
320
 
268
- interface LayoutStyleDeclaration {
321
+ type LayoutStyleDeclaration = Partial<{
269
322
  overflow: Overflow;
270
- direction?: Direction;
271
- display?: Display;
272
- boxSizing?: BoxSizing;
273
- width?: StyleUnit | 'auto';
274
- height?: StyleUnit | 'auto';
275
- maxHeight?: StyleUnit;
276
- maxWidth?: StyleUnit;
277
- minHeight?: StyleUnit;
278
- minWidth?: StyleUnit;
279
- position?: Position;
323
+ direction: Direction;
324
+ display: Display;
325
+ boxSizing: BoxSizing;
326
+ width: StyleUnit | 'auto';
327
+ height: StyleUnit | 'auto';
328
+ maxHeight: StyleUnit;
329
+ maxWidth: StyleUnit;
330
+ minHeight: StyleUnit;
331
+ minWidth: StyleUnit;
332
+ position: Position;
280
333
  left: StyleUnit;
281
334
  top: StyleUnit;
282
- right?: StyleUnit;
283
- bottom?: StyleUnit;
284
- borderTop?: string;
285
- borderLeft?: string;
286
- borderRight?: string;
287
- borderBottom?: string;
288
- borderWidth?: number;
289
- border?: string;
290
- flex?: number;
291
- flexBasis?: StyleUnit | 'auto';
292
- flexDirection?: FlexDirection;
293
- flexGrow?: number;
294
- flexShrink?: number;
295
- flexWrap?: FlexWrap;
296
- alignContent?: Align;
297
- alignItems?: Align;
298
- alignSelf?: Align;
299
- justifyContent?: Justify;
300
- gap?: StyleUnit;
301
- marginTop?: None | StyleUnit | 'auto';
302
- marginLeft?: None | StyleUnit | 'auto';
303
- marginRight?: None | StyleUnit | 'auto';
304
- marginBottom?: None | StyleUnit | 'auto';
305
- margin?: None | StyleUnit | 'auto';
306
- paddingTop?: StyleUnit;
307
- paddingLeft?: StyleUnit;
308
- paddingRight?: StyleUnit;
309
- paddingBottom?: StyleUnit;
310
- padding?: StyleUnit;
311
- }
335
+ right: StyleUnit;
336
+ bottom: StyleUnit;
337
+ borderTop: string;
338
+ borderLeft: string;
339
+ borderRight: string;
340
+ borderBottom: string;
341
+ borderWidth: number;
342
+ border: string;
343
+ flex: number;
344
+ flexBasis: StyleUnit | 'auto';
345
+ flexDirection: FlexDirection;
346
+ flexGrow: number;
347
+ flexShrink: number;
348
+ flexWrap: FlexWrap;
349
+ alignContent: Align;
350
+ alignItems: Align;
351
+ alignSelf: Align;
352
+ justifyContent: Justify;
353
+ gap: StyleUnit;
354
+ marginTop: None | StyleUnit | 'auto';
355
+ marginLeft: None | StyleUnit | 'auto';
356
+ marginRight: None | StyleUnit | 'auto';
357
+ marginBottom: None | StyleUnit | 'auto';
358
+ margin: None | StyleUnit | 'auto';
359
+ paddingTop: StyleUnit;
360
+ paddingLeft: StyleUnit;
361
+ paddingRight: StyleUnit;
362
+ paddingBottom: StyleUnit;
363
+ padding: StyleUnit;
364
+ }>;
312
365
  declare function getDefaultLayoutStyle(): LayoutStyleDeclaration;
313
366
 
314
- interface TransformStyleDeclaration {
367
+ type TransformStyleDeclaration = Partial<{
315
368
  rotate: number;
316
369
  scaleX: number;
317
370
  scaleY: number;
@@ -321,25 +374,25 @@ interface TransformStyleDeclaration {
321
374
  translateY: number;
322
375
  transform: None | string;
323
376
  transformOrigin: string;
324
- }
325
- declare function getDefaultTransformStyle(): TransformStyleDeclaration;
377
+ }>;
378
+ declare function getDefaultTransformStyle(): Required<TransformStyleDeclaration>;
326
379
 
327
- interface ElementStyleDeclaration extends LayoutStyleDeclaration, TransformStyleDeclaration, ShadowStyleDeclaration {
328
- backgroundImage?: None | string;
329
- backgroundColor?: None | ColorValue;
380
+ type ElementStyleDeclaration = LayoutStyleDeclaration & TransformStyleDeclaration & ShadowStyleDeclaration & Partial<{
381
+ backgroundImage: None | string;
382
+ backgroundColor: None | ColorDeclaration;
330
383
  borderRadius: number;
331
- borderColor?: None | ColorValue;
384
+ borderColor: None | ColorDeclaration;
332
385
  borderStyle: BorderStyle;
333
386
  outlineWidth: number;
334
387
  outlineOffset: number;
335
- outlineColor: None | ColorValue;
388
+ outlineColor: None | ColorDeclaration;
336
389
  outlineStyle: string;
337
390
  visibility: Visibility;
338
391
  filter: string;
339
392
  opacity: number;
340
393
  pointerEvents: PointerEvents;
341
394
  maskImage: None | string;
342
- }
395
+ }>;
343
396
  declare function getDefaultElementStyle(): ElementStyleDeclaration;
344
397
 
345
398
  interface HighlightDeclaration {
@@ -350,16 +403,16 @@ interface HighlightDeclaration {
350
403
  size: HighlightSize;
351
404
  thickness: HighlightThickness;
352
405
  }
353
- interface HighlightStyleDeclaration {
354
- highlight?: Partial<HighlightDeclaration>;
406
+ type HighlightStyleDeclaration = Partial<{
407
+ highlight: Partial<HighlightDeclaration>;
355
408
  highlightImage: HighlightImage;
356
409
  highlightReferImage: HighlightReferImage;
357
410
  highlightColormap: HighlightColormap;
358
411
  highlightLine: HighlightLine;
359
412
  highlightSize: HighlightSize;
360
413
  highlightThickness: HighlightThickness;
361
- }
362
- declare function getDefaultHighlightStyle(): HighlightStyleDeclaration;
414
+ }>;
415
+ declare function getDefaultHighlightStyle(): Required<HighlightStyleDeclaration>;
363
416
 
364
417
  interface ListStyleDeclaration {
365
418
  type: ListStyleType;
@@ -368,18 +421,18 @@ interface ListStyleDeclaration {
368
421
  size: ListStyleSize;
369
422
  position: ListStylePosition;
370
423
  }
371
- interface ListStyleStyleDeclaration {
372
- listStyle?: Partial<ListStyleDeclaration>;
424
+ type ListStyleStyleDeclaration = Partial<{
425
+ listStyle: Partial<ListStyleDeclaration>;
373
426
  listStyleType: ListStyleType;
374
427
  listStyleImage: ListStyleImage;
375
428
  listStyleColormap: ListStyleColormap;
376
429
  listStyleSize: ListStyleSize;
377
430
  listStylePosition: ListStylePosition;
378
- }
379
- declare function getDefaultListStyleStyle(): ListStyleStyleDeclaration;
431
+ }>;
432
+ declare function getDefaultListStyleStyle(): Required<ListStyleStyleDeclaration>;
380
433
 
381
- interface TextInlineStyleDeclaration extends HighlightStyleDeclaration {
382
- color: ColorValue;
434
+ type TextInlineStyleDeclaration = HighlightStyleDeclaration & Partial<{
435
+ color: ColorDeclaration;
383
436
  verticalAlign: VerticalAlign;
384
437
  letterSpacing: number;
385
438
  wordSpacing: number;
@@ -391,43 +444,50 @@ interface TextInlineStyleDeclaration extends HighlightStyleDeclaration {
391
444
  textTransform: TextTransform;
392
445
  textOrientation: TextOrientation;
393
446
  textDecoration: TextDecoration;
394
- }
395
- declare function getDefaultTextInlineStyle(): TextInlineStyleDeclaration;
447
+ }>;
448
+ declare function getDefaultTextInlineStyle(): Required<TextInlineStyleDeclaration>;
396
449
 
397
- interface TextLineStyleDeclaration extends ListStyleStyleDeclaration {
450
+ type TextLineStyleDeclaration = ListStyleStyleDeclaration & Partial<{
398
451
  writingMode: WritingMode;
399
452
  textWrap: TextWrap;
400
453
  textAlign: TextAlign;
401
454
  textIndent: number;
402
455
  lineHeight: number;
403
- }
404
- declare function getDefaultTextLineStyle(): TextLineStyleDeclaration;
456
+ }>;
457
+ declare function getDefaultTextLineStyle(): Required<TextLineStyleDeclaration>;
405
458
 
406
- interface TextDrawStyleDeclaration {
459
+ type TextDrawStyleDeclaration = Partial<{
407
460
  textStrokeWidth: number;
408
- textStrokeColor: ColorValue;
409
- }
410
- interface TextStyleDeclaration extends TextLineStyleDeclaration, TextInlineStyleDeclaration, TextDrawStyleDeclaration {
411
- }
412
- declare function getDefaultTextStyle(): TextStyleDeclaration;
461
+ textStrokeColor: ColorDeclaration;
462
+ }>;
463
+ type TextStyleDeclaration = TextLineStyleDeclaration & TextInlineStyleDeclaration & TextDrawStyleDeclaration;
464
+ declare function getDefaultTextStyle(): Required<TextStyleDeclaration>;
413
465
 
414
466
  interface StyleDeclaration extends TextStyleDeclaration, ElementStyleDeclaration {
415
467
  }
416
- type StyleProperty = Partial<StyleDeclaration>;
468
+ type StylePropertyObject = Partial<StyleDeclaration> & {
469
+ color?: Color;
470
+ backgroundColor?: Color;
471
+ borderColor?: Color;
472
+ outlineColor?: Color;
473
+ shadowColor?: Color;
474
+ };
475
+ type StyleProperty = None | StylePropertyObject;
476
+ declare function normalizeStyle(style?: StyleProperty): Partial<StyleDeclaration> | undefined;
417
477
  declare function getDefaultStyle(): StyleDeclaration;
418
478
 
419
- interface FragmentContent extends Partial<StyleDeclaration> {
479
+ interface FragmentContent extends StylePropertyObject {
420
480
  content: string;
421
481
  }
422
- interface ParagraphContent extends Partial<StyleDeclaration> {
482
+ interface ParagraphContent extends StylePropertyObject {
423
483
  fragments: FragmentContent[];
424
484
  }
425
485
  type TextContentFlat = string | FragmentContent | ParagraphContent | (string | FragmentContent)[];
426
486
  type TextContent = string | FragmentContent | ParagraphContent | TextContentFlat[];
427
- type TextContentDeclaration = ParagraphContent[];
487
+ type TextContentDeclaration = (ParagraphContent & StyleDeclaration)[];
428
488
  interface TextDeclaration {
429
489
  content: TextContentDeclaration;
430
- effects?: Partial<StyleDeclaration>[];
490
+ effects?: StylePropertyObject[];
431
491
  measureDom?: any;
432
492
  fonts?: any;
433
493
  }
@@ -458,6 +518,7 @@ interface Element<T = MetaProperty> extends Node<T> {
458
518
  children?: Element[];
459
519
  }
460
520
  interface ElementDeclaration<T = MetaProperty> extends Element<T> {
521
+ style?: Partial<StyleDeclaration>;
461
522
  text?: TextDeclaration;
462
523
  background?: BackgroundDeclaration;
463
524
  geometry?: GeometryDeclaration;
@@ -482,4 +543,4 @@ declare function normalizeDocument(doc: Document): DocumentDeclaration;
482
543
 
483
544
  declare function clearUndef<T>(obj: T, deep?: boolean): T;
484
545
 
485
- export { type Align, type AnyColor, type AudioDeclaration, type AudioProperty, type BackgroundDeclaration, type BackgroundProperty, type BorderStyle, type BoxShadow, type BoxSizing, type CmykColor, type CmykaColor, type ColorValue, type Direction, type Display, type Document, type DocumentDeclaration, type EffectDeclaration, type EffectProperty, type Element, type ElementDeclaration, type ElementStyleDeclaration, type FillDeclaration, type FillProperty, type FillRule, type FlexDirection, type FlexWrap, type FontKerning, type FontStyle, type FontWeight, type ForegroundDeclaration, type ForegroundProperty, type FragmentContent, type GeometryDeclaration, type GeometryPathDeclaration, type GeometryPathStyle, type GeometryProperty, type GradientFillDeclaration, type HighlightColormap, type HighlightDeclaration, type HighlightImage, type HighlightLine, type HighlightReferImage, type HighlightSize, type HighlightStyleDeclaration, type HighlightThickness, type HslColor, type HslaColor, type HsvColor, type HsvaColor, type HwbColor, type HwbaColor, type InnerShadowDeclaration, type InnerShadowProperty, type Justify, type LabColor, type LabaColor, type LayoutStyleDeclaration, type LchColor, type LchaColor, type ListStyleColormap, type ListStyleDeclaration, type ListStyleImage, type ListStylePosition, type ListStyleSize, type ListStyleStyleDeclaration, type ListStyleType, type MetaProperty, type Node, type None, type ObjectColor, type OuterShadowDeclaration, type OuterShadowProperty, type OutlineDeclaration, type OutlineProperty, type Overflow, type ParagraphContent, type PointerEvents, type Position, type RgbColor, type RgbaColor, type SVGPathData, type ShadowDeclaration, type ShadowProperty, type ShadowStyleDeclaration, type SoftEdge, type SoftEdgeDeclaration, type SolidFillDeclaration, type StrokeLinecap, type StrokeLinejoin, type StyleDeclaration, type StyleProperty, type StyleUnit, type TextAlign, type TextContent, type TextContentDeclaration, type TextContentFlat, type TextDeclaration, type TextDecoration, type TextDrawStyleDeclaration, type TextInlineStyleDeclaration, type TextLineStyleDeclaration, type TextOrientation, type TextProperty, type TextStyleDeclaration, type TextTransform, type TextWrap, type TextureFillDeclaration, type TextureFillSourceRect, type TextureFillSourceURL, type TextureFillStretch, type TextureFillStretchRect, type TextureFillTile, type TransformStyleDeclaration, type VerticalAlign, type VideoDeclaration, type VideoProperty, type Visibility, type WritingMode, type XyzColor, type XyzaColor, clearUndef, getDefaultElementStyle, getDefaultHighlightStyle, getDefaultLayoutStyle, getDefaultListStyleStyle, getDefaultShadowStyle, getDefaultStyle, getDefaultTextInlineStyle, getDefaultTextLineStyle, getDefaultTextStyle, getDefaultTransformStyle, normalizeAudio, normalizeBackground, normalizeDocument, normalizeEffect, normalizeElement, normalizeFill, normalizeForeground, normalizeGeometry, normalizeInnerShadow, normalizeOuterShadow, normalizeOutline, normalizeShadow, normalizeText, normalizeTextContent, normalizeVideo };
546
+ export { type Align, type AudioDeclaration, type AudioProperty, type BackgroundDeclaration, type BackgroundProperty, type BackgroundPropertyObject, type BaseBackgroundDeclaration, type BaseForegroundDeclaration, type BaseOuterShadowDeclaration, type BorderStyle, type BoxShadow, type BoxSizing, type CmykColor, type CmykaColor, type Color, type ColorDeclaration, type Direction, type Display, type Document, type DocumentDeclaration, type EffectDeclaration, type EffectProperty, type EffectPropertyObject, type Element, type ElementDeclaration, type ElementStyleDeclaration, type FillDeclaration, type FillProperty, type FillPropertyObject, type FillRule, type FlexDirection, type FlexWrap, type FontKerning, type FontStyle, type FontWeight, type ForegroundDeclaration, type ForegroundProperty, type ForegroundPropertyObject, type FragmentContent, type GeometryDeclaration, type GeometryPathDeclaration, type GeometryPathStyle, type GeometryProperty, type GradientFillDeclaration, type HeadEnd, type HighlightColormap, type HighlightDeclaration, type HighlightImage, type HighlightLine, type HighlightReferImage, type HighlightSize, type HighlightStyleDeclaration, type HighlightThickness, type HslColor, type HslaColor, type HsvColor, type HsvaColor, type HwbColor, type HwbaColor, type InnerShadowDeclaration, type InnerShadowProperty, type InnerShadowPropertyObject, type Justify, type LabColor, type LabaColor, type LayoutStyleDeclaration, type LchColor, type LchaColor, type LineEndSize, type LineEndType, type ListStyleColormap, type ListStyleDeclaration, type ListStyleImage, type ListStylePosition, type ListStyleSize, type ListStyleStyleDeclaration, type ListStyleType, type MetaProperty, type Node, type None, type ObjectColor, type OuterShadowDeclaration, type OuterShadowProperty, type OuterShadowPropertyObject, type OutlineDeclaration, type OutlineFillDeclaration, type OutlineProperty, type OutlinePropertyObject, type OutlineStyle, type Overflow, type ParagraphContent, type PointerEvents, type Position, type RgbColor, type RgbString, type RgbaColor, type SVGPathData, type ShadowDeclaration, type ShadowProperty, type ShadowPropertyObject, type ShadowStyleDeclaration, type SoftEdgeDeclaration, type SoftEdgeProperty, type SolidFillDeclaration, type StrokeLinecap, type StrokeLinejoin, type StyleDeclaration, type StyleProperty, type StylePropertyObject, type StyleUnit, type TailEnd, type TextAlign, type TextContent, type TextContentDeclaration, type TextContentFlat, type TextDeclaration, type TextDecoration, type TextDrawStyleDeclaration, type TextInlineStyleDeclaration, type TextLineStyleDeclaration, type TextOrientation, type TextProperty, type TextStyleDeclaration, type TextTransform, type TextWrap, type TextureFillDeclaration, type TextureFillSourceRect, type TextureFillSourceURL, type TextureFillStretch, type TextureFillStretchRect, type TextureFillTile, type TransformStyleDeclaration, type Uint32Color, type VerticalAlign, type VideoDeclaration, type VideoProperty, type Visibility, type WritingMode, type XyzColor, type XyzaColor, clearUndef, getDefaultElementStyle, getDefaultHighlightStyle, getDefaultInnerShadow, getDefaultLayoutStyle, getDefaultListStyleStyle, getDefaultOuterShadow, getDefaultShadowStyle, getDefaultStyle, getDefaultTextInlineStyle, getDefaultTextLineStyle, getDefaultTextStyle, getDefaultTransformStyle, normalizeAudio, normalizeBackground, normalizeColor, normalizeDocument, normalizeEffect, normalizeElement, normalizeFill, normalizeForeground, normalizeGeometry, normalizeInnerShadow, normalizeOuterShadow, normalizeOutline, normalizeShadow, normalizeSoftEdge, normalizeStyle, normalizeText, normalizeTextContent, normalizeVideo, parseColor };