@tbela99/css-parser 1.4.6 → 1.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +1 -0
  3. package/dist/index-umd-web.js +6578 -6969
  4. package/dist/index.cjs +7808 -8197
  5. package/dist/index.d.ts +923 -51
  6. package/dist/lib/ast/clone.js +16 -23
  7. package/dist/lib/ast/expand.js +2 -2
  8. package/dist/lib/ast/features/if.js +88 -87
  9. package/dist/lib/ast/features/inlinecssvariables.js +2 -2
  10. package/dist/lib/ast/features/prefix.js +26 -22
  11. package/dist/lib/ast/features/transform.js +3 -3
  12. package/dist/lib/ast/find.js +17 -14
  13. package/dist/lib/ast/minify.js +97 -94
  14. package/dist/lib/ast/types.js +10 -2
  15. package/dist/lib/ast/walk.js +1 -1
  16. package/dist/lib/fs/resolve.js +47 -45
  17. package/dist/lib/parser/arena.js +206 -0
  18. package/dist/lib/parser/declaration/list.js +9 -10
  19. package/dist/lib/parser/declaration/map.js +13 -18
  20. package/dist/lib/parser/linemap.js +62 -0
  21. package/dist/lib/parser/parse.js +331 -504
  22. package/dist/lib/parser/source.js +72 -0
  23. package/dist/lib/parser/tokenize.js +39 -33
  24. package/dist/lib/parser/utils/at-rule-container.js +244 -247
  25. package/dist/lib/parser/utils/at-rule-generic.js +25 -25
  26. package/dist/lib/parser/utils/at-rule-import.js +194 -234
  27. package/dist/lib/parser/utils/at-rule-media.js +284 -283
  28. package/dist/lib/parser/utils/at-rule-support.js +279 -251
  29. package/dist/lib/parser/utils/at-rule-when-else.js +256 -259
  30. package/dist/lib/parser/utils/at-rule.js +19 -16
  31. package/dist/lib/parser/utils/cache.js +33 -5
  32. package/dist/lib/parser/utils/declaration.js +260 -298
  33. package/dist/lib/parser/utils/hash.js +15 -15
  34. package/dist/lib/parser/utils/selector.js +182 -222
  35. package/dist/lib/parser/utils/token.js +4 -7
  36. package/dist/lib/renderer/render.js +152 -121
  37. package/dist/lib/syntax/color/alpha.js +1 -4
  38. package/dist/lib/syntax/color/color-mix.js +8 -1
  39. package/dist/lib/syntax/color/color.js +17 -9
  40. package/dist/lib/syntax/color/hex.js +1 -1
  41. package/dist/lib/syntax/color/p3.js +9 -1
  42. package/dist/lib/syntax/color/utils/colorspace.js +3 -3
  43. package/dist/lib/syntax/color/utils/components.js +21 -22
  44. package/dist/lib/syntax/color/utils/distance.js +6 -1
  45. package/dist/lib/syntax/color/utils/matrix.js +12 -11
  46. package/dist/lib/syntax/constants.js +25 -3
  47. package/dist/lib/syntax/syntax.js +240 -311
  48. package/dist/lib/validation/config.js +16 -17
  49. package/dist/lib/validation/match.js +1118 -1131
  50. package/dist/lib/validation/parser/parse.js +130 -286
  51. package/dist/node.js +18 -14
  52. package/dist/web.js +12 -10
  53. package/package.json +4 -4
  54. package/dist/lib/validation/utils/whitespace.js +0 -17
  55. /package/dist/lib/syntax/color/{relativecolor.js → relative-color.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -2,7 +2,13 @@
2
2
  * Literal token
3
3
  */
4
4
  export declare interface LiteralToken extends BaseToken {
5
+ /**
6
+ * literal type
7
+ */
5
8
  typ: EnumToken.LiteralTokenType;
9
+ /**
10
+ * literal value
11
+ */
6
12
  val: string;
7
13
  }
8
14
 
@@ -10,7 +16,13 @@ export declare interface LiteralToken extends BaseToken {
10
16
  * Class selector token
11
17
  */
12
18
  export declare interface ClassSelectorToken extends BaseToken {
19
+ /**
20
+ * class selector type
21
+ */
13
22
  typ: EnumToken.ClassSelectorTokenType;
23
+ /**
24
+ * class name
25
+ */
14
26
  val: string;
15
27
  }
16
28
 
@@ -18,7 +30,13 @@ export declare interface ClassSelectorToken extends BaseToken {
18
30
  * Invalid class selector token
19
31
  */
20
32
  export declare interface InvalidClassSelectorToken extends BaseToken {
33
+ /**
34
+ * invalid class selector type
35
+ */
21
36
  typ: EnumToken.InvalidClassSelectorTokenType;
37
+ /**
38
+ * invalid class name
39
+ */
22
40
  val: string;
23
41
  }
24
42
 
@@ -26,6 +44,9 @@ export declare interface InvalidClassSelectorToken extends BaseToken {
26
44
  * Universal selector token
27
45
  */
28
46
  export declare interface UniversalSelectorToken extends BaseToken {
47
+ /**
48
+ * universal selector type
49
+ */
29
50
  typ: EnumToken.UniversalSelectorTokenType;
30
51
  }
31
52
 
@@ -33,7 +54,13 @@ export declare interface UniversalSelectorToken extends BaseToken {
33
54
  * Ident token
34
55
  */
35
56
  export declare interface IdentToken extends BaseToken {
57
+ /**
58
+ * ident type
59
+ */
36
60
  typ: EnumToken.IdenTokenType;
61
+ /**
62
+ * ident value
63
+ */
37
64
  val: string;
38
65
  }
39
66
 
@@ -41,7 +68,13 @@ export declare interface IdentToken extends BaseToken {
41
68
  * Ident list token
42
69
  */
43
70
  export declare interface IdentListToken extends BaseToken {
71
+ /**
72
+ * ident list type
73
+ */
44
74
  typ: EnumToken.IdenListTokenType;
75
+ /**
76
+ * ident list value
77
+ */
45
78
  val: string;
46
79
  }
47
80
 
@@ -49,7 +82,13 @@ export declare interface IdentListToken extends BaseToken {
49
82
  * Dashed ident token
50
83
  */
51
84
  export declare interface DashedIdentToken extends BaseToken {
85
+ /**
86
+ * ident type
87
+ */
52
88
  typ: EnumToken.DashedIdenTokenType;
89
+ /**
90
+ * ident value
91
+ */
53
92
  val: string;
54
93
  }
55
94
 
@@ -57,6 +96,9 @@ export declare interface DashedIdentToken extends BaseToken {
57
96
  * Comma token
58
97
  */
59
98
  export declare interface CommaToken extends BaseToken {
99
+ /**
100
+ * comma type
101
+ */
60
102
  typ: EnumToken.CommaTokenType;
61
103
  }
62
104
 
@@ -64,6 +106,9 @@ export declare interface CommaToken extends BaseToken {
64
106
  * Colon token
65
107
  */
66
108
  export declare interface ColonToken extends BaseToken {
109
+ /**
110
+ * colon type ':'
111
+ */
67
112
  typ: EnumToken.ColonTokenType;
68
113
  }
69
114
 
@@ -71,6 +116,9 @@ export declare interface ColonToken extends BaseToken {
71
116
  * Double colon token
72
117
  */
73
118
  export declare interface DoubleColonToken extends BaseToken {
119
+ /**
120
+ * double colon type '::'
121
+ */
74
122
  typ: EnumToken.DoubleColonTokenType;
75
123
  }
76
124
 
@@ -78,6 +126,9 @@ export declare interface DoubleColonToken extends BaseToken {
78
126
  * Semicolon token
79
127
  */
80
128
  export declare interface SemiColonToken extends BaseToken {
129
+ /**
130
+ * semicolon type
131
+ */
81
132
  typ: EnumToken.SemiColonTokenType;
82
133
  }
83
134
 
@@ -85,6 +136,9 @@ export declare interface SemiColonToken extends BaseToken {
85
136
  * Nesting selector token
86
137
  */
87
138
  export declare interface NestingSelectorToken extends BaseToken {
139
+ /**
140
+ * nesting selector type
141
+ */
88
142
  typ: EnumToken.NestingSelectorTokenType;
89
143
  }
90
144
 
@@ -92,8 +146,17 @@ export declare interface NestingSelectorToken extends BaseToken {
92
146
  * Number token
93
147
  */
94
148
  export declare interface NumberToken extends BaseToken {
149
+ /**
150
+ * number type
151
+ */
95
152
  typ: EnumToken.NumberTokenType;
153
+ /**
154
+ * number sign
155
+ */
96
156
  sign?: "-" | "+";
157
+ /**
158
+ * number value
159
+ */
97
160
  val: number | FractionToken;
98
161
  }
99
162
 
@@ -101,8 +164,17 @@ export declare interface NumberToken extends BaseToken {
101
164
  * At rule token
102
165
  */
103
166
  export declare interface AtRuleToken extends BaseToken {
167
+ /**
168
+ * at rule type
169
+ */
104
170
  typ: EnumToken.AtRuleTokenType;
171
+ /**
172
+ * at rule name
173
+ */
105
174
  nam: string;
175
+ /**
176
+ * at rule value
177
+ */
106
178
  val?: string;
107
179
  }
108
180
 
@@ -110,7 +182,13 @@ export declare interface AtRuleToken extends BaseToken {
110
182
  * Percentage token
111
183
  */
112
184
  export declare interface PercentageToken extends BaseToken {
185
+ /**
186
+ * percentage type
187
+ */
113
188
  typ: EnumToken.PercentageTokenType;
189
+ /**
190
+ * percentage value
191
+ */
114
192
  val: number | FractionToken;
115
193
  }
116
194
 
@@ -118,7 +196,13 @@ export declare interface PercentageToken extends BaseToken {
118
196
  * Flex token
119
197
  */
120
198
  export declare interface FlexToken extends BaseToken {
199
+ /**
200
+ * flex type
201
+ */
121
202
  typ: EnumToken.FlexTokenType;
203
+ /**
204
+ * flex value
205
+ */
122
206
  val: number | FractionToken;
123
207
  }
124
208
 
@@ -126,6 +210,9 @@ export declare interface FlexToken extends BaseToken {
126
210
  * Function token
127
211
  */
128
212
  export declare interface FunctionToken extends BaseToken {
213
+ /**
214
+ * function type
215
+ */
129
216
  typ:
130
217
  | EnumToken.FunctionTokenType
131
218
  | EnumToken.UrlFunctionTokenType
@@ -137,7 +224,13 @@ export declare interface FunctionToken extends BaseToken {
137
224
  | EnumToken.MathFunctionTokenType
138
225
  | EnumToken.PseudoClassFunctionTokenType
139
226
  | EnumToken.TransformFunctionTokenType;
227
+ /**
228
+ * function name
229
+ */
140
230
  val: string;
231
+ /**
232
+ * function children
233
+ */
141
234
  chi: Token$1[];
142
235
  }
143
236
 
@@ -145,8 +238,17 @@ export declare interface FunctionToken extends BaseToken {
145
238
  * Grid template function token
146
239
  */
147
240
  export declare interface GridTemplateFuncToken extends BaseToken {
241
+ /**
242
+ * function type
243
+ */
148
244
  typ: EnumToken.GridTemplateFuncTokenType;
245
+ /**
246
+ * function name
247
+ */
149
248
  val: string;
249
+ /**
250
+ * function children
251
+ */
150
252
  chi: Token$1[];
151
253
  }
152
254
 
@@ -154,8 +256,17 @@ export declare interface GridTemplateFuncToken extends BaseToken {
154
256
  * Function URL token
155
257
  */
156
258
  export declare interface FunctionURLToken extends BaseToken {
259
+ /**
260
+ * function type
261
+ */
157
262
  typ: EnumToken.UrlFunctionTokenType;
263
+ /**
264
+ * function name
265
+ */
158
266
  val: "url";
267
+ /**
268
+ * function children
269
+ */
159
270
  chi: Array<UrlToken | StringToken | CommentToken>;
160
271
  }
161
272
 
@@ -163,7 +274,13 @@ export declare interface FunctionURLToken extends BaseToken {
163
274
  * Function image token
164
275
  */
165
276
  export declare interface FunctionImageToken extends BaseToken {
277
+ /**
278
+ * function type
279
+ */
166
280
  typ: EnumToken.ImageFunctionTokenType;
281
+ /**
282
+ * function name
283
+ */
167
284
  val:
168
285
  | "linear-gradient"
169
286
  | "radial-gradient"
@@ -174,6 +291,9 @@ export declare interface FunctionImageToken extends BaseToken {
174
291
  | "image-set"
175
292
  | "element"
176
293
  | "cross-fade";
294
+ /**
295
+ * function children
296
+ */
177
297
  chi: Array<UrlToken | CommentToken>;
178
298
  }
179
299
 
@@ -181,8 +301,17 @@ export declare interface FunctionImageToken extends BaseToken {
181
301
  * Timing function token
182
302
  */
183
303
  export declare interface TimingFunctionToken extends BaseToken {
304
+ /**
305
+ * timing function type
306
+ */
184
307
  typ: EnumToken.TimingFunctionTokenType;
308
+ /**
309
+ * timing function value
310
+ */
185
311
  val: string;
312
+ /**
313
+ * timing function children
314
+ */
186
315
  chi: Token$1[];
187
316
  }
188
317
 
@@ -190,8 +319,17 @@ export declare interface TimingFunctionToken extends BaseToken {
190
319
  * Timeline function token
191
320
  */
192
321
  export declare interface TimelineFunctionToken extends BaseToken {
322
+ /**
323
+ * timeline function type
324
+ */
193
325
  typ: EnumToken.TimelineFunctionTokenType;
326
+ /**
327
+ * timeline function value
328
+ */
194
329
  val: string;
330
+ /**
331
+ * timeline function children
332
+ */
195
333
  chi: Token$1[];
196
334
  }
197
335
 
@@ -199,7 +337,13 @@ export declare interface TimelineFunctionToken extends BaseToken {
199
337
  * String token
200
338
  */
201
339
  export declare interface StringToken extends BaseToken {
340
+ /**
341
+ * string type
342
+ */
202
343
  typ: EnumToken.StringTokenType;
344
+ /**
345
+ * string value
346
+ */
203
347
  val: string;
204
348
  }
205
349
 
@@ -207,7 +351,13 @@ export declare interface StringToken extends BaseToken {
207
351
  * Bad string token
208
352
  */
209
353
  export declare interface BadStringToken extends BaseToken {
354
+ /**
355
+ * bad string type
356
+ */
210
357
  typ: EnumToken.BadStringTokenType;
358
+ /**
359
+ * bad string value
360
+ */
211
361
  val: string;
212
362
  }
213
363
 
@@ -215,7 +365,13 @@ export declare interface BadStringToken extends BaseToken {
215
365
  * Unclosed string token
216
366
  */
217
367
  export declare interface UnclosedStringToken extends BaseToken {
368
+ /**
369
+ * unclosed string type
370
+ */
218
371
  typ: EnumToken.UnclosedStringTokenType;
372
+ /**
373
+ * unclosed string value
374
+ */
219
375
  val: string;
220
376
  }
221
377
 
@@ -223,8 +379,17 @@ export declare interface UnclosedStringToken extends BaseToken {
223
379
  * Dimension token
224
380
  */
225
381
  export declare interface DimensionToken extends BaseToken {
382
+ /**
383
+ * dimension type
384
+ */
226
385
  typ: EnumToken.DimensionTokenType;
386
+ /**
387
+ * dimension value
388
+ */
227
389
  val: number | FractionToken;
390
+ /**
391
+ * dimension unit
392
+ */
228
393
  unit: string;
229
394
  }
230
395
 
@@ -232,8 +397,17 @@ export declare interface DimensionToken extends BaseToken {
232
397
  * Length token
233
398
  */
234
399
  export declare interface LengthToken extends BaseToken {
400
+ /**
401
+ * length type
402
+ */
235
403
  typ: EnumToken.LengthTokenType;
404
+ /**
405
+ * length value
406
+ */
236
407
  val: number | FractionToken;
408
+ /**
409
+ * length unit
410
+ */
237
411
  unit: string;
238
412
  }
239
413
 
@@ -241,8 +415,17 @@ export declare interface LengthToken extends BaseToken {
241
415
  * Angle token
242
416
  */
243
417
  export declare interface AngleToken extends BaseToken {
418
+ /**
419
+ * angle type
420
+ */
244
421
  typ: EnumToken.AngleTokenType;
422
+ /**
423
+ * angle value
424
+ */
245
425
  val: number | FractionToken;
426
+ /**
427
+ * angle unit
428
+ */
246
429
  unit: string;
247
430
  }
248
431
 
@@ -250,8 +433,17 @@ export declare interface AngleToken extends BaseToken {
250
433
  * Time token
251
434
  */
252
435
  export declare interface TimeToken extends BaseToken {
436
+ /**
437
+ * time type
438
+ */
253
439
  typ: EnumToken.TimeTokenType;
440
+ /**
441
+ * time value
442
+ */
254
443
  val: number | FractionToken;
444
+ /**
445
+ * time unit
446
+ */
255
447
  unit: "ms" | "s";
256
448
  }
257
449
 
@@ -259,8 +451,17 @@ export declare interface TimeToken extends BaseToken {
259
451
  * Frequency token
260
452
  */
261
453
  export declare interface FrequencyToken extends BaseToken {
454
+ /**
455
+ * frequency type
456
+ */
262
457
  typ: EnumToken.FrequencyTokenType;
458
+ /**
459
+ * frequency value
460
+ */
263
461
  val: number | FractionToken;
462
+ /**
463
+ * frequency unit
464
+ */
264
465
  unit: "Hz" | "Khz";
265
466
  }
266
467
 
@@ -268,8 +469,17 @@ export declare interface FrequencyToken extends BaseToken {
268
469
  * Resolution token
269
470
  */
270
471
  export declare interface ResolutionToken extends BaseToken {
472
+ /**
473
+ * resolution type
474
+ */
271
475
  typ: EnumToken.ResolutionTokenType;
476
+ /**
477
+ * resolution value
478
+ */
272
479
  val: number | FractionToken;
480
+ /**
481
+ * resolution unit
482
+ */
273
483
  unit: "dpi" | "dpcm" | "dppx" | "x";
274
484
  }
275
485
 
@@ -277,7 +487,13 @@ export declare interface ResolutionToken extends BaseToken {
277
487
  * Hash token
278
488
  */
279
489
  export declare interface HashToken extends BaseToken {
490
+ /**
491
+ * hash type
492
+ */
280
493
  typ: EnumToken.HashTokenType;
494
+ /**
495
+ * hash value
496
+ */
281
497
  val: string;
282
498
  }
283
499
 
@@ -285,6 +501,9 @@ export declare interface HashToken extends BaseToken {
285
501
  * Block start token
286
502
  */
287
503
  export declare interface BlockStartToken extends BaseToken {
504
+ /**
505
+ * block start type
506
+ */
288
507
  typ: EnumToken.BlockStartTokenType;
289
508
  }
290
509
 
@@ -292,6 +511,9 @@ export declare interface BlockStartToken extends BaseToken {
292
511
  * Block end token
293
512
  */
294
513
  export declare interface BlockEndToken extends BaseToken {
514
+ /**
515
+ * block end type
516
+ */
295
517
  typ: EnumToken.BlockEndTokenType;
296
518
  }
297
519
 
@@ -299,7 +521,13 @@ export declare interface BlockEndToken extends BaseToken {
299
521
  * Attribute start token
300
522
  */
301
523
  export declare interface AttrStartToken extends BaseToken {
524
+ /**
525
+ * attribute start type
526
+ */
302
527
  typ: EnumToken.AttrStartTokenType;
528
+ /**
529
+ * attribute start children
530
+ */
303
531
  chi?: Token$1[];
304
532
  }
305
533
 
@@ -307,6 +535,9 @@ export declare interface AttrStartToken extends BaseToken {
307
535
  * Attribute end token
308
536
  */
309
537
  export declare interface AttrEndToken extends BaseToken {
538
+ /**
539
+ * attribute end type
540
+ */
310
541
  typ: EnumToken.AttrEndTokenType;
311
542
  }
312
543
 
@@ -314,6 +545,9 @@ export declare interface AttrEndToken extends BaseToken {
314
545
  * Parenthesis start token
315
546
  */
316
547
  export declare interface ParensStartToken extends BaseToken {
548
+ /**
549
+ * parenthesis start type
550
+ */
317
551
  typ: EnumToken.StartParensTokenType;
318
552
  }
319
553
 
@@ -321,6 +555,9 @@ export declare interface ParensStartToken extends BaseToken {
321
555
  * Parenthesis end token
322
556
  */
323
557
  export declare interface ParensEndToken extends BaseToken {
558
+ /**
559
+ * parenthesis end type
560
+ */
324
561
  typ: EnumToken.EndParensTokenType;
325
562
  }
326
563
 
@@ -328,7 +565,13 @@ export declare interface ParensEndToken extends BaseToken {
328
565
  * Parenthesis token
329
566
  */
330
567
  export declare interface ParensToken extends BaseToken {
568
+ /**
569
+ * parenthesis type
570
+ */
331
571
  typ: EnumToken.ParensTokenType;
572
+ /**
573
+ * parenthesis children
574
+ */
332
575
  chi: Token$1[];
333
576
  }
334
577
 
@@ -336,7 +579,13 @@ export declare interface ParensToken extends BaseToken {
336
579
  * Whitespace token
337
580
  */
338
581
  export declare interface WhitespaceToken extends BaseToken {
582
+ /**
583
+ * whitespace type
584
+ */
339
585
  typ: EnumToken.WhitespaceTokenType;
586
+ /**
587
+ * whitespace value
588
+ */
340
589
  val?: string;
341
590
  }
342
591
 
@@ -344,7 +593,13 @@ export declare interface WhitespaceToken extends BaseToken {
344
593
  * Comment token
345
594
  */
346
595
  export declare interface CommentToken extends BaseToken {
596
+ /**
597
+ * comment type
598
+ */
347
599
  typ: EnumToken.CommentTokenType;
600
+ /**
601
+ * comment value
602
+ */
348
603
  val: string;
349
604
  }
350
605
 
@@ -352,7 +607,13 @@ export declare interface CommentToken extends BaseToken {
352
607
  * Bad comment token
353
608
  */
354
609
  export declare interface BadCommentToken extends BaseToken {
610
+ /**
611
+ * bad comment type
612
+ */
355
613
  typ: EnumToken.BadCommentTokenType;
614
+ /**
615
+ * bad comment value
616
+ */
356
617
  val: string;
357
618
  }
358
619
 
@@ -368,7 +629,13 @@ export declare interface CDOCommentToken extends BaseToken {
368
629
  * Bad CDO comment token
369
630
  */
370
631
  export declare interface BadCDOCommentToken extends BaseToken {
632
+ /**
633
+ * bad CDO comment type
634
+ */
371
635
  typ: EnumToken.BadCdoTokenType;
636
+ /**
637
+ * bad CDO comment value
638
+ */
372
639
  val: string;
373
640
  }
374
641
 
@@ -376,6 +643,9 @@ export declare interface BadCDOCommentToken extends BaseToken {
376
643
  * Include match token
377
644
  */
378
645
  export declare interface IncludeMatchToken extends BaseToken {
646
+ /**
647
+ * include match type
648
+ */
379
649
  typ: EnumToken.IncludeMatchTokenType;
380
650
  // val: '~=';
381
651
  }
@@ -384,6 +654,9 @@ export declare interface IncludeMatchToken extends BaseToken {
384
654
  * Dash match token
385
655
  */
386
656
  export declare interface DashMatchToken extends BaseToken {
657
+ /**
658
+ * dash match type
659
+ */
387
660
  typ: EnumToken.DashMatchTokenType;
388
661
  // val: '|=';
389
662
  }
@@ -392,6 +665,9 @@ export declare interface DashMatchToken extends BaseToken {
392
665
  * Equal match token
393
666
  */
394
667
  export declare interface EqualMatchToken extends BaseToken {
668
+ /**
669
+ * equal match type
670
+ */
395
671
  typ: EnumToken.EqualMatchTokenType;
396
672
  // val: '|=';
397
673
  }
@@ -400,6 +676,9 @@ export declare interface EqualMatchToken extends BaseToken {
400
676
  * Start match token
401
677
  */
402
678
  export declare interface StartMatchToken extends BaseToken {
679
+ /**
680
+ * start match type
681
+ */
403
682
  typ: EnumToken.StartMatchTokenType;
404
683
  // val: '^=';
405
684
  }
@@ -408,6 +687,9 @@ export declare interface StartMatchToken extends BaseToken {
408
687
  * End match token
409
688
  */
410
689
  export declare interface EndMatchToken extends BaseToken {
690
+ /**
691
+ * end match type
692
+ */
411
693
  typ: EnumToken.EndMatchTokenType;
412
694
  // val: '|=';
413
695
  }
@@ -416,6 +698,9 @@ export declare interface EndMatchToken extends BaseToken {
416
698
  * Contain match token
417
699
  */
418
700
  export declare interface ContainMatchToken extends BaseToken {
701
+ /**
702
+ * contain match type
703
+ */
419
704
  typ: EnumToken.ContainMatchTokenType;
420
705
  // val: '|=';
421
706
  }
@@ -424,6 +709,9 @@ export declare interface ContainMatchToken extends BaseToken {
424
709
  * Less than token
425
710
  */
426
711
  export declare interface LessThanToken extends BaseToken {
712
+ /**
713
+ * less than type
714
+ */
427
715
  typ: EnumToken.LtTokenType;
428
716
  }
429
717
 
@@ -431,6 +719,9 @@ export declare interface LessThanToken extends BaseToken {
431
719
  * Less than or equal token
432
720
  */
433
721
  export declare interface LessThanOrEqualToken extends BaseToken {
722
+ /**
723
+ * less than or equal type
724
+ */
434
725
  typ: EnumToken.LteTokenType;
435
726
  }
436
727
 
@@ -438,6 +729,9 @@ export declare interface LessThanOrEqualToken extends BaseToken {
438
729
  * Greater than token
439
730
  */
440
731
  export declare interface GreaterThanToken extends BaseToken {
732
+ /**
733
+ * greater than type
734
+ */
441
735
  typ: EnumToken.GtTokenType;
442
736
  }
443
737
 
@@ -445,6 +739,9 @@ export declare interface GreaterThanToken extends BaseToken {
445
739
  * Greater than or equal token
446
740
  */
447
741
  export declare interface GreaterThanOrEqualToken extends BaseToken {
742
+ /**
743
+ * greater than or equal type
744
+ */
448
745
  typ: EnumToken.GteTokenType;
449
746
  }
450
747
 
@@ -452,6 +749,9 @@ export declare interface GreaterThanOrEqualToken extends BaseToken {
452
749
  * Column combinator token
453
750
  */
454
751
  export declare interface ColumnCombinatorToken extends BaseToken {
752
+ /**
753
+ * column combinator type
754
+ */
455
755
  typ: EnumToken.ColumnCombinatorTokenType;
456
756
  }
457
757
 
@@ -459,7 +759,13 @@ export declare interface ColumnCombinatorToken extends BaseToken {
459
759
  * Pseudo class token
460
760
  */
461
761
  export declare interface PseudoClassToken extends BaseToken {
762
+ /**
763
+ * Pseudo class
764
+ */
462
765
  typ: EnumToken.PseudoClassTokenType;
766
+ /**
767
+ * Pseudo class
768
+ */
463
769
  val: string;
464
770
  }
465
771
 
@@ -467,7 +773,13 @@ export declare interface PseudoClassToken extends BaseToken {
467
773
  * Pseudo element token
468
774
  */
469
775
  export declare interface PseudoElementToken extends BaseToken {
776
+ /**
777
+ * Pseudo element
778
+ */
470
779
  typ: EnumToken.PseudoElementTokenType;
780
+ /**
781
+ * Pseudo element
782
+ */
471
783
  val: string;
472
784
  }
473
785
 
@@ -475,7 +787,13 @@ export declare interface PseudoElementToken extends BaseToken {
475
787
  * Pseudo page token
476
788
  */
477
789
  export declare interface PseudoPageToken extends BaseToken {
790
+ /**
791
+ * Pseudo page
792
+ */
478
793
  typ: EnumToken.PseudoPageTokenType;
794
+ /**
795
+ * Pseudo page
796
+ */
479
797
  val: string;
480
798
  }
481
799
 
@@ -483,8 +801,17 @@ export declare interface PseudoPageToken extends BaseToken {
483
801
  * Pseudo class function token
484
802
  */
485
803
  export declare interface PseudoClassFunctionToken extends BaseToken {
804
+ /**
805
+ * Pseudo class function
806
+ */
486
807
  typ: EnumToken.PseudoClassFuncTokenType;
808
+ /**
809
+ * Pseudo class function
810
+ */
487
811
  val: string;
812
+ /**
813
+ * Pseudo class function
814
+ */
488
815
  chi: Token$1[];
489
816
  }
490
817
 
@@ -492,6 +819,9 @@ export declare interface PseudoClassFunctionToken extends BaseToken {
492
819
  * Delim token
493
820
  */
494
821
  export declare interface DelimToken extends BaseToken {
822
+ /**
823
+ * Delimiter token type
824
+ */
495
825
  typ: EnumToken.DelimTokenType;
496
826
  }
497
827
 
@@ -499,7 +829,13 @@ export declare interface DelimToken extends BaseToken {
499
829
  * Bad URL token
500
830
  */
501
831
  export declare interface BadUrlToken extends BaseToken {
832
+ /**
833
+ * Bad URL
834
+ */
502
835
  typ: EnumToken.BadUrlTokenType;
836
+ /**
837
+ * Bad URL
838
+ */
503
839
  val: string;
504
840
  }
505
841
 
@@ -507,7 +843,13 @@ export declare interface BadUrlToken extends BaseToken {
507
843
  * URL token
508
844
  */
509
845
  export declare interface UrlToken extends BaseToken {
846
+ /**
847
+ * URL
848
+ */
510
849
  typ: EnumToken.UrlTokenTokenType;
850
+ /**
851
+ * URL token
852
+ */
511
853
  val: string;
512
854
  }
513
855
 
@@ -515,6 +857,9 @@ export declare interface UrlToken extends BaseToken {
515
857
  * EOF token
516
858
  */
517
859
  export declare interface EOFToken extends BaseToken {
860
+ /**
861
+ * End of file
862
+ */
518
863
  typ: EnumToken.EOFTokenType;
519
864
  }
520
865
 
@@ -522,6 +867,9 @@ export declare interface EOFToken extends BaseToken {
522
867
  * Important token
523
868
  */
524
869
  export declare interface ImportantToken extends BaseToken {
870
+ /**
871
+ * Important
872
+ */
525
873
  typ: EnumToken.ImportantTokenType;
526
874
  }
527
875
 
@@ -529,11 +877,25 @@ export declare interface ImportantToken extends BaseToken {
529
877
  * Color token
530
878
  */
531
879
  export declare interface ColorToken extends BaseToken {
880
+ /**
881
+ * Color type
882
+ */
532
883
  typ: EnumToken.ColorTokenType;
884
+ /**
885
+ * Color value or color function name
886
+ */
533
887
  val: string;
888
+ /**
889
+ * Color kind
890
+ */
534
891
  kin: ColorType$1;
892
+ /**
893
+ * Color components
894
+ */
535
895
  chi?: Token$1[];
536
- /* calculated */
896
+ /**
897
+ * Whether the color is relative, color-mix or color
898
+ * */
537
899
  cal?: "rel" | "mix" | "col";
538
900
  }
539
901
 
@@ -541,7 +903,13 @@ export declare interface ColorToken extends BaseToken {
541
903
  * Attribute token
542
904
  */
543
905
  export declare interface AttrToken extends BaseToken {
906
+ /**
907
+ * Attribute type
908
+ */
544
909
  typ: EnumToken.AttrTokenType;
910
+ /**
911
+ * Children
912
+ */
545
913
  chi: Token$1[];
546
914
  }
547
915
 
@@ -549,7 +917,13 @@ export declare interface AttrToken extends BaseToken {
549
917
  * Invalid attribute token
550
918
  */
551
919
  export declare interface InvalidAttrToken extends BaseToken {
920
+ /**
921
+ * Attribute type
922
+ */
552
923
  typ: EnumToken.InvalidAttrTokenType;
924
+ /**
925
+ * Children
926
+ */
553
927
  chi: Token$1[];
554
928
  }
555
929
 
@@ -564,7 +938,13 @@ export declare interface ChildCombinatorToken extends BaseToken {
564
938
  * Media feature token
565
939
  */
566
940
  export declare interface MediaFeatureToken extends BaseToken {
941
+ /**
942
+ * Media feature type
943
+ */
567
944
  typ: EnumToken.MediaFeatureTokenType;
945
+ /**
946
+ * Media feature
947
+ */
568
948
  val: string;
569
949
  }
570
950
 
@@ -572,7 +952,13 @@ export declare interface MediaFeatureToken extends BaseToken {
572
952
  * Media feature not token
573
953
  */
574
954
  export declare interface NotToken extends BaseToken {
955
+ /**
956
+ * Media feature not type
957
+ */
575
958
  typ: EnumToken.NotTokenType;
959
+ /**
960
+ * Media feature
961
+ */
576
962
  val: Token$1;
577
963
  }
578
964
 
@@ -580,7 +966,13 @@ export declare interface NotToken extends BaseToken {
580
966
  * Media feature only token
581
967
  */
582
968
  export declare interface MediaFeatureOnlyToken extends BaseToken {
969
+ /**
970
+ * Media feature only type
971
+ */
583
972
  typ: EnumToken.OnlyTokenType;
973
+ /**
974
+ * Media feature
975
+ */
584
976
  val: Token$1;
585
977
  }
586
978
 
@@ -588,6 +980,9 @@ export declare interface MediaFeatureOnlyToken extends BaseToken {
588
980
  * Media feature and token
589
981
  */
590
982
  export declare interface AndToken extends BaseToken {
983
+ /**
984
+ * Media feature and type
985
+ */
591
986
  typ: EnumToken.AndTokenType;
592
987
  }
593
988
 
@@ -595,6 +990,9 @@ export declare interface AndToken extends BaseToken {
595
990
  * Media feature or token
596
991
  */
597
992
  export declare interface OrToken extends BaseToken {
993
+ /**
994
+ * Media feature or type
995
+ */
598
996
  typ: EnumToken.OrTokenType;
599
997
  }
600
998
 
@@ -602,40 +1000,100 @@ export declare interface OrToken extends BaseToken {
602
1000
  * Media query condition token
603
1001
  */
604
1002
  export declare interface MediaQueryUnaryFeatureToken extends BaseToken {
1003
+ /**
1004
+ * Media query condition type
1005
+ */
605
1006
  typ: EnumToken.MediaQueryUnaryFeatureTokenType;
1007
+ /**
1008
+ * Media feature
1009
+ */
606
1010
  l: Token$1;
1011
+ /**
1012
+ * Media feature
1013
+ */
607
1014
  r: Token$1[];
608
1015
  }
609
1016
 
610
1017
  export declare interface SupportsQueryUnaryConditionToken extends BaseToken {
1018
+ /**
1019
+ * Supports query condition type
1020
+ */
611
1021
  typ: EnumToken.SupportsQueryUnaryConditionTokenType;
1022
+ /**
1023
+ * Media feature
1024
+ */
612
1025
  l: Token$1;
1026
+ /**
1027
+ * Media feature
1028
+ */
613
1029
  r: Token$1[];
614
1030
  }
615
1031
 
616
1032
  export declare interface SupportsQueryConditionToken extends BaseToken {
1033
+ /**
1034
+ * Supports query condition type
1035
+ */
617
1036
  typ: EnumToken.SupportsQueryConditionTokenType;
1037
+ /**
1038
+ * Media feature
1039
+ */
618
1040
  op: AndToken | OrToken;
1041
+ /**
1042
+ * Media feature
1043
+ */
619
1044
  l: Token$1[];
1045
+ /**
1046
+ * Media feature
1047
+ */
620
1048
  r: Token$1[];
621
1049
  }
622
1050
 
623
1051
  export declare interface WhenElseQueryConditionToken extends BaseToken {
1052
+ /**
1053
+ * When else query condition type
1054
+ */
624
1055
  typ: EnumToken.WhenElseQueryConditionTokenType;
1056
+ /**
1057
+ * Media feature
1058
+ */
625
1059
  op: AndToken | OrToken;
1060
+ /**
1061
+ * Media feature
1062
+ */
626
1063
  l: Token$1[];
1064
+ /**
1065
+ * Media feature
1066
+ */
627
1067
  r: Token$1[];
628
1068
  }
629
1069
 
630
1070
  export declare interface WhenElseUnaryConditionToken extends BaseToken {
1071
+ /**
1072
+ * When else query condition type
1073
+ */
631
1074
  typ: EnumToken.WhenElseUnaryConditionTokenType;
1075
+ /**
1076
+ * Media feature
1077
+ */
632
1078
  l: Token$1;
1079
+ /**
1080
+ * Media feature
1081
+ */
633
1082
  r: Token$1[];
634
1083
  }
635
1084
 
636
1085
  export declare interface MediaQueryConditionToken extends BaseToken {
1086
+ /**
1087
+ * Media query condition type
1088
+ */
637
1089
  typ: EnumToken.MediaQueryConditionTokenType;
1090
+ /**
1091
+ * Media feature
1092
+ */
638
1093
  l: Token$1[];
1094
+ /**
1095
+ * Media feature
1096
+ */
639
1097
  op:
640
1098
  | ColonToken
641
1099
  | DelimToken
@@ -645,18 +1103,39 @@ export declare interface MediaQueryConditionToken extends BaseToken {
645
1103
  | LessThanOrEqualToken
646
1104
  | AndToken
647
1105
  | OrToken;
1106
+ /**
1107
+ * Media feature
1108
+ */
648
1109
  r: Token$1[];
649
1110
  }
650
1111
 
651
1112
  export declare interface IfConditionToken extends BaseToken {
1113
+ /**
1114
+ * If condition type
1115
+ */
652
1116
  typ: EnumToken.IfConditionTokenType;
1117
+ /**
1118
+ * condition left handle
1119
+ */
653
1120
  l: Token$1[];
1121
+ /**
1122
+ * condition value
1123
+ */
654
1124
  r: Token$1[];
655
1125
  }
656
1126
 
657
1127
  export declare interface IfElseConditionToken extends BaseToken {
1128
+ /**
1129
+ * If else condition type
1130
+ */
658
1131
  typ: EnumToken.IfElseConditionTokenType;
1132
+ /**
1133
+ * condition left handle
1134
+ */
659
1135
  l: IfConditionToken;
1136
+ /**
1137
+ * condition value
1138
+ */
660
1139
  r: IfConditionToken;
661
1140
  }
662
1141
 
@@ -727,15 +1206,41 @@ export declare interface DivToken extends BaseToken {
727
1206
  * Mul token
728
1207
  */
729
1208
  export declare interface MulToken extends BaseToken {
1209
+ /**
1210
+ * Type
1211
+ */
730
1212
  typ: EnumToken.Mul;
731
1213
  }
732
1214
 
1215
+ /**
1216
+ * Wrapped values token like {Arial, Helvetica, sans-serif}
1217
+ */
1218
+ export declare interface WrappedValuesToken extends BaseToken {
1219
+ /**
1220
+ * Type
1221
+ */
1222
+ typ: EnumToken.WrappedValuesTokenType;
1223
+ /**
1224
+ * Children
1225
+ */
1226
+ chi: Token$1[];
1227
+ }
1228
+
733
1229
  /**
734
1230
  * Unary expression token
735
1231
  */
736
1232
  export declare interface UnaryExpression extends BaseToken {
1233
+ /**
1234
+ * Type
1235
+ */
737
1236
  typ: EnumToken.UnaryExpressionTokenType;
1237
+ /**
1238
+ * Sign
1239
+ */
738
1240
  sign: EnumToken.Add | EnumToken.Sub;
1241
+ /**
1242
+ * Value
1243
+ */
739
1244
  val: UnaryExpressionNode;
740
1245
  }
741
1246
 
@@ -881,6 +1386,7 @@ export declare type Token$1 =
881
1386
  | IdentToken
882
1387
  | IdentListToken
883
1388
  | DashedIdentToken
1389
+ | WrappedValuesToken
884
1390
  | CommaToken
885
1391
  | ColonToken
886
1392
  | DoubleColonToken
@@ -1541,8 +2047,8 @@ declare enum EnumToken {
1541
2047
  RawNodeTokenType = 117,
1542
2048
  /**
1543
2049
  * media query boolean token type
1544
- * @media not ()
1545
- * @media only ()
2050
+ * at-rule media not ()
2051
+ * at-rule media only ()
1546
2052
  */
1547
2053
  MediaQueryUnaryFeatureTokenType = 118,
1548
2054
  /**
@@ -1629,6 +2135,10 @@ declare enum EnumToken {
1629
2135
  * if-Else condition token
1630
2136
  */
1631
2137
  IfElseConditionTokenType = 139,
2138
+ /**
2139
+ * wrapped values token type like {Arial, sans-serif}
2140
+ */
2141
+ WrappedValuesTokenType = 140,
1632
2142
  /**
1633
2143
  * alias for time token type
1634
2144
  */
@@ -1846,6 +2356,10 @@ declare enum ColorType$1 {
1846
2356
  * alpha() color function
1847
2357
  */
1848
2358
  ALPHA = 25,
2359
+ /**
2360
+ * color using display-p3-linear
2361
+ */
2362
+ DISPLAY_P3_LINEAR = 26,
1849
2363
  /**
1850
2364
  * alias for rgba
1851
2365
  */
@@ -1930,6 +2444,15 @@ declare enum ModuleScopeEnumOptions {
1930
2444
  Shortest = 512
1931
2445
  }
1932
2446
 
2447
+ declare const LOC: unique symbol;
2448
+ declare const RAW: unique symbol;
2449
+ declare const STATE: unique symbol;
2450
+ declare const ROOT: unique symbol;
2451
+ declare const ERRORS: unique symbol;
2452
+ declare const TOKENS: unique symbol;
2453
+ declare const PARENT: unique symbol;
2454
+ declare const OPTIMIZED: unique symbol;
2455
+
1933
2456
  /**
1934
2457
  * Position
1935
2458
  */
@@ -1953,32 +2476,71 @@ export declare interface Position$1 {
1953
2476
  */
1954
2477
  export declare interface Location {
1955
2478
  /**
1956
- * start position
2479
+ * start position
2480
+ */
2481
+ sta: Position$1;
2482
+ /**
2483
+ * end position
2484
+ */
2485
+ end: Position$1;
2486
+ /**
2487
+ * source file
2488
+ */
2489
+ src: string;
2490
+ }
2491
+
2492
+ /**
2493
+ * Common token interface
2494
+ */
2495
+ export declare interface BaseToken {
2496
+ /**
2497
+ * token type
2498
+ */
2499
+ typ: EnumToken;
2500
+ /**
2501
+ * location info
2502
+ * @private
2503
+ */
2504
+ [LOC]?: Location;
2505
+ /**
2506
+ * parent node
2507
+ * @private
2508
+ */
2509
+ [PARENT]?: AstNode$1;
2510
+ /**
2511
+ * root node
1957
2512
  */
1958
- sta: Position$1;
2513
+ [ROOT]?: AstStyleSheet;
1959
2514
  /**
1960
- * end position
2515
+ * prelude or selector tokens
2516
+ * @private
1961
2517
  */
1962
- end: Position$1;
2518
+ [TOKENS]?: Token$1[] | null;
1963
2519
  /**
1964
- * source file
2520
+ * node state
2521
+ * @private
1965
2522
  */
1966
- src: string;
1967
- }
1968
-
1969
- export declare interface BaseToken {
2523
+ [STATE]?: EnumAstNodeStatus;
1970
2524
  /**
1971
- * token type
2525
+ * node syntax errors
2526
+ * @private
1972
2527
  */
1973
- typ: EnumToken;
2528
+ [ERRORS]?: ErrorDescription[];
1974
2529
  /**
1975
- * location info
2530
+ * property name
2531
+ * @private
1976
2532
  */
1977
- loc?: Location;
2533
+ [PROPERTYNAME]?: string;
1978
2534
  /**
1979
- * prelude or selector tokens
2535
+ * raw selector
2536
+ * @private
2537
+ */
2538
+ [RAW]?: string[][] | null;
2539
+ /**
2540
+ * optimized selector
2541
+ * @private
1980
2542
  */
1981
- tokens?: Token$1[] | null;
2543
+ [OPTIMIZED]?: OptimizedSelector | null;
1982
2544
  /**
1983
2545
  * parent node
1984
2546
  */
@@ -1989,8 +2551,17 @@ export declare interface BaseToken {
1989
2551
  validSyntax?: boolean;
1990
2552
  }
1991
2553
 
2554
+ /**
2555
+ * Ast node state
2556
+ */
1992
2557
  export declare interface AstNodeStatus {
2558
+ /**
2559
+ * Node state
2560
+ */
1993
2561
  state?: EnumAstNodeStatus;
2562
+ /**
2563
+ * Syntax errors
2564
+ */
1994
2565
  errors?: ErrorDescription[];
1995
2566
  }
1996
2567
 
@@ -1998,8 +2569,13 @@ export declare interface AstNodeStatus {
1998
2569
  * comment node
1999
2570
  */
2000
2571
  export declare interface AstComment extends BaseToken {
2572
+ /**
2573
+ * token type
2574
+ */
2001
2575
  typ: EnumToken.CommentNodeType | EnumToken.CDOCOMMNodeType;
2002
- tokens?: null;
2576
+ /**
2577
+ * comment as string
2578
+ */
2003
2579
  val: string;
2004
2580
  }
2005
2581
 
@@ -2007,9 +2583,17 @@ export declare interface AstComment extends BaseToken {
2007
2583
  * declaration node
2008
2584
  */
2009
2585
  export declare interface AstDeclaration extends BaseToken, AstNodeStatus {
2586
+ /**
2587
+ * token name
2588
+ */
2010
2589
  nam: string;
2011
- tokens?: null;
2590
+ /**
2591
+ * token value
2592
+ */
2012
2593
  val: Token$1[];
2594
+ /**
2595
+ * token type
2596
+ */
2013
2597
  typ: EnumToken.DeclarationNodeType;
2014
2598
  }
2015
2599
 
@@ -2017,12 +2601,27 @@ export declare interface AstDeclaration extends BaseToken, AstNodeStatus {
2017
2601
  * rule node
2018
2602
  */
2019
2603
  export declare interface AstRule extends BaseToken, AstNodeStatus {
2604
+ /**
2605
+ * token type
2606
+ */
2020
2607
  typ: EnumToken.RuleNodeType;
2608
+ /**
2609
+ * selector as string
2610
+ */
2021
2611
  sel: string;
2612
+ /**
2613
+ * child nodes
2614
+ */
2022
2615
  chi: Array<
2023
2616
  AstDeclaration | AstComment | AstRule | AstAtRule | AstInvalidRule | AstInvalidDeclaration | AstInvalidAtRule
2024
2617
  >;
2618
+ /**
2619
+ * optimized` selector
2620
+ */
2025
2621
  optimized?: OptimizedSelector | null;
2622
+ /**
2623
+ * raw selector
2624
+ */
2026
2625
  raw?: RawSelectorTokens | null;
2027
2626
  }
2028
2627
 
@@ -2031,8 +2630,17 @@ export declare interface AstRule extends BaseToken, AstNodeStatus {
2031
2630
  * @deprecated
2032
2631
  */
2033
2632
  export declare interface AstInvalidRule extends BaseToken, AstNodeStatus {
2633
+ /**
2634
+ * token type
2635
+ */
2034
2636
  typ: EnumToken.InvalidRuleNodeType;
2637
+ /**
2638
+ * selector
2639
+ */
2035
2640
  sel: string;
2641
+ /**
2642
+ * child nodes
2643
+ */
2036
2644
  chi: Array<AstNode$1>;
2037
2645
  }
2038
2646
 
@@ -2041,8 +2649,17 @@ export declare interface AstInvalidRule extends BaseToken, AstNodeStatus {
2041
2649
  * @deprecated
2042
2650
  */
2043
2651
  export declare interface AstInvalidDeclaration extends BaseToken, AstNodeStatus {
2652
+ /**
2653
+ * token type
2654
+ */
2044
2655
  typ: EnumToken.InvalidDeclarationNodeType;
2656
+ /**
2657
+ * tokens
2658
+ */
2045
2659
  tokens?: null;
2660
+ /**
2661
+ * tokens
2662
+ */
2046
2663
  val: Array<Token$1>;
2047
2664
  }
2048
2665
 
@@ -2051,9 +2668,21 @@ export declare interface AstInvalidDeclaration extends BaseToken, AstNodeStatus
2051
2668
  * @deprecated
2052
2669
  */
2053
2670
  export declare interface AstInvalidAtRule extends BaseToken, AstNodeStatus {
2671
+ /**
2672
+ * token type
2673
+ */
2054
2674
  typ: EnumToken.InvalidAtRuleNodeType;
2675
+ /**
2676
+ * name
2677
+ */
2055
2678
  nam: string;
2679
+ /**
2680
+ * value
2681
+ */
2056
2682
  val: string;
2683
+ /**
2684
+ * child nodes
2685
+ */
2057
2686
  chi?: Array<AstNode$1>;
2058
2687
  }
2059
2688
 
@@ -2061,11 +2690,29 @@ export declare interface AstInvalidAtRule extends BaseToken, AstNodeStatus {
2061
2690
  * keyframe rule node
2062
2691
  */
2063
2692
  export declare interface AstKeyFrameRule extends BaseToken, AstNodeStatus {
2693
+ /**
2694
+ * token type
2695
+ */
2064
2696
  typ: EnumToken.KeyFramesRuleNodeType;
2697
+ /**
2698
+ * selector
2699
+ */
2065
2700
  sel: string;
2701
+ /**
2702
+ * child nodes
2703
+ */
2066
2704
  chi: Array<AstDeclaration | AstComment | AstInvalidDeclaration>;
2705
+ /**
2706
+ * optimized selector
2707
+ */
2067
2708
  optimized?: OptimizedSelector;
2709
+ /**
2710
+ * raw selector
2711
+ */
2068
2712
  raw?: RawSelectorTokens;
2713
+ /**
2714
+ * tokens
2715
+ */
2069
2716
  tokens?: Token$1[];
2070
2717
  }
2071
2718
 
@@ -2080,9 +2727,21 @@ export declare type RawSelectorTokens = string[][];
2080
2727
  * @private
2081
2728
  */
2082
2729
  export declare interface OptimizedSelector {
2730
+ /**
2731
+ * matched selector
2732
+ */
2083
2733
  match: boolean;
2734
+ /**
2735
+ * optimized selector
2736
+ */
2084
2737
  optimized: string[];
2738
+ /**
2739
+ * selector tokens as string
2740
+ */
2085
2741
  selector: string[][];
2742
+ /**
2743
+ * reducible selector
2744
+ */
2086
2745
  reducible: boolean;
2087
2746
  }
2088
2747
 
@@ -2092,9 +2751,21 @@ export declare interface OptimizedSelector {
2092
2751
  * @private
2093
2752
  */
2094
2753
  export declare interface OptimizedSelectorToken {
2754
+ /**
2755
+ * match
2756
+ */
2095
2757
  match: boolean;
2758
+ /**
2759
+ * optimized
2760
+ */
2096
2761
  optimized: Token$1[];
2762
+ /**
2763
+ * selector
2764
+ */
2097
2765
  selector: Token$1[][];
2766
+ /**
2767
+ * reducible
2768
+ */
2098
2769
  reducible: boolean;
2099
2770
  }
2100
2771
 
@@ -2102,9 +2773,21 @@ export declare interface OptimizedSelectorToken {
2102
2773
  * at rule node
2103
2774
  */
2104
2775
  export declare interface AstAtRule extends BaseToken, AstNodeStatus {
2776
+ /**
2777
+ * token type
2778
+ */
2105
2779
  typ: EnumToken.AtRuleNodeType;
2780
+ /**
2781
+ * name
2782
+ */
2106
2783
  nam: string;
2784
+ /**
2785
+ * value
2786
+ */
2107
2787
  val: string;
2788
+ /**
2789
+ * child nodes
2790
+ */
2108
2791
  chi?: Array<AstNode$1>;
2109
2792
  }
2110
2793
 
@@ -2112,10 +2795,25 @@ export declare interface AstAtRule extends BaseToken, AstNodeStatus {
2112
2795
  * keyframe rule node
2113
2796
  */
2114
2797
  export declare interface AstKeyframesRule extends BaseToken, AstNodeStatus {
2798
+ /**
2799
+ * token type
2800
+ */
2115
2801
  typ: EnumToken.KeyFramesRuleNodeType;
2802
+ /**
2803
+ * selector
2804
+ */
2116
2805
  sel: string;
2806
+ /**
2807
+ * child nodes
2808
+ */
2117
2809
  chi: Array<AstDeclaration | AstInvalidDeclaration | AstComment | AstRuleList>;
2810
+ /**
2811
+ * optimized selector
2812
+ */
2118
2813
  optimized?: OptimizedSelector;
2814
+ /**
2815
+ * raw selector
2816
+ */
2119
2817
  raw?: RawSelectorTokens;
2120
2818
  }
2121
2819
 
@@ -2123,9 +2821,21 @@ export declare interface AstKeyframesRule extends BaseToken, AstNodeStatus {
2123
2821
  * keyframe at rule node
2124
2822
  */
2125
2823
  export declare interface AstKeyframesAtRule extends BaseToken, AstNodeStatus {
2824
+ /**
2825
+ * token type
2826
+ */
2126
2827
  typ: EnumToken.KeyframesAtRuleNodeType;
2828
+ /**
2829
+ * name
2830
+ */
2127
2831
  nam: string;
2832
+ /**
2833
+ * value
2834
+ */
2128
2835
  val: string;
2836
+ /**
2837
+ * child nodes
2838
+ */
2129
2839
  chi: Array<AstKeyframesRule | AstComment>;
2130
2840
  }
2131
2841
 
@@ -2144,9 +2854,14 @@ export declare type AstRuleList =
2144
2854
  * stylesheet node
2145
2855
  */
2146
2856
  export declare interface AstStyleSheet extends BaseToken {
2857
+ /**
2858
+ * token type
2859
+ */
2147
2860
  typ: EnumToken.StyleSheetNodeType;
2861
+ /**
2862
+ * child nodes
2863
+ */
2148
2864
  chi: Array<AstRule | AstAtRule | astKeyframesAtRule | AstComment | AstInvalidAtRule | AstInvalidRule>;
2149
- tokens?: null;
2150
2865
  }
2151
2866
 
2152
2867
  /**
@@ -2167,13 +2882,31 @@ export declare type AstNode$1 =
2167
2882
  | CssVariableToken
2168
2883
  | CssVariableImportTokenType;
2169
2884
 
2885
+ /**
2886
+ * token search result
2887
+ */
2170
2888
  interface TokenSearchResult {
2889
+ /**
2890
+ * node
2891
+ */
2171
2892
  node: Token$1 | null;
2893
+ /**
2894
+ * parent node
2895
+ */
2172
2896
  parent: AstNode$1 | Token$1 | null;
2897
+ /**
2898
+ * root node
2899
+ */
2173
2900
  root: AstNode$1 | Token$1 | null;
2901
+ /**
2902
+ * parent tokens
2903
+ */
2174
2904
  parents: Generator<Token$1> | null;
2175
2905
  }
2176
2906
 
2907
+ /**
2908
+ * Ast value matcher
2909
+ */
2177
2910
  type AstValueMatcher = ((value: Token$1) => boolean) | ((token: Token$1, node: AstNode$1) => boolean);
2178
2911
 
2179
2912
  /**
@@ -2812,27 +3545,25 @@ declare enum MediaFeatureType {
2812
3545
  }
2813
3546
 
2814
3547
  interface Position {
2815
-
2816
3548
  ind: number;
2817
3549
  lin: number;
2818
3550
  col: number;
2819
3551
  }
2820
3552
 
2821
3553
  interface ValidationValueRangeMatch {
2822
- min: ValidationNumberToken;
2823
- max: ValidationNumberToken | null;
3554
+ min: ValidationNumberToken;
3555
+ max: ValidationNumberToken | null;
2824
3556
  }
2825
3557
 
2826
3558
  interface ValidationDimensionRangeMatch {
2827
- min: ValidationDimensionToken;
2828
- max: ValidationDimensionToken | null;
3559
+ min: ValidationDimensionToken;
3560
+ max: ValidationDimensionToken | null;
2829
3561
  }
2830
3562
 
2831
3563
  /**
2832
3564
  * Validation token
2833
3565
  */
2834
3566
  interface ValidationToken$1 {
2835
-
2836
3567
  /**
2837
3568
  * token type
2838
3569
  */
@@ -2840,13 +3571,13 @@ interface ValidationToken$1 {
2840
3571
  /**
2841
3572
  * token position
2842
3573
  */
2843
- pos: Position;
3574
+ [LOC]: Position;
2844
3575
  /**
2845
3576
  * match a comma separated list
2846
3577
  */
2847
3578
  isList?: boolean;
2848
3579
  /**
2849
- *
3580
+ *
2850
3581
  * @private
2851
3582
  */
2852
3583
  text?: string;
@@ -2861,12 +3592,12 @@ interface ValidationToken$1 {
2861
3592
  */
2862
3593
  isRepeatableAtLeastOnce?: boolean;
2863
3594
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Values_and_units/Value_definition_syntax
2864
- /**
2865
- * token is optional
2866
- */
3595
+ /**
3596
+ * token is optional
3597
+ */
2867
3598
  isOptional?: boolean;
2868
3599
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Values_and_units/Value_definition_syntax
2869
-
3600
+
2870
3601
  /**
2871
3602
  * token is a mandatory group
2872
3603
  */
@@ -2883,18 +3614,17 @@ interface ValidationToken$1 {
2883
3614
  * token matches at most the specified number of times.
2884
3615
  */
2885
3616
  max: ValidationNumberToken | null;
2886
- },
3617
+ };
2887
3618
  /**
2888
3619
  * tokan's value range
2889
3620
  */
2890
- range?: ValidationValueRangeMatch | ValidationDimensionRangeMatch
3621
+ range?: ValidationValueRangeMatch | ValidationDimensionRangeMatch;
2891
3622
  }
2892
3623
 
2893
3624
  /**
2894
3625
  * Number token
2895
3626
  */
2896
3627
  interface ValidationNumberToken extends ValidationToken$1 {
2897
-
2898
3628
  /**
2899
3629
  * token type
2900
3630
  */
@@ -2906,11 +3636,10 @@ interface ValidationNumberToken extends ValidationToken$1 {
2906
3636
  }
2907
3637
 
2908
3638
  interface ValidationDimensionToken extends ValidationToken$1 {
2909
-
2910
3639
  typ: ValidationTokenEnum.AtRuleName;
2911
3640
  val: number;
2912
3641
  unitText: string;
2913
- unit: keyof EnumToken
3642
+ unit: keyof EnumToken;
2914
3643
  }
2915
3644
 
2916
3645
  interface PropertyType {
@@ -3781,12 +4510,28 @@ export declare interface ModuleOptions {
3781
4510
  ) => string | Promise<string>;
3782
4511
  }
3783
4512
 
4513
+ /**
4514
+ * Input file options
4515
+ */
3784
4516
  export declare interface ParseInputFileOptions {
4517
+ /**
4518
+ * File path or url
4519
+ */
3785
4520
  file: string;
4521
+ /**
4522
+ * Load file as stream
4523
+ */
4524
+
3786
4525
  asStream?: boolean;
3787
4526
  }
3788
4527
 
4528
+ /**
4529
+ * Input options for string or stream
4530
+ */
3789
4531
  export declare interface ParseInputStreamOptions {
4532
+ /**
4533
+ * Input string or stream
4534
+ */
3790
4535
  input: string | ReadableStream<Uint8Array>;
3791
4536
  }
3792
4537
 
@@ -3862,7 +4607,13 @@ export declare interface ParserOptions
3862
4607
  currentUrl: string,
3863
4608
  currentWorkingDirectory?: string,
3864
4609
  ) => {
4610
+ /**
4611
+ * Absolute path
4612
+ */
3865
4613
  absolute: string;
4614
+ /**
4615
+ * Relative path
4616
+ */
3866
4617
  relative: string;
3867
4618
  };
3868
4619
 
@@ -4551,7 +5302,7 @@ declare function okLabDistance(color1: ColorToken, color2: ColorToken): number |
4551
5302
  declare function isOkLabClose(color1: ColorToken, color2: ColorToken, threshold?: number): boolean;
4552
5303
 
4553
5304
  /**
4554
- * Search the ast tree and return the first match
5305
+ * Search the ast sub-tree and return the first match
4555
5306
  *
4556
5307
  * ```ts
4557
5308
  * // find the first ast declaration node which name is 'aspect-ratio'
@@ -4583,14 +5334,14 @@ button {
4583
5334
  */
4584
5335
  declare function find(ast: AstNode$1, matcher: (node: AstNode$1) => boolean): AstNode$1 | null;
4585
5336
  /**
4586
- * Search the ast tree by checking each node's value token and return the first match
5337
+ * Search the ast sub-tree by checking each node's value token and return the first match
4587
5338
  *
4588
- * ```ts
4589
- * // find the first ast node which contains the length token '30px'
5339
+ ```ts
5340
+ // find the first ast node which contains the length token '30px'
4590
5341
  import { findByValue, EnumToken, transform } from "@tbela99/css-parser";
4591
5342
  import type { AstNode } from "@tbela99/css-parser";
4592
5343
 
4593
- * const css = `
5344
+ const css = `
4594
5345
 
4595
5346
  button {
4596
5347
  aspect-ratio: 1;
@@ -4618,22 +5369,25 @@ declare function findByValue(ast: AstNode$1, matcher: AstValueMatcher): {
4618
5369
  value: TokenSearchResult;
4619
5370
  } | null;
4620
5371
  /**
4621
- * Search the ast tree and return all matches
5372
+ * Search the ast sub-tree and return all matches
4622
5373
  *
4623
5374
  * ```ts
4624
5375
  * // find the first ast declaration node which name is 'aspect-ratio'
4625
- import { findAll, EnumToken, transform } from "@tbela99/css-parser";
4626
- import type { AstNode } from "@tbela99/css-parser";
5376
+ * import { findAll, EnumToken, transform } from "@tbela99/css-parser";
5377
+ * import type { AstNode } from "@tbela99/css-parser";
4627
5378
 
4628
- * const css = `
5379
+ const css = `
4629
5380
 
4630
5381
  button {
4631
5382
  aspect-ratio: 1;
4632
5383
  width: if(media(any-pointer: fine): 30px; else: 44px);
5384
+ }
5385
+ button-small {
5386
+ aspect-ratio: 1;
5387
+ width: if(media(any-pointer: fine): 20px; else: 30px);
4633
5388
  }
4634
5389
  `;
4635
5390
 
4636
- // find declaration which contain a '30px'
4637
5391
  const nodeMatcher = (node: AstNode) =>
4638
5392
  return node.typ == EnumToken.DeclarationNodeType && (node as AstDeclaration).nam == 'aspect-ratio';
4639
5393
 
@@ -4650,7 +5404,7 @@ button {
4650
5404
  */
4651
5405
  declare function findAll(ast: AstNode$1, matcher: (node: AstNode$1) => boolean): AstNode$1[];
4652
5406
  /**
4653
- * Search the ast tree and return the last match.
5407
+ * Search the ast sub-tree and return the last match.
4654
5408
  *
4655
5409
  * ```ts
4656
5410
  * // find the first ast declaration node which name is 'aspect-ratio'
@@ -4665,7 +5419,6 @@ button {
4665
5419
  }
4666
5420
  `;
4667
5421
 
4668
- // find declaration which contain a '30px'
4669
5422
  const nodeMatcher = (node: AstNode) =>
4670
5423
  return node.typ == EnumToken.DeclarationNodeType && (node as AstDeclaration).nam == 'aspect-ratio';
4671
5424
 
@@ -4762,6 +5515,7 @@ declare function render(data: AstNode$1, options?: RenderOptions, mapping?: {
4762
5515
  * @param asStream load file as stream
4763
5516
  *
4764
5517
  * @deprecated
5518
+ * @see {@link parse}
4765
5519
  * @throws Error file not found
4766
5520
  *
4767
5521
  * Example:
@@ -4780,8 +5534,126 @@ declare function render(data: AstNode$1, options?: RenderOptions, mapping?: {
4780
5534
  * ```
4781
5535
  */
4782
5536
  declare const parseFile: (file: string, options?: ParserOptions, asStream?: boolean) => Promise<ParseResult>;
5537
+ /**
5538
+ * Parse css
5539
+ * @param stream
5540
+ * @param options
5541
+ *
5542
+ * @throws Error file not found
5543
+ *
5544
+ * Example:
5545
+ *
5546
+ * ```ts
5547
+ *
5548
+ * import {parse} from '@tbela99/css-parser';
5549
+ *
5550
+ * // css string
5551
+ * let result = await parse(css);
5552
+ * console.log(result.ast);
5553
+ * ```
5554
+ *
5555
+ * parsing a Readable stream
5556
+ *
5557
+ * ```ts
5558
+ *
5559
+ * import {parse} from '@tbela99/css-parser';
5560
+ * import {Readable} from "node:stream";
5561
+ *
5562
+ * // usage: node index.ts < styles.css or cat styles.css | node index.ts
5563
+ *
5564
+ * const readableStream = Readable.toWeb(process.stdin);
5565
+ * let result = await parse(readableStream, {beautify: true});
5566
+ *
5567
+ * console.log(result.ast);
5568
+ * ```
5569
+ *
5570
+ * Example using fetch and readable stream
5571
+ *
5572
+ * ```ts
5573
+ *
5574
+ * import {parse} from '@tbela99/css-parser';
5575
+ *
5576
+ * const response = await fetch('https://docs.deno.com/styles.css');
5577
+ * const result = await parse(response.body, {beautify: true});
5578
+ *
5579
+ * console.log(result.ast);
5580
+ * ```
5581
+ */
4783
5582
  declare function parse(stream: string | ReadableStream<Uint8Array>, options?: ParserOptions): Promise<ParseResult>;
5583
+ /**
5584
+ * Parse css
5585
+ * @param stream
5586
+ * @param options
5587
+ *
5588
+ * @throws Error file not found
5589
+ *
5590
+ * Parsing a file
5591
+ *
5592
+ * ```ts
5593
+ *
5594
+ * import {parse} from '@tbela99/css-parser';
5595
+ *
5596
+ * const file = 'https://docs.deno.com/styles.css';
5597
+ * // css file or url
5598
+ * let result = await parse({file});
5599
+ * console.log(result.ast);
5600
+ * ```
5601
+ *
5602
+ * Parsing a file as stream
5603
+ *
5604
+ * ```ts
5605
+ *
5606
+ * import {parse} from '@tbela99/css-parser';
5607
+ *
5608
+ * const file = 'https://docs.deno.com/styles.css';
5609
+ * let result = await parse({file, asStream: true, beautify: true});
5610
+ *
5611
+ * console.log(result.ast);
5612
+ * ```
5613
+ *
5614
+ */
4784
5615
  declare function parse(options: ParseInputFileOptions & ParserOptions): Promise<ParseResult>;
5616
+ /**
5617
+ * Parse css
5618
+ * @param stream
5619
+ * @param options
5620
+ *
5621
+ * Parsing a string
5622
+ *
5623
+ * ```ts
5624
+ *
5625
+ * import {parse} from '@tbela99/css-parser';
5626
+ *
5627
+ * // css string
5628
+ * let result = await parse({input:css});
5629
+ * console.log(result.ast);
5630
+ * ```
5631
+ *
5632
+ * Parsing a Readable stream
5633
+ *
5634
+ * ```ts
5635
+ *
5636
+ * import {parse} from '@tbela99/css-parser';
5637
+ * import {Readable} from "node:stream";
5638
+ * *
5639
+ * const readableStream = Readable.toWeb(process.stdin);
5640
+ * let result = await parse({input: readableStream, beautify: true});
5641
+ *
5642
+ * console.log(result.ast);
5643
+ * ```
5644
+ *
5645
+ * Parsing a file as a ReadableStream
5646
+ *
5647
+ * ```ts
5648
+ *
5649
+ * import {parse} from '@tbela99/css-parser';
5650
+ *
5651
+ * const response = await fetch('https://docs.deno.com/styles.css');
5652
+ * const result = await parse({input: response.body, beautify: true});
5653
+ *
5654
+ * console.log(result.ast);
5655
+ * ```
5656
+ */
4785
5657
  declare function parse(options: ParseInputStreamOptions & ParserOptions): Promise<ParseResult>;
4786
5658
  /**
4787
5659
  * Transform css file
@@ -4813,4 +5685,4 @@ declare function transform(options: ParseInputFileOptions & TransformOptions): P
4813
5685
  declare function transform(options: ParseInputStreamOptions & TransformOptions): Promise<TransformResult>;
4814
5686
 
4815
5687
  export { ColorType$1 as ColorType, EnumAstNodeStatus$1 as EnumAstNodeStatus, EnumToken, FeatureWalkMode, ModuleCaseTransformEnum, ModuleScopeEnumOptions, ResponseType$1 as ResponseType, SourceMap, ValidationLevel, WalkerEvent, WalkerOptionEnum, cloneNode, convertColor, dirname, expand, find, findAll, findByValue, findLast, isOkLabClose, load, minify, okLabDistance, parse, parseDeclarations, parseFile, parseString, render, renderValue as renderToken, replaceNodeOrValue, resolve, transform, transformFile, walk, walkValues };
4816
- export type { AddToken, AndToken, AngleToken, AstAtRule, AstComment, AstDeclaration, AstInvalidAtRule, AstInvalidDeclaration, AstInvalidRule, AstKeyFrameRule, AstKeyframesAtRule, AstKeyframesRule, AstNode$1 as AstNode, AstNodeStatus, AstRule, AstRuleList, AstStyleSheet, AstValueMatcher, AtRuleToken, AtRuleVisitorHandler, AttrEndToken, AttrStartToken, AttrToken, Background, BackgroundAttachmentMapping, BackgroundPosition, BackgroundPositionClass, BackgroundPositionConstraints, BackgroundPositionMapping, BackgroundProperties, BackgroundRepeat, BackgroundRepeatMapping, BackgroundSize, BackgroundSizeMapping, BadCDOCommentToken, BadCommentToken, BadStringToken, BadUrlToken, BaseToken, BinaryExpressionNode, BinaryExpressionToken, BlockEndToken, BlockStartToken, Border, BorderColor, BorderColorClass, BorderProperties, BorderRadius, CDOCommentToken, ChildCombinatorToken, ClassSelectorToken, ColonToken, ColorToken, ColumnCombinatorToken, CommaToken, CommentToken, ComposesSelectorToken, ConstraintsMapping, ContainMatchToken, ContainerStyleRangeToken, Context, CssVariableImportTokenType$1 as CssVariableImportTokenType, CssVariableMapTokenType, CssVariableToken$1 as CssVariableToken, DashMatchToken, DashedIdentToken, DeclarationVisitorHandler, DelimToken, DescendantCombinatorToken, DimensionToken, DivToken, DoubleColonToken, EOFToken, EndMatchToken, EqualMatchToken, ErrorDescription$1 as ErrorDescription, FlexToken, Font, FontFamily, FontProperties, FontWeight, FontWeightConstraints, FontWeightMapping, FractionToken, FrequencyToken, FunctionDefToken, FunctionImageToken, FunctionToken, FunctionURLToken, GenericVisitorAstNodeHandlerMap, GenericVisitorHandler, GenericVisitorResult, GreaterThanOrEqualToken, GreaterThanToken, GridTemplateFuncToken, HashToken, IdentListToken, IdentToken, IfConditionToken, IfElseConditionToken, ImportantToken, IncludeMatchToken, InvalidAttrToken, InvalidClassSelectorToken, InvalidMediaQueryToken, LengthToken, LessThanOrEqualToken, LessThanToken, LineHeight, ListToken, LiteralToken, LoadResult, Location, Map$1 as Map, MatchExpressionToken, MatchedSelector, MediaFeatureOnlyToken, MediaFeatureToken, MediaQueryConditionToken, MediaQueryUnaryFeatureToken, MediaRangeQueryToken, MinifyFeature, MinifyFeatureOptions, MinifyOptions, ModuleOptions, MulToken, NameSpaceAttributeToken, NestingSelectorToken, NextSiblingCombinatorToken, NotToken, NumberToken, OptimizedSelector, OptimizedSelectorToken, OrToken, Outline, OutlineProperties, ParensEndToken, ParensStartToken, ParensToken, ParseInfo$1 as ParseInfo, ParseInputFileOptions, ParseInputStreamOptions, ParseResult, ParseResultStats, ParseTokenOptions, ParserOptions, PercentageToken, Position$1 as Position, Prefix, PropertiesConfig, PropertiesConfigProperties, PropertyListOptions, PropertyMapType, PropertySetType, PropertyType, PseudoClassFunctionToken, PseudoClassToken, PseudoElementToken, PseudoPageToken, PurpleBackgroundAttachment, RawNodeToken, RawSelectorTokens, RenderOptions, RenderResult, ResolutionToken, ResolvedPath, RuleVisitorHandler, SemiColonToken, Separator, ShorthandDef, ShorthandMapType, ShorthandProperties, ShorthandPropertyType, ShorthandType, SinglePropertyType, SinglePropertyTypeMapping, SourceMapObject, StartMatchToken, StringToken, SubToken, SubsequentCombinatorToken, SupportsQueryConditionToken, SupportsQueryUnaryConditionToken, TimeToken, TimelineFunctionToken, TimingFunctionToken, Token$1 as Token, TokenSearchResult, TokenizeResult, TransformOptions, TransformResult, UnaryExpression, UnaryExpressionNode, UnclosedStringToken, UniversalSelectorToken, UrlToken, ValidationConfiguration, ValidationMediaFeature, ValidationOptions, ValidationResult, ValidationSelectorOptions, ValidationSyntaxNode, ValidationSyntaxResult, ValidationToken$1 as ValidationToken, Value, ValueVisitorHandler, VariableScopeInfo, VisitorNodeMap, WalkAttributesResult, WalkResult, WalkerFilter, WalkerOption, WalkerValueFilter, WhenElseQueryConditionToken, WhenElseUnaryConditionToken, WhitespaceToken };
5688
+ export type { AddToken, AndToken, AngleToken, AstAtRule, AstComment, AstDeclaration, AstInvalidAtRule, AstInvalidDeclaration, AstInvalidRule, AstKeyFrameRule, AstKeyframesAtRule, AstKeyframesRule, AstNode$1 as AstNode, AstNodeStatus, AstRule, AstRuleList, AstStyleSheet, AstValueMatcher, AtRuleToken, AtRuleVisitorHandler, AttrEndToken, AttrStartToken, AttrToken, Background, BackgroundAttachmentMapping, BackgroundPosition, BackgroundPositionClass, BackgroundPositionConstraints, BackgroundPositionMapping, BackgroundProperties, BackgroundRepeat, BackgroundRepeatMapping, BackgroundSize, BackgroundSizeMapping, BadCDOCommentToken, BadCommentToken, BadStringToken, BadUrlToken, BaseToken, BinaryExpressionNode, BinaryExpressionToken, BlockEndToken, BlockStartToken, Border, BorderColor, BorderColorClass, BorderProperties, BorderRadius, CDOCommentToken, ChildCombinatorToken, ClassSelectorToken, ColonToken, ColorToken, ColumnCombinatorToken, CommaToken, CommentToken, ComposesSelectorToken, ConstraintsMapping, ContainMatchToken, ContainerStyleRangeToken, Context, CssVariableImportTokenType$1 as CssVariableImportTokenType, CssVariableMapTokenType, CssVariableToken$1 as CssVariableToken, DashMatchToken, DashedIdentToken, DeclarationVisitorHandler, DelimToken, DescendantCombinatorToken, DimensionToken, DivToken, DoubleColonToken, EOFToken, EndMatchToken, EqualMatchToken, ErrorDescription$1 as ErrorDescription, FlexToken, Font, FontFamily, FontProperties, FontWeight, FontWeightConstraints, FontWeightMapping, FractionToken, FrequencyToken, FunctionDefToken, FunctionImageToken, FunctionToken, FunctionURLToken, GenericVisitorAstNodeHandlerMap, GenericVisitorHandler, GenericVisitorResult, GreaterThanOrEqualToken, GreaterThanToken, GridTemplateFuncToken, HashToken, IdentListToken, IdentToken, IfConditionToken, IfElseConditionToken, ImportantToken, IncludeMatchToken, InvalidAttrToken, InvalidClassSelectorToken, InvalidMediaQueryToken, LengthToken, LessThanOrEqualToken, LessThanToken, LineHeight, ListToken, LiteralToken, LoadResult, Location, Map$1 as Map, MatchExpressionToken, MatchedSelector, MediaFeatureOnlyToken, MediaFeatureToken, MediaQueryConditionToken, MediaQueryUnaryFeatureToken, MediaRangeQueryToken, MinifyFeature, MinifyFeatureOptions, MinifyOptions, ModuleOptions, MulToken, NameSpaceAttributeToken, NestingSelectorToken, NextSiblingCombinatorToken, NotToken, NumberToken, OptimizedSelector, OptimizedSelectorToken, OrToken, Outline, OutlineProperties, ParensEndToken, ParensStartToken, ParensToken, ParseInfo$1 as ParseInfo, ParseInputFileOptions, ParseInputStreamOptions, ParseResult, ParseResultStats, ParseTokenOptions, ParserOptions, PercentageToken, Position$1 as Position, Prefix, PropertiesConfig, PropertiesConfigProperties, PropertyListOptions, PropertyMapType, PropertySetType, PropertyType, PseudoClassFunctionToken, PseudoClassToken, PseudoElementToken, PseudoPageToken, PurpleBackgroundAttachment, RawNodeToken, RawSelectorTokens, RenderOptions, RenderResult, ResolutionToken, ResolvedPath, RuleVisitorHandler, SemiColonToken, Separator, ShorthandDef, ShorthandMapType, ShorthandProperties, ShorthandPropertyType, ShorthandType, SinglePropertyType, SinglePropertyTypeMapping, SourceMapObject, StartMatchToken, StringToken, SubToken, SubsequentCombinatorToken, SupportsQueryConditionToken, SupportsQueryUnaryConditionToken, TimeToken, TimelineFunctionToken, TimingFunctionToken, Token$1 as Token, TokenSearchResult, TokenizeResult, TransformOptions, TransformResult, UnaryExpression, UnaryExpressionNode, UnclosedStringToken, UniversalSelectorToken, UrlToken, ValidationConfiguration, ValidationMediaFeature, ValidationOptions, ValidationResult, ValidationSelectorOptions, ValidationSyntaxNode, ValidationSyntaxResult, ValidationToken$1 as ValidationToken, Value, ValueVisitorHandler, VariableScopeInfo, VisitorNodeMap, WalkAttributesResult, WalkResult, WalkerFilter, WalkerOption, WalkerValueFilter, WhenElseQueryConditionToken, WhenElseUnaryConditionToken, WhitespaceToken, WrappedValuesToken };