modern-idoc 0.4.5 → 0.5.1

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,49 +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
- interface BackgroundDeclaration extends FillDeclaration {
131
+ interface BaseBackgroundDeclaration {
122
132
  withGeometry?: boolean;
123
133
  }
124
- type BackgroundProperty = None | string | BackgroundDeclaration;
134
+ type BackgroundDeclaration = BaseBackgroundDeclaration & FillDeclaration;
135
+ type BackgroundPropertyObject = BaseBackgroundDeclaration & FillPropertyObject;
136
+ type BackgroundProperty = None | string | BackgroundPropertyObject;
125
137
  declare function normalizeBackground(background?: BackgroundProperty): BackgroundDeclaration | undefined;
126
138
 
127
139
  interface InnerShadowDeclaration {
128
- color: ColorValue;
129
- offsetX?: number;
130
- offsetY?: number;
131
- blurRadius?: number;
140
+ color: ColorDeclaration;
141
+ offsetX: number;
142
+ offsetY: number;
143
+ blurRadius: number;
132
144
  }
133
- type InnerShadowProperty = None | InnerShadowDeclaration;
145
+ type InnerShadowPropertyObject = Partial<InnerShadowDeclaration> & {
146
+ color: Color;
147
+ };
148
+ type InnerShadowProperty = None | InnerShadowPropertyObject;
149
+ declare function getDefaultInnerShadow(): InnerShadowDeclaration;
134
150
  declare function normalizeInnerShadow(shadow?: InnerShadowProperty): InnerShadowDeclaration | undefined;
135
151
 
136
- interface OuterShadowDeclaration extends InnerShadowDeclaration {
137
- scaleX?: number;
138
- scaleY?: number;
152
+ interface BaseOuterShadowDeclaration {
153
+ scaleX: number;
154
+ scaleY: number;
139
155
  }
140
- 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;
141
160
  declare function normalizeOuterShadow(shadow?: OuterShadowProperty): OuterShadowDeclaration | undefined;
142
161
 
143
162
  interface SoftEdgeDeclaration {
144
163
  radius: number;
145
164
  }
146
- interface SoftEdge {
147
- }
165
+ type SoftEdgeProperty = None | SoftEdgeDeclaration;
166
+ declare function normalizeSoftEdge(softEdge?: SoftEdgeProperty): SoftEdgeDeclaration | undefined;
148
167
 
149
168
  interface EffectDeclaration {
150
169
  innerShadow?: InnerShadowDeclaration;
151
170
  outerShadow?: OuterShadowDeclaration;
152
171
  softEdge?: SoftEdgeDeclaration;
153
172
  }
154
- type EffectProperty = None | EffectDeclaration;
173
+ interface EffectPropertyObject {
174
+ innerShadow?: InnerShadowProperty;
175
+ outerShadow?: OuterShadowProperty;
176
+ softEdge?: SoftEdgeProperty;
177
+ }
178
+ type EffectProperty = None | EffectPropertyObject;
155
179
  declare function normalizeEffect(effect?: EffectProperty): EffectDeclaration | undefined;
156
180
 
157
- interface ForegroundDeclaration extends FillDeclaration {
181
+ interface BaseForegroundDeclaration {
158
182
  withGeometry?: boolean;
159
183
  }
160
- type ForegroundProperty = None | string | ForegroundDeclaration;
184
+ type ForegroundDeclaration = BaseForegroundDeclaration & FillDeclaration;
185
+ type ForegroundPropertyObject = BaseForegroundDeclaration & FillPropertyObject;
186
+ type ForegroundProperty = None | string | ForegroundPropertyObject;
161
187
  declare function normalizeForeground(foreground?: ForegroundProperty): ForegroundDeclaration | undefined;
162
188
 
163
189
  type SVGPathData = string;
@@ -168,7 +194,7 @@ interface GeometryPathStyle {
168
194
  [key: string]: any;
169
195
  opacity: number;
170
196
  visibility: string;
171
- shadowColor: ColorValue;
197
+ shadowColor: ColorDeclaration;
172
198
  shadowOffsetX: number;
173
199
  shadowOffsetY: number;
174
200
  shadowBlur: number;
@@ -225,30 +251,37 @@ type OutlineFillDeclaration = Partial<SolidFillDeclaration> & Partial<GradientFi
225
251
  type OutlineStyle = 'dashed' | 'solid' | string;
226
252
  interface OutlineDeclaration extends OutlineFillDeclaration {
227
253
  width?: number;
254
+ color?: ColorDeclaration;
228
255
  style?: OutlineStyle;
229
256
  headEnd?: HeadEnd;
230
257
  tailEnd?: TailEnd;
231
258
  }
232
- type OutlineProperty = None | string | Partial<OutlineDeclaration>;
259
+ type OutlinePropertyObject = Partial<OutlineDeclaration> & {
260
+ color?: Color;
261
+ };
262
+ type OutlineProperty = None | string | OutlinePropertyObject;
233
263
  declare function normalizeOutline(outline?: OutlineProperty): OutlineDeclaration | undefined;
234
264
 
235
265
  type BoxShadow = None | string;
236
266
  interface ShadowDeclaration {
237
- color: ColorValue;
267
+ color: ColorDeclaration;
238
268
  offsetX?: number;
239
269
  offsetY?: number;
240
270
  blur?: number;
241
271
  }
242
- type ShadowProperty = None | BoxShadow | ShadowDeclaration;
272
+ type ShadowPropertyObject = Partial<ShadowDeclaration> & {
273
+ color?: Color;
274
+ };
275
+ type ShadowProperty = None | BoxShadow | ShadowPropertyObject;
276
+ declare function normalizeShadow(shadow?: ShadowProperty): ShadowDeclaration | undefined;
243
277
  interface ShadowStyleDeclaration {
244
278
  boxShadow: BoxShadow;
245
- shadowColor?: ColorValue;
279
+ shadowColor?: ColorDeclaration;
246
280
  shadowOffsetX?: number;
247
281
  shadowOffsetY?: number;
248
282
  shadowBlur?: number;
249
283
  }
250
284
  declare function getDefaultShadowStyle(): ShadowStyleDeclaration;
251
- declare function normalizeShadow(shadow?: ShadowProperty): ShadowDeclaration | undefined;
252
285
 
253
286
  type StyleUnit = `${number}%` | number;
254
287
  type Display = 'flex' | 'contents';
@@ -287,49 +320,49 @@ type HighlightThickness = StyleUnit;
287
320
 
288
321
  interface LayoutStyleDeclaration {
289
322
  overflow: Overflow;
290
- direction?: Direction;
291
- display?: Display;
292
- boxSizing?: BoxSizing;
293
- width?: StyleUnit | 'auto';
294
- height?: StyleUnit | 'auto';
295
- maxHeight?: StyleUnit;
296
- maxWidth?: StyleUnit;
297
- minHeight?: StyleUnit;
298
- minWidth?: StyleUnit;
299
- 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;
300
333
  left: StyleUnit;
301
334
  top: StyleUnit;
302
- right?: StyleUnit;
303
- bottom?: StyleUnit;
304
- borderTop?: string;
305
- borderLeft?: string;
306
- borderRight?: string;
307
- borderBottom?: string;
308
- borderWidth?: number;
309
- border?: string;
310
- flex?: number;
311
- flexBasis?: StyleUnit | 'auto';
312
- flexDirection?: FlexDirection;
313
- flexGrow?: number;
314
- flexShrink?: number;
315
- flexWrap?: FlexWrap;
316
- alignContent?: Align;
317
- alignItems?: Align;
318
- alignSelf?: Align;
319
- justifyContent?: Justify;
320
- gap?: StyleUnit;
321
- marginTop?: None | StyleUnit | 'auto';
322
- marginLeft?: None | StyleUnit | 'auto';
323
- marginRight?: None | StyleUnit | 'auto';
324
- marginBottom?: None | StyleUnit | 'auto';
325
- margin?: None | StyleUnit | 'auto';
326
- paddingTop?: StyleUnit;
327
- paddingLeft?: StyleUnit;
328
- paddingRight?: StyleUnit;
329
- paddingBottom?: StyleUnit;
330
- padding?: StyleUnit;
331
- }
332
- declare function getDefaultLayoutStyle(): LayoutStyleDeclaration;
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
+ }
365
+ declare function getDefaultLayoutStyle(): Partial<LayoutStyleDeclaration>;
333
366
 
334
367
  interface TransformStyleDeclaration {
335
368
  rotate: number;
@@ -344,22 +377,22 @@ interface TransformStyleDeclaration {
344
377
  }
345
378
  declare function getDefaultTransformStyle(): TransformStyleDeclaration;
346
379
 
347
- interface ElementStyleDeclaration extends LayoutStyleDeclaration, TransformStyleDeclaration, ShadowStyleDeclaration {
348
- backgroundImage?: None | string;
349
- backgroundColor?: None | ColorValue;
380
+ type ElementStyleDeclaration = Partial<LayoutStyleDeclaration> & TransformStyleDeclaration & ShadowStyleDeclaration & {
381
+ backgroundImage: None | string;
382
+ backgroundColor: None | ColorDeclaration;
350
383
  borderRadius: number;
351
- borderColor?: None | ColorValue;
384
+ borderColor: None | ColorDeclaration;
352
385
  borderStyle: BorderStyle;
353
386
  outlineWidth: number;
354
387
  outlineOffset: number;
355
- outlineColor: None | ColorValue;
388
+ outlineColor: None | ColorDeclaration;
356
389
  outlineStyle: string;
357
390
  visibility: Visibility;
358
391
  filter: string;
359
392
  opacity: number;
360
393
  pointerEvents: PointerEvents;
361
394
  maskImage: None | string;
362
- }
395
+ };
363
396
  declare function getDefaultElementStyle(): ElementStyleDeclaration;
364
397
 
365
398
  interface HighlightDeclaration {
@@ -371,7 +404,7 @@ interface HighlightDeclaration {
371
404
  thickness: HighlightThickness;
372
405
  }
373
406
  interface HighlightStyleDeclaration {
374
- highlight?: Partial<HighlightDeclaration>;
407
+ highlight: Partial<HighlightDeclaration>;
375
408
  highlightImage: HighlightImage;
376
409
  highlightReferImage: HighlightReferImage;
377
410
  highlightColormap: HighlightColormap;
@@ -379,7 +412,7 @@ interface HighlightStyleDeclaration {
379
412
  highlightSize: HighlightSize;
380
413
  highlightThickness: HighlightThickness;
381
414
  }
382
- declare function getDefaultHighlightStyle(): HighlightStyleDeclaration;
415
+ declare function getDefaultHighlightStyle(): Required<HighlightStyleDeclaration>;
383
416
 
384
417
  interface ListStyleDeclaration {
385
418
  type: ListStyleType;
@@ -389,7 +422,7 @@ interface ListStyleDeclaration {
389
422
  position: ListStylePosition;
390
423
  }
391
424
  interface ListStyleStyleDeclaration {
392
- listStyle?: Partial<ListStyleDeclaration>;
425
+ listStyle: Partial<ListStyleDeclaration>;
393
426
  listStyleType: ListStyleType;
394
427
  listStyleImage: ListStyleImage;
395
428
  listStyleColormap: ListStyleColormap;
@@ -398,8 +431,8 @@ interface ListStyleStyleDeclaration {
398
431
  }
399
432
  declare function getDefaultListStyleStyle(): ListStyleStyleDeclaration;
400
433
 
401
- interface TextInlineStyleDeclaration extends HighlightStyleDeclaration {
402
- color: ColorValue;
434
+ type TextInlineStyleDeclaration = HighlightStyleDeclaration & {
435
+ color: ColorDeclaration;
403
436
  verticalAlign: VerticalAlign;
404
437
  letterSpacing: number;
405
438
  wordSpacing: number;
@@ -411,43 +444,50 @@ interface TextInlineStyleDeclaration extends HighlightStyleDeclaration {
411
444
  textTransform: TextTransform;
412
445
  textOrientation: TextOrientation;
413
446
  textDecoration: TextDecoration;
414
- }
415
- declare function getDefaultTextInlineStyle(): TextInlineStyleDeclaration;
447
+ };
448
+ declare function getDefaultTextInlineStyle(): Required<TextInlineStyleDeclaration>;
416
449
 
417
- interface TextLineStyleDeclaration extends ListStyleStyleDeclaration {
450
+ type TextLineStyleDeclaration = ListStyleStyleDeclaration & {
418
451
  writingMode: WritingMode;
419
452
  textWrap: TextWrap;
420
453
  textAlign: TextAlign;
421
454
  textIndent: number;
422
455
  lineHeight: number;
423
- }
456
+ };
424
457
  declare function getDefaultTextLineStyle(): TextLineStyleDeclaration;
425
458
 
426
459
  interface TextDrawStyleDeclaration {
427
460
  textStrokeWidth: number;
428
- textStrokeColor: ColorValue;
461
+ textStrokeColor: ColorDeclaration;
429
462
  }
430
- interface TextStyleDeclaration extends TextLineStyleDeclaration, TextInlineStyleDeclaration, TextDrawStyleDeclaration {
431
- }
432
- declare function getDefaultTextStyle(): TextStyleDeclaration;
463
+ type TextStyleDeclaration = TextLineStyleDeclaration & TextInlineStyleDeclaration & TextDrawStyleDeclaration;
464
+ declare function getDefaultTextStyle(): Required<TextStyleDeclaration>;
433
465
 
434
466
  interface StyleDeclaration extends TextStyleDeclaration, ElementStyleDeclaration {
435
467
  }
436
- 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;
437
477
  declare function getDefaultStyle(): StyleDeclaration;
438
478
 
439
- interface FragmentContent extends Partial<StyleDeclaration> {
479
+ interface FragmentContent extends StylePropertyObject {
440
480
  content: string;
441
481
  }
442
- interface ParagraphContent extends Partial<StyleDeclaration> {
482
+ interface ParagraphContent extends StylePropertyObject {
443
483
  fragments: FragmentContent[];
444
484
  }
445
485
  type TextContentFlat = string | FragmentContent | ParagraphContent | (string | FragmentContent)[];
446
486
  type TextContent = string | FragmentContent | ParagraphContent | TextContentFlat[];
447
- type TextContentDeclaration = ParagraphContent[];
487
+ type TextContentDeclaration = (ParagraphContent & StylePropertyObject)[];
448
488
  interface TextDeclaration {
449
489
  content: TextContentDeclaration;
450
- effects?: Partial<StyleDeclaration>[];
490
+ effects?: StylePropertyObject[];
451
491
  measureDom?: any;
452
492
  fonts?: any;
453
493
  }
@@ -478,6 +518,7 @@ interface Element<T = MetaProperty> extends Node<T> {
478
518
  children?: Element[];
479
519
  }
480
520
  interface ElementDeclaration<T = MetaProperty> extends Element<T> {
521
+ style?: Partial<StyleDeclaration>;
481
522
  text?: TextDeclaration;
482
523
  background?: BackgroundDeclaration;
483
524
  geometry?: GeometryDeclaration;
@@ -502,4 +543,4 @@ declare function normalizeDocument(doc: Document): DocumentDeclaration;
502
543
 
503
544
  declare function clearUndef<T>(obj: T, deep?: boolean): T;
504
545
 
505
- 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 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 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 OutlineDeclaration, type OutlineFillDeclaration, type OutlineProperty, type OutlineStyle, 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 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 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 };