@tbela99/css-parser 1.4.9 → 1.4.11

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.ts CHANGED
@@ -1,2465 +1,2465 @@
1
1
  /**
2
- * Literal token
2
+ * Syntax validation enum
3
3
  */
4
- export declare interface LiteralToken extends BaseToken {
5
- /**
6
- * literal type
7
- */
8
- typ: EnumToken.LiteralTokenType;
9
- /**
10
- * literal value
11
- */
12
- val: string;
4
+ declare enum SyntaxValidationResult {
5
+ /** valid syntax */
6
+ Valid = 0,
7
+ /** drop invalid syntax */
8
+ Drop = 1,
9
+ /** preserve unknown at-rules, declarations and pseudo-classes */
10
+ Lenient = 2
13
11
  }
14
-
15
12
  /**
16
- * Class selector token
13
+ * Enum of node statuses
17
14
  */
18
- export declare interface ClassSelectorToken extends BaseToken {
15
+ declare enum EnumAstNodeStatus$1 {
19
16
  /**
20
- * class selector type
17
+ * Node passed validation
21
18
  */
22
- typ: EnumToken.ClassSelectorTokenType;
19
+ Validated = 0,
23
20
  /**
24
- * class name
21
+ * Node is invalid
25
22
  */
26
- val: string;
27
- }
28
-
29
- /**
30
- * Invalid class selector token
31
- */
32
- export declare interface InvalidClassSelectorToken extends BaseToken {
23
+ Invalid = 1,
33
24
  /**
34
- * invalid class selector type
25
+ * node is not validated
35
26
  */
36
- typ: EnumToken.InvalidClassSelectorTokenType;
27
+ Unvalidated = 2,
37
28
  /**
38
- * invalid class name
29
+ * Node did not pass validation, but is preserved.
39
30
  */
40
- val: string;
41
- }
42
-
43
- /**
44
- * Universal selector token
45
- */
46
- export declare interface UniversalSelectorToken extends BaseToken {
31
+ ValidationFailed = 3,
47
32
  /**
48
- * universal selector type
33
+ * Parsing the node is not supported yet or the node syntax definition does not exist.
49
34
  */
50
- typ: EnumToken.UniversalSelectorTokenType;
51
- }
52
-
53
- /**
54
- * Ident token
55
- */
56
- export declare interface IdentToken extends BaseToken {
35
+ Unknown = 4,
57
36
  /**
58
- * ident type
37
+ * Failed to parse the node.
59
38
  */
60
- typ: EnumToken.IdenTokenType;
39
+ Unparsed = 5,
61
40
  /**
62
- * ident value
41
+ * Node is disallowed in the context
63
42
  */
64
- val: string;
43
+ Disallowed = 6,
44
+ /**
45
+ * Node is malformed
46
+ */
47
+ Malformed = 7
65
48
  }
66
-
67
49
  /**
68
- * Ident list token
50
+ * Enum of validation levels
51
+ * @deprecated
69
52
  */
70
- export declare interface IdentListToken extends BaseToken {
53
+ declare enum ValidationLevel {
71
54
  /**
72
- * ident list type
55
+ * disable validation
73
56
  */
74
- typ: EnumToken.IdenListTokenType;
57
+ None = 0,
75
58
  /**
76
- * ident list value
59
+ * validate selectors
77
60
  */
78
- val: string;
79
- }
80
-
81
- /**
82
- * Dashed ident token
83
- */
84
- export declare interface DashedIdentToken extends BaseToken {
61
+ Selector = 1,
85
62
  /**
86
- * ident type
63
+ * validate at-rules
87
64
  */
88
- typ: EnumToken.DashedIdenTokenType;
65
+ AtRule = 2,
89
66
  /**
90
- * ident value
67
+ * validate declarations
91
68
  */
92
- val: string;
93
- }
94
-
95
- /**
96
- * Comma token
97
- */
98
- export declare interface CommaToken extends BaseToken {
69
+ Declaration = 4,
99
70
  /**
100
- * comma type
71
+ * validate selectors and at-rules
101
72
  */
102
- typ: EnumToken.CommaTokenType;
103
- }
104
-
105
- /**
106
- * Colon token
107
- */
108
- export declare interface ColonToken extends BaseToken {
73
+ Default = 3,// selectors + at-rules
109
74
  /**
110
- * colon type ':'
75
+ * validate selectors, at-rules and declarations
111
76
  */
112
- typ: EnumToken.ColonTokenType;
113
- }
114
-
115
- /**
116
- * Double colon token
117
- */
118
- export declare interface DoubleColonToken extends BaseToken {
77
+ All = 7,// selectors + at-rules + declarations
119
78
  /**
120
- * double colon type '::'
79
+ * Report only. Apply validation and report nodes that are marked as invalid
121
80
  */
122
- typ: EnumToken.DoubleColonTokenType;
81
+ ReportOnly = 8
123
82
  }
124
-
125
83
  /**
126
- * Semicolon token
84
+ * Enum of all token types
127
85
  */
128
- export declare interface SemiColonToken extends BaseToken {
86
+ declare enum EnumToken {
129
87
  /**
130
- * semicolon type
88
+ * comment token
131
89
  */
132
- typ: EnumToken.SemiColonTokenType;
133
- }
134
-
135
- /**
136
- * Nesting selector token
137
- */
138
- export declare interface NestingSelectorToken extends BaseToken {
90
+ CommentTokenType = 0,
139
91
  /**
140
- * nesting selector type
92
+ * cdata section token
141
93
  */
142
- typ: EnumToken.NestingSelectorTokenType;
143
- }
144
-
145
- /**
146
- * Number token
147
- */
148
- export declare interface NumberToken extends BaseToken {
94
+ CDOCOMMTokenType = 1,
149
95
  /**
150
- * number type
96
+ * style sheet node type
151
97
  */
152
- typ: EnumToken.NumberTokenType;
98
+ StyleSheetNodeType = 2,
153
99
  /**
154
- * number sign
100
+ * at-rule node type
155
101
  */
156
- sign?: "-" | "+";
102
+ AtRuleNodeType = 3,
157
103
  /**
158
- * number value
104
+ * rule node type
159
105
  */
160
- val: number | FractionToken;
161
- }
162
-
163
- /**
164
- * At rule token
165
- */
166
- export declare interface AtRuleToken extends BaseToken {
106
+ RuleNodeType = 4,
167
107
  /**
168
- * at rule type
108
+ * declaration node type
169
109
  */
170
- typ: EnumToken.AtRuleTokenType;
110
+ DeclarationNodeType = 5,
171
111
  /**
172
- * at rule name
112
+ * literal token type
173
113
  */
174
- nam: string;
114
+ LiteralTokenType = 6,
175
115
  /**
176
- * at rule value
116
+ * identifier token type
177
117
  */
178
- val?: string;
179
- }
180
-
181
- /**
182
- * Percentage token
183
- */
184
- export declare interface PercentageToken extends BaseToken {
118
+ IdenTokenType = 7,
185
119
  /**
186
- * percentage type
120
+ * dashed identifier token type
187
121
  */
188
- typ: EnumToken.PercentageTokenType;
122
+ DashedIdenTokenType = 8,
189
123
  /**
190
- * percentage value
124
+ * comma token type
191
125
  */
192
- val: number | FractionToken;
193
- }
194
-
195
- /**
196
- * Flex token
197
- */
198
- export declare interface FlexToken extends BaseToken {
126
+ CommaTokenType = 9,
199
127
  /**
200
- * flex type
128
+ * colon token type
201
129
  */
202
- typ: EnumToken.FlexTokenType;
130
+ ColonTokenType = 10,
203
131
  /**
204
- * flex value
132
+ * semicolon token type
205
133
  */
206
- val: number | FractionToken;
207
- }
208
-
209
- /**
210
- * Function token
211
- */
212
- export declare interface FunctionToken extends BaseToken {
134
+ SemiColonTokenType = 11,
213
135
  /**
214
- * function type
136
+ * number token type
215
137
  */
216
- typ:
217
- | EnumToken.FunctionTokenType
218
- | EnumToken.UrlFunctionTokenType
219
- | EnumToken.GridTemplateFuncTokenType
220
- | EnumToken.ImageFunctionTokenType
221
- | EnumToken.TimelineFunctionTokenType
222
- | EnumToken.TimingFunctionTokenType
223
- | EnumToken.ColorFunctionTokenType
224
- | EnumToken.MathFunctionTokenType
225
- | EnumToken.PseudoClassFunctionTokenType
226
- | EnumToken.TransformFunctionTokenType;
138
+ NumberTokenType = 12,
227
139
  /**
228
- * function name
140
+ * at-rule token type
229
141
  */
230
- val: string;
142
+ AtRuleTokenType = 13,
231
143
  /**
232
- * function children
144
+ * percentage token type
233
145
  */
234
- chi: Token$1[];
235
- }
236
-
237
- /**
238
- * Grid template function token
239
- */
240
- export declare interface GridTemplateFuncToken extends BaseToken {
146
+ PercentageTokenType = 14,
241
147
  /**
242
- * function type
148
+ * function token type
243
149
  */
244
- typ: EnumToken.GridTemplateFuncTokenType;
150
+ FunctionTokenType = 15,
245
151
  /**
246
- * function name
152
+ * timeline function token type
247
153
  */
248
- val: string;
154
+ TimelineFunctionTokenType = 16,
249
155
  /**
250
- * function children
156
+ * timing function token type
251
157
  */
252
- chi: Token$1[];
253
- }
254
-
255
- /**
256
- * Function URL token
257
- */
258
- export declare interface FunctionURLToken extends BaseToken {
158
+ TimingFunctionTokenType = 17,
259
159
  /**
260
- * function type
160
+ * url function token type
261
161
  */
262
- typ: EnumToken.UrlFunctionTokenType;
162
+ UrlFunctionTokenType = 18,
263
163
  /**
264
- * function name
164
+ * image function token type
265
165
  */
266
- val: "url";
166
+ ImageFunctionTokenType = 19,
267
167
  /**
268
- * function children
168
+ * string token type
269
169
  */
270
- chi: Array<UrlToken | StringToken | CommentToken>;
271
- }
272
-
273
- /**
274
- * Function image token
275
- */
276
- export declare interface FunctionImageToken extends BaseToken {
170
+ StringTokenType = 20,
277
171
  /**
278
- * function type
172
+ * unclosed string token type
279
173
  */
280
- typ: EnumToken.ImageFunctionTokenType;
174
+ UnclosedStringTokenType = 21,
281
175
  /**
282
- * function name
176
+ * dimension token type
283
177
  */
284
- val:
285
- | "linear-gradient"
286
- | "radial-gradient"
287
- | "repeating-linear-gradient"
288
- | "repeating-radial-gradient"
289
- | "conic-gradient"
290
- | "image"
291
- | "image-set"
292
- | "element"
293
- | "cross-fade";
178
+ DimensionTokenType = 22,
294
179
  /**
295
- * function children
180
+ * length token type
296
181
  */
297
- chi: Array<UrlToken | CommentToken>;
298
- }
299
-
300
- /**
301
- * Timing function token
302
- */
303
- export declare interface TimingFunctionToken extends BaseToken {
182
+ LengthTokenType = 23,
304
183
  /**
305
- * timing function type
184
+ * angle token type
306
185
  */
307
- typ: EnumToken.TimingFunctionTokenType;
186
+ AngleTokenType = 24,
308
187
  /**
309
- * timing function value
188
+ * time token type
310
189
  */
311
- val: string;
190
+ TimeTokenType = 25,
312
191
  /**
313
- * timing function children
192
+ * frequency token type
314
193
  */
315
- chi: Token$1[];
316
- }
317
-
318
- /**
319
- * Timeline function token
320
- */
321
- export declare interface TimelineFunctionToken extends BaseToken {
194
+ FrequencyTokenType = 26,
322
195
  /**
323
- * timeline function type
196
+ * resolution token type
324
197
  */
325
- typ: EnumToken.TimelineFunctionTokenType;
198
+ ResolutionTokenType = 27,
326
199
  /**
327
- * timeline function value
200
+ * hash token type
328
201
  */
329
- val: string;
202
+ HashTokenType = 28,
330
203
  /**
331
- * timeline function children
204
+ * block start token type
332
205
  */
333
- chi: Token$1[];
334
- }
335
-
336
- /**
337
- * String token
338
- */
339
- export declare interface StringToken extends BaseToken {
206
+ BlockStartTokenType = 29,
340
207
  /**
341
- * string type
208
+ * block end token type
342
209
  */
343
- typ: EnumToken.StringTokenType;
210
+ BlockEndTokenType = 30,
344
211
  /**
345
- * string value
212
+ * attribute start token type
346
213
  */
347
- val: string;
348
- }
349
-
350
- /**
351
- * Bad string token
352
- */
353
- export declare interface BadStringToken extends BaseToken {
214
+ AttrStartTokenType = 31,
354
215
  /**
355
- * bad string type
216
+ * attribute end token type
356
217
  */
357
- typ: EnumToken.BadStringTokenType;
218
+ AttrEndTokenType = 32,
358
219
  /**
359
- * bad string value
220
+ * start parentheses token type
360
221
  */
361
- val: string;
362
- }
363
-
364
- /**
365
- * Unclosed string token
366
- */
367
- export declare interface UnclosedStringToken extends BaseToken {
222
+ StartParensTokenType = 33,
368
223
  /**
369
- * unclosed string type
224
+ * end parentheses token type
370
225
  */
371
- typ: EnumToken.UnclosedStringTokenType;
226
+ EndParensTokenType = 34,
372
227
  /**
373
- * unclosed string value
228
+ * parentheses token type
374
229
  */
375
- val: string;
376
- }
377
-
378
- /**
379
- * Dimension token
380
- */
381
- export declare interface DimensionToken extends BaseToken {
230
+ ParensTokenType = 35,
382
231
  /**
383
- * dimension type
232
+ * whitespace token type
384
233
  */
385
- typ: EnumToken.DimensionTokenType;
234
+ WhitespaceTokenType = 36,
386
235
  /**
387
- * dimension value
236
+ * include match token type
388
237
  */
389
- val: number | FractionToken;
238
+ IncludeMatchTokenType = 37,
390
239
  /**
391
- * dimension unit
240
+ * dash match token type
392
241
  */
393
- unit: string;
394
- }
395
-
396
- /**
397
- * Length token
398
- */
399
- export declare interface LengthToken extends BaseToken {
242
+ DashMatchTokenType = 38,
400
243
  /**
401
- * length type
244
+ * equal match token type
402
245
  */
403
- typ: EnumToken.LengthTokenType;
246
+ EqualMatchTokenType = 39,
404
247
  /**
405
- * length value
248
+ * less than token type
406
249
  */
407
- val: number | FractionToken;
250
+ LtTokenType = 40,
408
251
  /**
409
- * length unit
252
+ * less than or equal to token type
410
253
  */
411
- unit: string;
412
- }
413
-
414
- /**
415
- * Angle token
416
- */
417
- export declare interface AngleToken extends BaseToken {
254
+ LteTokenType = 41,
418
255
  /**
419
- * angle type
256
+ * greater than token type
420
257
  */
421
- typ: EnumToken.AngleTokenType;
258
+ GtTokenType = 42,
422
259
  /**
423
- * angle value
260
+ * greater than or equal to token type
424
261
  */
425
- val: number | FractionToken;
262
+ GteTokenType = 43,
426
263
  /**
427
- * angle unit
264
+ * pseudo-class token type
428
265
  */
429
- unit: string;
430
- }
431
-
432
- /**
433
- * Time token
434
- */
435
- export declare interface TimeToken extends BaseToken {
266
+ PseudoClassTokenType = 44,
436
267
  /**
437
- * time type
268
+ * pseudo-class function token type
438
269
  */
439
- typ: EnumToken.TimeTokenType;
270
+ PseudoClassFuncTokenType = 45,
440
271
  /**
441
- * time value
272
+ * delimiter token type
442
273
  */
443
- val: number | FractionToken;
274
+ DelimTokenType = 46,
444
275
  /**
445
- * time unit
276
+ * URL token type
446
277
  */
447
- unit: "ms" | "s";
448
- }
449
-
450
- /**
451
- * Frequency token
452
- */
453
- export declare interface FrequencyToken extends BaseToken {
278
+ UrlTokenTokenType = 47,
454
279
  /**
455
- * frequency type
280
+ * end of file token type
456
281
  */
457
- typ: EnumToken.FrequencyTokenType;
282
+ EOFTokenType = 48,
458
283
  /**
459
- * frequency value
284
+ * important token type
460
285
  */
461
- val: number | FractionToken;
286
+ ImportantTokenType = 49,
462
287
  /**
463
- * frequency unit
288
+ * color token type
464
289
  */
465
- unit: "Hz" | "Khz";
466
- }
467
-
468
- /**
469
- * Resolution token
470
- */
471
- export declare interface ResolutionToken extends BaseToken {
290
+ ColorTokenType = 50,
472
291
  /**
473
- * resolution type
292
+ * attribute token type
474
293
  */
475
- typ: EnumToken.ResolutionTokenType;
294
+ AttrTokenType = 51,
476
295
  /**
477
- * resolution value
296
+ * bad comment token type
478
297
  */
479
- val: number | FractionToken;
298
+ BadCommentTokenType = 52,
480
299
  /**
481
- * resolution unit
300
+ * bad cdo token type
482
301
  */
483
- unit: "dpi" | "dpcm" | "dppx" | "x";
484
- }
485
-
486
- /**
487
- * Hash token
488
- */
489
- export declare interface HashToken extends BaseToken {
302
+ BadCdoTokenType = 53,
490
303
  /**
491
- * hash type
304
+ * bad URL token type
492
305
  */
493
- typ: EnumToken.HashTokenType;
306
+ BadUrlTokenType = 54,
494
307
  /**
495
- * hash value
308
+ * bad string token type
496
309
  */
497
- val: string;
498
- }
499
-
500
- /**
501
- * Block start token
502
- */
503
- export declare interface BlockStartToken extends BaseToken {
310
+ BadStringTokenType = 55,
504
311
  /**
505
- * block start type
312
+ * binary expression token type
506
313
  */
507
- typ: EnumToken.BlockStartTokenType;
508
- }
509
-
510
- /**
511
- * Block end token
512
- */
513
- export declare interface BlockEndToken extends BaseToken {
314
+ BinaryExpressionTokenType = 56,
514
315
  /**
515
- * block end type
316
+ * unary expression token type
516
317
  */
517
- typ: EnumToken.BlockEndTokenType;
518
- }
519
-
520
- /**
521
- * Attribute start token
522
- */
523
- export declare interface AttrStartToken extends BaseToken {
318
+ UnaryExpressionTokenType = 57,
524
319
  /**
525
- * attribute start type
320
+ * flex token type
526
321
  */
527
- typ: EnumToken.AttrStartTokenType;
322
+ FlexTokenType = 58,
528
323
  /**
529
- * attribute start children
324
+ * token list token type
530
325
  */
531
- chi?: Token$1[];
532
- }
533
-
534
- /**
535
- * Attribute end token
536
- */
537
- export declare interface AttrEndToken extends BaseToken {
326
+ ListToken = 59,
538
327
  /**
539
- * attribute end type
328
+ * addition token type
540
329
  */
541
- typ: EnumToken.AttrEndTokenType;
542
- }
543
-
544
- /**
545
- * Parenthesis start token
546
- */
547
- export declare interface ParensStartToken extends BaseToken {
330
+ Add = 60,
548
331
  /**
549
- * parenthesis start type
332
+ * multiplication token type
550
333
  */
551
- typ: EnumToken.StartParensTokenType;
552
- }
553
-
554
- /**
555
- * Parenthesis end token
556
- */
557
- export declare interface ParensEndToken extends BaseToken {
334
+ Mul = 61,
558
335
  /**
559
- * parenthesis end type
336
+ * division token type
560
337
  */
561
- typ: EnumToken.EndParensTokenType;
562
- }
563
-
564
- /**
565
- * Parenthesis token
566
- */
567
- export declare interface ParensToken extends BaseToken {
338
+ Div = 62,
568
339
  /**
569
- * parenthesis type
340
+ * subtraction token type
570
341
  */
571
- typ: EnumToken.ParensTokenType;
342
+ Sub = 63,
572
343
  /**
573
- * parenthesis children
344
+ * column combinator token type
574
345
  */
575
- chi: Token$1[];
576
- }
577
-
578
- /**
579
- * Whitespace token
580
- */
581
- export declare interface WhitespaceToken extends BaseToken {
346
+ ColumnCombinatorTokenType = 64,
582
347
  /**
583
- * whitespace type
348
+ * contain match token type
584
349
  */
585
- typ: EnumToken.WhitespaceTokenType;
350
+ ContainMatchTokenType = 65,
586
351
  /**
587
- * whitespace value
352
+ * start match token type
588
353
  */
589
- val?: string;
590
- }
591
-
592
- /**
593
- * Comment token
594
- */
595
- export declare interface CommentToken extends BaseToken {
354
+ StartMatchTokenType = 66,
596
355
  /**
597
- * comment type
356
+ * end match token type
598
357
  */
599
- typ: EnumToken.CommentTokenType;
358
+ EndMatchTokenType = 67,
600
359
  /**
601
- * comment value
360
+ * match expression token type
602
361
  */
603
- val: string;
604
- }
605
-
606
- /**
607
- * Bad comment token
608
- */
609
- export declare interface BadCommentToken extends BaseToken {
362
+ MatchExpressionTokenType = 68,
610
363
  /**
611
- * bad comment type
364
+ * namespace attribute token type
612
365
  */
613
- typ: EnumToken.BadCommentTokenType;
366
+ NameSpaceAttributeTokenType = 69,
614
367
  /**
615
- * bad comment value
368
+ * fraction token type
616
369
  */
617
- val: string;
618
- }
619
-
620
- /**
621
- * CDO comment token
622
- */
623
- export declare interface CDOCommentToken extends BaseToken {
624
- typ: EnumToken.CDOCOMMTokenType;
625
- val: string;
626
- }
627
-
628
- /**
629
- * Bad CDO comment token
630
- */
631
- export declare interface BadCDOCommentToken extends BaseToken {
370
+ FractionTokenType = 70,
632
371
  /**
633
- * bad CDO comment type
372
+ * identifier list token type
634
373
  */
635
- typ: EnumToken.BadCdoTokenType;
374
+ IdenListTokenType = 71,
636
375
  /**
637
- * bad CDO comment value
376
+ * grid template function token type
638
377
  */
639
- val: string;
640
- }
641
-
642
- /**
643
- * Include match token
644
- */
645
- export declare interface IncludeMatchToken extends BaseToken {
378
+ GridTemplateFuncTokenType = 72,
646
379
  /**
647
- * include match type
380
+ * keyframe rule node type
648
381
  */
649
- typ: EnumToken.IncludeMatchTokenType;
650
- // val: '~=';
651
- }
652
-
653
- /**
654
- * Dash match token
655
- */
656
- export declare interface DashMatchToken extends BaseToken {
382
+ KeyFramesRuleNodeType = 73,
657
383
  /**
658
- * dash match type
384
+ * class selector token type
659
385
  */
660
- typ: EnumToken.DashMatchTokenType;
661
- // val: '|=';
662
- }
663
-
664
- /**
665
- * Equal match token
666
- */
667
- export declare interface EqualMatchToken extends BaseToken {
386
+ ClassSelectorTokenType = 74,
668
387
  /**
669
- * equal match type
388
+ * universal selector token type
670
389
  */
671
- typ: EnumToken.EqualMatchTokenType;
672
- // val: '|=';
673
- }
674
-
675
- /**
676
- * Start match token
677
- */
678
- export declare interface StartMatchToken extends BaseToken {
390
+ UniversalSelectorTokenType = 75,
679
391
  /**
680
- * start match type
392
+ * child combinator token type
681
393
  */
682
- typ: EnumToken.StartMatchTokenType;
683
- // val: '^=';
684
- }
685
-
686
- /**
687
- * End match token
688
- */
689
- export declare interface EndMatchToken extends BaseToken {
394
+ ChildCombinatorTokenType = 76,// >
690
395
  /**
691
- * end match type
396
+ * descendant combinator token type
692
397
  */
693
- typ: EnumToken.EndMatchTokenType;
694
- // val: '|=';
695
- }
696
-
697
- /**
698
- * Contain match token
699
- */
700
- export declare interface ContainMatchToken extends BaseToken {
398
+ DescendantCombinatorTokenType = 77,// whitespace
701
399
  /**
702
- * contain match type
400
+ * next sibling combinator token type
703
401
  */
704
- typ: EnumToken.ContainMatchTokenType;
705
- // val: '|=';
706
- }
707
-
708
- /**
709
- * Less than token
710
- */
711
- export declare interface LessThanToken extends BaseToken {
402
+ NextSiblingCombinatorTokenType = 78,// +
712
403
  /**
713
- * less than type
404
+ * subsequent sibling combinator token type
714
405
  */
715
- typ: EnumToken.LtTokenType;
716
- }
717
-
718
- /**
719
- * Less than or equal token
720
- */
721
- export declare interface LessThanOrEqualToken extends BaseToken {
406
+ SubsequentSiblingCombinatorTokenType = 79,// ~
722
407
  /**
723
- * less than or equal type
408
+ * nesting selector token type
724
409
  */
725
- typ: EnumToken.LteTokenType;
726
- }
727
-
728
- /**
729
- * Greater than token
730
- */
731
- export declare interface GreaterThanToken extends BaseToken {
410
+ NestingSelectorTokenType = 80,// &
732
411
  /**
733
- * greater than type
412
+ * Invalid rule token type
413
+ * @deprecated
734
414
  */
735
- typ: EnumToken.GtTokenType;
736
- }
737
-
738
- /**
739
- * Greater than or equal token
740
- */
741
- export declare interface GreaterThanOrEqualToken extends BaseToken {
415
+ InvalidRuleNodeType = 81,
742
416
  /**
743
- * greater than or equal type
417
+ * invalid class selector token type
744
418
  */
745
- typ: EnumToken.GteTokenType;
746
- }
747
-
748
- /**
749
- * Column combinator token
750
- */
751
- export declare interface ColumnCombinatorToken extends BaseToken {
419
+ InvalidClassSelectorTokenType = 82,
752
420
  /**
753
- * column combinator type
421
+ * invalid attribute token type
754
422
  */
755
- typ: EnumToken.ColumnCombinatorTokenType;
756
- }
757
-
758
- /**
759
- * Pseudo class token
760
- */
761
- export declare interface PseudoClassToken extends BaseToken {
423
+ InvalidAttrTokenType = 83,
762
424
  /**
763
- * Pseudo class
425
+ * Invalid at rule token type
426
+ * @deprecated
764
427
  */
765
- typ: EnumToken.PseudoClassTokenType;
428
+ InvalidAtRuleNodeType = 84,
766
429
  /**
767
- * Pseudo class
430
+ * media query condition token type
768
431
  */
769
- val: string;
770
- }
771
-
772
- /**
773
- * Pseudo element token
774
- */
775
- export declare interface PseudoElementToken extends BaseToken {
432
+ MediaQueryConditionTokenType = 85,
776
433
  /**
777
- * Pseudo element
434
+ * media feature token type
778
435
  */
779
- typ: EnumToken.PseudoElementTokenType;
436
+ MediaFeatureTokenType = 86,
780
437
  /**
781
- * Pseudo element
438
+ * media feature only token type
782
439
  */
783
- val: string;
784
- }
785
-
786
- /**
787
- * Pseudo page token
788
- */
789
- export declare interface PseudoPageToken extends BaseToken {
440
+ OnlyTokenType = 87,
790
441
  /**
791
- * Pseudo page
442
+ * media feature not token type
792
443
  */
793
- typ: EnumToken.PseudoPageTokenType;
444
+ NotTokenType = 88,
794
445
  /**
795
- * Pseudo page
446
+ * media feature and token type
796
447
  */
797
- val: string;
798
- }
799
-
800
- /**
801
- * Pseudo class function token
802
- */
803
- export declare interface PseudoClassFunctionToken extends BaseToken {
448
+ AndTokenType = 89,
804
449
  /**
805
- * Pseudo class function
450
+ * media feature or token type
806
451
  */
807
- typ: EnumToken.PseudoClassFuncTokenType;
452
+ OrTokenType = 90,
808
453
  /**
809
- * Pseudo class function
454
+ * pseudo page token type
810
455
  */
811
- val: string;
456
+ PseudoPageTokenType = 91,
812
457
  /**
813
- * Pseudo class function
458
+ * pseudo element token type
814
459
  */
815
- chi: Token$1[];
816
- }
817
-
818
- /**
819
- * Delim token
820
- */
821
- export declare interface DelimToken extends BaseToken {
460
+ PseudoElementTokenType = 92,
822
461
  /**
823
- * Delimiter token type
462
+ * keyframe at rule node type
824
463
  */
825
- typ: EnumToken.DelimTokenType;
826
- }
827
-
828
- /**
829
- * Bad URL token
830
- */
831
- export declare interface BadUrlToken extends BaseToken {
464
+ KeyframesAtRuleNodeType = 93,
832
465
  /**
833
- * Bad URL
466
+ * invalid declaration node type.
467
+ * @deprecated
834
468
  */
835
- typ: EnumToken.BadUrlTokenType;
469
+ InvalidDeclarationNodeType = 94,
836
470
  /**
837
- * Bad URL
471
+ * composes token node type
838
472
  */
839
- val: string;
840
- }
841
-
842
- /**
843
- * URL token
844
- */
845
- export declare interface UrlToken extends BaseToken {
473
+ ComposesSelectorNodeType = 95,
846
474
  /**
847
- * URL
475
+ * css variable token type
848
476
  */
849
- typ: EnumToken.UrlTokenTokenType;
477
+ CssVariableTokenType = 96,
850
478
  /**
851
- * URL token
479
+ * css variable import token type
852
480
  */
853
- val: string;
854
- }
855
-
856
- /**
857
- * EOF token
858
- */
859
- export declare interface EOFToken extends BaseToken {
481
+ CssVariableImportTokenType = 97,
860
482
  /**
861
- * End of file
483
+ * css variable declaration map token type
862
484
  */
863
- typ: EnumToken.EOFTokenType;
864
- }
865
-
866
- /**
867
- * Important token
868
- */
869
- export declare interface ImportantToken extends BaseToken {
485
+ CssVariableDeclarationMapTokenType = 98,
870
486
  /**
871
- * Important
487
+ * media range query token type
872
488
  */
873
- typ: EnumToken.ImportantTokenType;
874
- }
875
-
876
- /**
877
- * Color token
878
- */
879
- export declare interface ColorToken extends BaseToken {
489
+ MediaRangeQueryTokenType = 99,
880
490
  /**
881
- * Color type
491
+ * invalid media query token type
882
492
  */
883
- typ: EnumToken.ColorTokenType;
493
+ InvalidMediaQueryTokenType = 100,
884
494
  /**
885
- * Color value or color function name
495
+ * supports query condition token type
886
496
  */
887
- val: string;
497
+ SupportsQueryConditionTokenType = 101,
888
498
  /**
889
- * Color kind
499
+ * supports query unary condition token type
890
500
  */
891
- kin: ColorType$1;
501
+ SupportsQueryUnaryConditionTokenType = 102,
892
502
  /**
893
- * Color components
503
+ * when else query condition token type
894
504
  */
895
- chi?: Token$1[];
896
- /**
897
- * Whether the color is relative, color-mix or color
898
- * */
899
- cal?: "rel" | "mix" | "col";
900
- }
901
-
902
- /**
903
- * Attribute token
904
- */
905
- export declare interface AttrToken extends BaseToken {
505
+ WhenElseQueryConditionTokenType = 103,
906
506
  /**
907
- * Attribute type
507
+ * when else query unary condition token type
908
508
  */
909
- typ: EnumToken.AttrTokenType;
509
+ WhenElseUnaryConditionTokenType = 104,
910
510
  /**
911
- * Children
511
+ * container style range token type
912
512
  */
913
- chi: Token$1[];
914
- }
915
-
916
- /**
917
- * Invalid attribute token
918
- */
919
- export declare interface InvalidAttrToken extends BaseToken {
513
+ ContainerStyleRangeTokenType = 105,
920
514
  /**
921
- * Attribute type
515
+ * '*'
922
516
  */
923
- typ: EnumToken.InvalidAttrTokenType;
517
+ Star = 106,
924
518
  /**
925
- * Children
519
+ * '+'
926
520
  */
927
- chi: Token$1[];
928
- }
929
-
930
- /**
931
- * Child combinator token
932
- */
933
- export declare interface ChildCombinatorToken extends BaseToken {
934
- typ: EnumToken.ChildCombinatorTokenType;
935
- }
936
-
937
- /**
938
- * Media feature token
939
- */
940
- export declare interface MediaFeatureToken extends BaseToken {
521
+ Plus = 107,
941
522
  /**
942
- * Media feature type
523
+ * '~'
943
524
  */
944
- typ: EnumToken.MediaFeatureTokenType;
525
+ Tilda = 108,
945
526
  /**
946
- * Media feature
527
+ * '|'
947
528
  */
948
- val: string;
949
- }
950
-
951
- /**
952
- * Media feature not token
953
- */
954
- export declare interface NotToken extends BaseToken {
529
+ Pipe = 109,
955
530
  /**
956
- * Media feature not type
531
+ * '::'
957
532
  */
958
- typ: EnumToken.NotTokenType;
533
+ DoubleColonTokenType = 110,
959
534
  /**
960
- * Media feature
535
+ * math function token type such as'calc(' etc.
961
536
  */
962
- val: Token$1;
963
- }
964
-
965
- /**
966
- * Media feature only token
967
- */
968
- export declare interface MediaFeatureOnlyToken extends BaseToken {
537
+ MathFunctionTokenType = 111,
969
538
  /**
970
- * Media feature only type
539
+ * transform function token type such as 'translate(' etc.
971
540
  */
972
- typ: EnumToken.OnlyTokenType;
541
+ TransformFunctionTokenType = 112,
973
542
  /**
974
- * Media feature
543
+ * when function token type such as 'supports(' etc.
975
544
  */
976
- val: Token$1;
977
- }
978
-
979
- /**
980
- * Media feature and token
981
- */
982
- export declare interface AndToken extends BaseToken {
545
+ WhenElseFunctionTokenType = 113,
983
546
  /**
984
- * Media feature and type
547
+ * general enclosed function token type 'font-tech(' etc.
985
548
  */
986
- typ: EnumToken.AndTokenType;
987
- }
988
-
989
- /**
990
- * Media feature or token
991
- */
992
- export declare interface OrToken extends BaseToken {
549
+ GeneralEnclosedFunctionTokenType = 114,
993
550
  /**
994
- * Media feature or type
551
+ * supports function token type such as 'at-rule('
995
552
  */
996
- typ: EnumToken.OrTokenType;
997
- }
998
-
999
- /**
1000
- * Media query condition token
1001
- */
1002
- export declare interface MediaQueryUnaryFeatureToken extends BaseToken {
553
+ SupportsFunctionTokenType = 115,
1003
554
  /**
1004
- * Media query condition type
555
+ * container function token type such as 'style(' or 'scroll-state('
1005
556
  */
1006
- typ: EnumToken.MediaQueryUnaryFeatureTokenType;
557
+ ContainerFunctionTokenType = 116,
1007
558
  /**
1008
- * Media feature
559
+ * unrecognized node token type
1009
560
  */
1010
- l: Token$1;
561
+ RawNodeTokenType = 117,
1011
562
  /**
1012
- * Media feature
1013
- */
1014
- r: Token$1[];
1015
- }
1016
-
1017
- export declare interface SupportsQueryUnaryConditionToken extends BaseToken {
563
+ * media query boolean token type
564
+ * at-rule media not ()
565
+ * at-rule media only ()
566
+ */
567
+ MediaQueryUnaryFeatureTokenType = 118,
1018
568
  /**
1019
- * Supports query condition type
569
+ * grid template function token type such as 'minmax('
1020
570
  */
1021
- typ: EnumToken.SupportsQueryUnaryConditionTokenType;
571
+ GridTemplateFuncTokenDefType = 119,
1022
572
  /**
1023
- * Media feature
573
+ * image function token type such as 'image(' etc.
1024
574
  */
1025
- l: Token$1;
575
+ ImageFunctionTokenDefType = 120,
1026
576
  /**
1027
- * Media feature
577
+ * function token type such as 'view(' etc.
1028
578
  */
1029
- r: Token$1[];
1030
- }
1031
-
1032
- export declare interface SupportsQueryConditionToken extends BaseToken {
579
+ TimelineFunctionTokenDefType = 121,
1033
580
  /**
1034
- * Supports query condition type
581
+ * function token type
1035
582
  */
1036
- typ: EnumToken.SupportsQueryConditionTokenType;
583
+ FunctionTokenDefType = 122,
1037
584
  /**
1038
- * Media feature
585
+ * timing function token type such as 'linear(' etc.
1039
586
  */
1040
- op: AndToken | OrToken;
587
+ TimingFunctionTokenDefType = 123,
1041
588
  /**
1042
- * Media feature
589
+ * color function token type such as 'rgb(' etc.
1043
590
  */
1044
- l: Token$1[];
591
+ ColorFunctionTokenDefType = 124,
1045
592
  /**
1046
- * Media feature
593
+ * math function token type such as 'calc(' etc.
1047
594
  */
1048
- r: Token$1[];
1049
- }
1050
-
1051
- export declare interface WhenElseQueryConditionToken extends BaseToken {
595
+ MathFunctionTokenDefType = 125,
1052
596
  /**
1053
- * When else query condition type
597
+ * container function token type such as 'style(' or 'scroll-state('
1054
598
  */
1055
- typ: EnumToken.WhenElseQueryConditionTokenType;
599
+ ContainerFunctionTokenDefType = 126,
1056
600
  /**
1057
- * Media feature
601
+ * url function token type 'url('
1058
602
  */
1059
- op: AndToken | OrToken;
603
+ UrlFunctionTokenDefType = 127,
1060
604
  /**
1061
- * Media feature
605
+ * pseudo-class function token type
1062
606
  */
1063
- l: Token$1[];
607
+ PseudoClassFunctionTokenDefType = 128,
1064
608
  /**
1065
- * Media feature
609
+ * transform function token type such as 'translate(' etc.
1066
610
  */
1067
- r: Token$1[];
1068
- }
1069
-
1070
- export declare interface WhenElseUnaryConditionToken extends BaseToken {
611
+ TransformFunctionTokenDefType = 129,
1071
612
  /**
1072
- * When else query condition type
613
+ * when function token type such as 'supports(' or 'media('
1073
614
  */
1074
- typ: EnumToken.WhenElseUnaryConditionTokenType;
615
+ WhenElseFunctionTokenDefType = 130,
1075
616
  /**
1076
- * Media feature
617
+ * general enclosed function token type 'font-tech(' etc.
1077
618
  */
1078
- l: Token$1;
619
+ GeneralEnclosedFunctionTokenDefType = 131,
1079
620
  /**
1080
- * Media feature
621
+ * supports function token type 'font-tech('
1081
622
  */
1082
- r: Token$1[];
1083
- }
1084
-
1085
- export declare interface MediaQueryConditionToken extends BaseToken {
623
+ SupportsFunctionTokenDefType = 132,
1086
624
  /**
1087
- * Media query condition type
625
+ * CDOCOMMTokenType not allowed in this context
1088
626
  */
1089
- typ: EnumToken.MediaQueryConditionTokenType;
627
+ InvalidCommentTokenType = 133,
1090
628
  /**
1091
- * Media feature
629
+ * custom function token type '--function-name('
1092
630
  */
1093
- l: Token$1[];
631
+ CustomFunctionTokenDefType = 134,
1094
632
  /**
1095
- * Media feature
633
+ * custom function token type
1096
634
  */
1097
- op:
1098
- | ColonToken
1099
- | DelimToken
1100
- | GreaterThanToken
1101
- | LessThanToken
1102
- | GreaterThanOrEqualToken
1103
- | LessThanOrEqualToken
1104
- | AndToken
1105
- | OrToken;
635
+ CustomFunctionTokenType = 135,
1106
636
  /**
1107
- * Media feature
637
+ * function tokens such as 'var(', 'env(', 'if(')
1108
638
  */
1109
- r: Token$1[];
1110
- }
1111
-
1112
- export declare interface IfConditionToken extends BaseToken {
639
+ WildCardFunctionTokenDefType = 136,
1113
640
  /**
1114
- * If condition type
641
+ * function such as 'var()', 'env()', 'if()'
1115
642
  */
1116
- typ: EnumToken.IfConditionTokenType;
643
+ WildCardFunctionTokenType = 137,
1117
644
  /**
1118
- * condition left handle
645
+ * if condition token
1119
646
  */
1120
- l: Token$1[];
647
+ IfConditionTokenType = 138,
1121
648
  /**
1122
- * condition value
649
+ * if-Else condition token
1123
650
  */
1124
- r: Token$1[];
1125
- }
1126
-
1127
- export declare interface IfElseConditionToken extends BaseToken {
651
+ IfElseConditionTokenType = 139,
1128
652
  /**
1129
- * If else condition type
653
+ * wrapped values token type like {Arial, sans-serif}
1130
654
  */
1131
- typ: EnumToken.IfElseConditionTokenType;
655
+ WrappedValuesTokenType = 140,
1132
656
  /**
1133
- * condition left handle
657
+ * alias for time token type
1134
658
  */
1135
- l: IfConditionToken;
659
+ Time = 25,
1136
660
  /**
1137
- * condition value
661
+ * alias for identifier token type
1138
662
  */
1139
- r: IfConditionToken;
1140
- }
1141
-
1142
- export declare interface ContainerStyleRangeToken extends BaseToken {
1143
- typ: EnumToken.ContainerStyleRangeTokenType;
1144
- l: Token$1[];
1145
- op: Token$1[];
1146
- r: Token$1[];
1147
- }
1148
-
1149
- export declare interface MediaRangeQueryToken extends BaseToken {
1150
- typ: EnumToken.MediaRangeQueryTokenType;
1151
- l: Token$1[];
1152
- val: Token$1[];
1153
- op1: LessThanToken | GreaterThanToken | LessThanOrEqualToken | GreaterThanOrEqualToken;
1154
- op2: LessThanToken | GreaterThanToken | LessThanOrEqualToken | GreaterThanOrEqualToken;
1155
- r: Token$1[];
1156
- }
1157
-
1158
- export declare interface InvalidMediaQueryToken extends BaseToken {
1159
- typ: EnumToken.InvalidMediaQueryTokenType;
1160
- chi: Token$1[];
1161
- }
1162
-
1163
- /**
1164
- * Descendant combinator token
1165
- */
1166
- export declare interface DescendantCombinatorToken extends BaseToken {
1167
- typ: EnumToken.DescendantCombinatorTokenType;
1168
- }
1169
-
1170
- /**
1171
- * Next sibling combinator token
1172
- */
1173
- export declare interface NextSiblingCombinatorToken extends BaseToken {
1174
- typ: EnumToken.NextSiblingCombinatorTokenType;
1175
- }
1176
-
1177
- /**
1178
- * Subsequent sibling combinator token
1179
- */
1180
- export declare interface SubsequentCombinatorToken extends BaseToken {
1181
- typ: EnumToken.SubsequentSiblingCombinatorTokenType;
1182
- }
1183
-
1184
- /**
1185
- * Add token
1186
- */
1187
- export declare interface AddToken extends BaseToken {
1188
- typ: EnumToken.Add;
1189
- }
1190
-
1191
- /**
1192
- * Sub token
1193
- */
1194
- export declare interface SubToken extends BaseToken {
1195
- typ: EnumToken.Sub;
1196
- }
1197
-
1198
- /**
1199
- * Div token
1200
- */
1201
- export declare interface DivToken extends BaseToken {
1202
- typ: EnumToken.Div;
1203
- }
1204
-
1205
- /**
1206
- * Mul token
1207
- */
1208
- export declare interface MulToken extends BaseToken {
663
+ Iden = 7,
1209
664
  /**
1210
- * Type
665
+ * alias for end of file token type
1211
666
  */
1212
- typ: EnumToken.Mul;
1213
- }
1214
-
1215
- /**
1216
- * Wrapped values token like {Arial, Helvetica, sans-serif}
1217
- */
1218
- export declare interface WrappedValuesToken extends BaseToken {
667
+ EOF = 48,
1219
668
  /**
1220
- * Type
669
+ * alias for hash token type
1221
670
  */
1222
- typ: EnumToken.WrappedValuesTokenType;
671
+ Hash = 28,
1223
672
  /**
1224
- * Children
673
+ * alias for flex token type
1225
674
  */
1226
- chi: Token$1[];
1227
- }
1228
-
1229
- /**
1230
- * Unary expression token
1231
- */
1232
- export declare interface UnaryExpression extends BaseToken {
675
+ Flex = 58,
1233
676
  /**
1234
- * Type
677
+ * alias for angle token type
1235
678
  */
1236
- typ: EnumToken.UnaryExpressionTokenType;
679
+ Angle = 24,
1237
680
  /**
1238
- * Sign
681
+ * alias for color token type
1239
682
  */
1240
- sign: EnumToken.Add | EnumToken.Sub;
683
+ Color = 50,
1241
684
  /**
1242
- * Value
685
+ * alias for comma token type
1243
686
  */
1244
- val: UnaryExpressionNode;
1245
- }
1246
-
1247
- /**
1248
- * Fraction token
1249
- */
1250
- export declare interface FractionToken extends BaseToken {
1251
- typ: EnumToken.FractionTokenType;
1252
- l: NumberToken;
1253
- r: NumberToken;
1254
- }
1255
-
1256
- /**
1257
- * Binary expression token
1258
- */
1259
- export declare interface BinaryExpressionToken extends BaseToken {
1260
- typ: EnumToken.BinaryExpressionTokenType;
1261
- op: EnumToken.Add | EnumToken.Sub | EnumToken.Div | EnumToken.Mul;
1262
- l: BinaryExpressionNode | Token$1;
1263
- r: BinaryExpressionNode | Token$1;
1264
- }
1265
-
1266
- /**
1267
- * Match expression token
1268
- */
1269
- export declare interface MatchExpressionToken extends BaseToken {
1270
- typ: EnumToken.MatchExpressionTokenType;
1271
- op: EqualMatchToken | DashMatchToken | StartMatchToken | ContainMatchToken | EndMatchToken | IncludeMatchToken;
1272
- l: Token$1;
1273
- r: Token$1;
1274
- attr?: "i" | "s";
1275
- }
1276
-
1277
- /**
1278
- * Name space attribute token
1279
- */
1280
- export declare interface NameSpaceAttributeToken extends BaseToken {
1281
- typ: EnumToken.NameSpaceAttributeTokenType;
1282
- l?: Token$1;
1283
- r: Token$1;
1284
- }
1285
-
1286
- /**
1287
- * List token
1288
- */
1289
- export declare interface ListToken extends BaseToken {
1290
- typ: EnumToken.ListToken;
1291
- chi: Token$1[];
1292
- }
1293
-
1294
- /**
1295
- * Composes selector token
1296
- */
1297
- export declare interface ComposesSelectorToken extends BaseToken {
1298
- typ: EnumToken.ComposesSelectorTokenType;
1299
- l: Token$1[];
1300
- r: Token$1 | null;
1301
- }
1302
-
1303
- /**
1304
- * Css variable token
1305
- */
1306
- export declare interface CssVariableToken$1 extends BaseToken {
1307
- typ: EnumToken.CssVariableTokenType;
1308
- nam: string;
1309
- val: Token$1[];
1310
- }
1311
-
1312
- export declare interface CssVariableImportTokenType$1 extends BaseToken {
1313
- typ: EnumToken.CssVariableImportTokenType;
1314
- nam: string;
1315
- val: Token$1[];
1316
- }
1317
-
1318
- export declare interface CssVariableMapTokenType extends BaseToken {
1319
- typ: EnumToken.CssVariableDeclarationMapTokenType;
1320
- vars: Token$1[];
1321
- from: Token$1[];
1322
- }
1323
-
1324
- /**
1325
- * Function definition token
1326
- */
1327
- export declare interface FunctionDefToken extends BaseToken {
1328
- typ:
1329
- | EnumToken.FunctionDefTokenType
1330
- | EnumToken.UrlFunctionTokenDefType
1331
- | EnumToken.GridTemplateFuncTokenDefType
1332
- | EnumToken.ImageFunctionTokenDefType
1333
- | EnumToken.TimelineFunctionTokenDefType
1334
- | EnumToken.TimingFunctionTokenDefType
1335
- | EnumToken.ColorFunctionTokenDefType
1336
- | EnumToken.MathFunctionTokenDefType
1337
- | EnumToken.PseudoClassFunctionTokenDefType
1338
- | EnumToken.TransformFunctionTokenDefType;
1339
- nam: string;
1340
- val: string;
1341
- }
1342
-
1343
- /**
1344
- * Raw node token
1345
- */
1346
- export declare interface RawNodeToken extends BaseToken, EnumAstNodeStatus$1 {
1347
- typ: EnumToken.RawNodeTokenType;
1348
- val: Token$1[];
1349
- }
1350
-
1351
- /**
1352
- * Unary expression node
1353
- */
1354
- export declare type UnaryExpressionNode =
1355
- | BinaryExpressionNode
1356
- | NumberToken
1357
- | DimensionToken
1358
- | TimeToken
1359
- | LengthToken
1360
- | AngleToken
1361
- | FrequencyToken;
1362
-
1363
- /**
1364
- * Binary expression node
1365
- */
1366
- export declare type BinaryExpressionNode =
1367
- | NumberToken
1368
- | DimensionToken
1369
- | PercentageToken
1370
- | FlexToken
1371
- | FractionToken
1372
- | AngleToken
1373
- | LengthToken
1374
- | FrequencyToken
1375
- | BinaryExpressionToken
1376
- | FunctionToken
1377
- | ParensToken;
1378
-
1379
- /**
1380
- * Token
1381
- */
1382
- export declare type Token$1 =
1383
- | InvalidClassSelectorToken
1384
- | InvalidAttrToken
1385
- | LiteralToken
1386
- | IdentToken
1387
- | IdentListToken
1388
- | DashedIdentToken
1389
- | WrappedValuesToken
1390
- | CommaToken
1391
- | ColonToken
1392
- | DoubleColonToken
1393
- | SemiColonToken
1394
- | ClassSelectorToken
1395
- | UniversalSelectorToken
1396
- | ChildCombinatorToken
1397
- | DescendantCombinatorToken
1398
- | NextSiblingCombinatorToken
1399
- | SubsequentCombinatorToken
1400
- | ColumnCombinatorToken
1401
- | NestingSelectorToken
1402
- | WhenElseUnaryConditionToken
1403
- | WhenElseQueryConditionToken
1404
- | SupportsQueryUnaryConditionToken
1405
- | SupportsQueryConditionToken
1406
- | MediaQueryConditionToken
1407
- | MediaFeatureToken
1408
- | MediaQueryUnaryFeatureToken
1409
- | IfConditionToken
1410
- | IfElseConditionToken
1411
- | NotToken
1412
- | MediaFeatureOnlyToken
1413
- | AndToken
1414
- | OrToken
1415
- | MediaRangeQueryToken
1416
- | ContainerStyleRangeToken
1417
- | AstDeclaration
1418
- | NumberToken
1419
- | AtRuleToken
1420
- | PercentageToken
1421
- | FlexToken
1422
- | FunctionURLToken
1423
- | FunctionImageToken
1424
- | TimingFunctionToken
1425
- | TimelineFunctionToken
1426
- | FunctionToken
1427
- | GridTemplateFuncToken
1428
- | DimensionToken
1429
- | LengthToken
1430
- | AngleToken
1431
- | StringToken
1432
- | TimeToken
1433
- | FrequencyToken
1434
- | ResolutionToken
1435
- | UnclosedStringToken
1436
- | HashToken
1437
- | BadStringToken
1438
- | BlockStartToken
1439
- | BlockEndToken
1440
- | AttrStartToken
1441
- | AttrEndToken
1442
- | ParensStartToken
1443
- | ParensEndToken
1444
- | ParensToken
1445
- | CDOCommentToken
1446
- | BadCDOCommentToken
1447
- | CommentToken
1448
- | BadCommentToken
1449
- | WhitespaceToken
1450
- | IncludeMatchToken
1451
- | StartMatchToken
1452
- | EndMatchToken
1453
- | ContainMatchToken
1454
- | MatchExpressionToken
1455
- | NameSpaceAttributeToken
1456
- | ComposesSelectorToken
1457
- | CssVariableToken$1
1458
- | DashMatchToken
1459
- | EqualMatchToken
1460
- | LessThanToken
1461
- | LessThanOrEqualToken
1462
- | GreaterThanToken
1463
- | GreaterThanOrEqualToken
1464
- | ListToken
1465
- | PseudoClassToken
1466
- | PseudoPageToken
1467
- | PseudoElementToken
1468
- | PseudoClassFunctionToken
1469
- | DelimToken
1470
- | BinaryExpressionToken
1471
- | UnaryExpression
1472
- | FractionToken
1473
- | AddToken
1474
- | SubToken
1475
- | DivToken
1476
- | MulToken
1477
- | BadUrlToken
1478
- | UrlToken
1479
- | ImportantToken
1480
- | ColorToken
1481
- | AttrToken
1482
- | FunctionDefToken
1483
- | RawNodeToken
1484
- | InvalidMediaQueryToken
1485
- | EOFToken;
1486
-
1487
- /**
1488
- * Syntax validation enum
1489
- */
1490
- declare enum SyntaxValidationResult {
1491
- /** valid syntax */
1492
- Valid = 0,
1493
- /** drop invalid syntax */
1494
- Drop = 1,
1495
- /** preserve unknown at-rules, declarations and pseudo-classes */
1496
- Lenient = 2
1497
- }
1498
- /**
1499
- * Enum of node statuses
1500
- */
1501
- declare enum EnumAstNodeStatus$1 {
687
+ Comma = 9,
1502
688
  /**
1503
- * Node passed validation
689
+ * alias for string token type
1504
690
  */
1505
- Validated = 0,
691
+ String = 20,
1506
692
  /**
1507
- * Node is invalid
693
+ * alias for length token type
1508
694
  */
1509
- Invalid = 1,
695
+ Length = 23,
1510
696
  /**
1511
- * node is not validated
697
+ * alias for number token type
1512
698
  */
1513
- Unvalidated = 2,
699
+ Number = 12,
1514
700
  /**
1515
- * Node did not pass validation, but is preserved.
701
+ * alias for percentage token type
1516
702
  */
1517
- ValidationFailed = 3,
703
+ Perc = 14,
1518
704
  /**
1519
- * Parsing the node is not supported yet or the node syntax definition does not exist.
705
+ * alias for literal token type
1520
706
  */
1521
- Unknown = 4,
707
+ Literal = 6,
1522
708
  /**
1523
- * Failed to parse the node.
709
+ * alias for comment token type
1524
710
  */
1525
- Unparsed = 5,
711
+ Comment = 0,
1526
712
  /**
1527
- * Node is disallowed in the context
713
+ * alias for url function token type
1528
714
  */
1529
- Disallowed = 6,
715
+ UrlFunc = 18,
1530
716
  /**
1531
- * Node is malformed
717
+ * alias for dimension token type
1532
718
  */
1533
- Malformed = 7
1534
- }
1535
- /**
1536
- * Enum of validation levels
1537
- * @deprecated
1538
- */
1539
- declare enum ValidationLevel {
719
+ Dimension = 22,
1540
720
  /**
1541
- * disable validation
721
+ * alias for frequency token type
1542
722
  */
1543
- None = 0,
723
+ Frequency = 26,
1544
724
  /**
1545
- * validate selectors
725
+ * alias for resolution token type
1546
726
  */
1547
- Selector = 1,
727
+ Resolution = 27,
1548
728
  /**
1549
- * validate at-rules
729
+ * alias for whitespace token type
1550
730
  */
1551
- AtRule = 2,
731
+ Whitespace = 36,
1552
732
  /**
1553
- * validate declarations
733
+ * alias for identifier list token type
1554
734
  */
1555
- Declaration = 4,
735
+ IdenList = 71,
1556
736
  /**
1557
- * validate selectors and at-rules
737
+ * alias for dashed identifier token type
1558
738
  */
1559
- Default = 3,// selectors + at-rules
739
+ DashedIden = 8,
1560
740
  /**
1561
- * validate selectors, at-rules and declarations
741
+ * alias for grid template function token type
1562
742
  */
1563
- All = 7,// selectors + at-rules + declarations
743
+ GridTemplateFunc = 72,
1564
744
  /**
1565
- * Report only. Apply validation and report nodes that are marked as invalid
745
+ * alias for image function token type
1566
746
  */
1567
- ReportOnly = 8
1568
- }
1569
- /**
1570
- * Enum of all token types
1571
- */
1572
- declare enum EnumToken {
747
+ ImageFunc = 19,
1573
748
  /**
1574
- * comment token
749
+ * alias for comment node type
1575
750
  */
1576
- CommentTokenType = 0,
751
+ CommentNodeType = 0,
1577
752
  /**
1578
- * cdata section token
753
+ * alias for cdata section node type
1579
754
  */
1580
- CDOCOMMTokenType = 1,
755
+ CDOCOMMNodeType = 1,
1581
756
  /**
1582
- * style sheet node type
757
+ * alias for timing function token type
1583
758
  */
1584
- StyleSheetNodeType = 2,
759
+ TimingFunction = 17,
1585
760
  /**
1586
- * at-rule node type
761
+ * alias for timeline function token type
1587
762
  */
1588
- AtRuleNodeType = 3,
763
+ TimelineFunction = 16
764
+ }
765
+ /**
766
+ * Supported color types enum
767
+ */
768
+ declare enum ColorType$1 {
1589
769
  /**
1590
- * rule node type
770
+ * deprecated system colors
1591
771
  */
1592
- RuleNodeType = 4,
772
+ SYS = 0,
1593
773
  /**
1594
- * declaration node type
774
+ * deprecated system colors
1595
775
  */
1596
- DeclarationNodeType = 5,
776
+ DPSYS = 1,
1597
777
  /**
1598
- * literal token type
778
+ * named colors
1599
779
  */
1600
- LiteralTokenType = 6,
780
+ LIT = 2,
1601
781
  /**
1602
- * identifier token type
782
+ * colors as hex values
1603
783
  */
1604
- IdenTokenType = 7,
784
+ HEX = 3,
1605
785
  /**
1606
- * dashed identifier token type
786
+ * colors as rgb values
1607
787
  */
1608
- DashedIdenTokenType = 8,
788
+ RGBA = 4,
1609
789
  /**
1610
- * comma token type
790
+ * colors using rgb
1611
791
  */
1612
- CommaTokenType = 9,
792
+ HSLA = 5,
1613
793
  /**
1614
- * colon token type
794
+ * colors using hwb
1615
795
  */
1616
- ColonTokenType = 10,
796
+ HWB = 6,
1617
797
  /**
1618
- * semicolon token type
798
+ * colors using cmyk
1619
799
  */
1620
- SemiColonTokenType = 11,
800
+ CMYK = 7,
1621
801
  /**
1622
- * number token type
1623
- */
1624
- NumberTokenType = 12,
802
+ * colors using oklab
803
+ * */
804
+ OKLAB = 8,
1625
805
  /**
1626
- * at-rule token type
1627
- */
1628
- AtRuleTokenType = 13,
806
+ * colors using oklch
807
+ * */
808
+ OKLCH = 9,
1629
809
  /**
1630
- * percentage token type
810
+ * colors using lab
1631
811
  */
1632
- PercentageTokenType = 14,
812
+ LAB = 10,
1633
813
  /**
1634
- * function token type
814
+ * colors using lch
1635
815
  */
1636
- FunctionTokenType = 15,
816
+ LCH = 11,
1637
817
  /**
1638
- * timeline function token type
818
+ * colors using color() function
1639
819
  */
1640
- TimelineFunctionTokenType = 16,
820
+ COLOR = 12,
1641
821
  /**
1642
- * timing function token type
822
+ * color using srgb
1643
823
  */
1644
- TimingFunctionTokenType = 17,
824
+ SRGB = 13,
1645
825
  /**
1646
- * url function token type
826
+ * color using prophoto-rgb
1647
827
  */
1648
- UrlFunctionTokenType = 18,
828
+ PROPHOTO_RGB = 14,
1649
829
  /**
1650
- * image function token type
830
+ * color using a98-rgb
1651
831
  */
1652
- ImageFunctionTokenType = 19,
832
+ A98_RGB = 15,
1653
833
  /**
1654
- * string token type
834
+ * color using rec2020
1655
835
  */
1656
- StringTokenType = 20,
836
+ REC2020 = 16,
1657
837
  /**
1658
- * unclosed string token type
838
+ * color using display-p3
1659
839
  */
1660
- UnclosedStringTokenType = 21,
840
+ DISPLAY_P3 = 17,
1661
841
  /**
1662
- * dimension token type
842
+ * color using srgb-linear
1663
843
  */
1664
- DimensionTokenType = 22,
844
+ SRGB_LINEAR = 18,
1665
845
  /**
1666
- * length token type
846
+ * color using xyz-d50
1667
847
  */
1668
- LengthTokenType = 23,
848
+ XYZ_D50 = 19,
1669
849
  /**
1670
- * angle token type
850
+ * color using xyz-d65
1671
851
  */
1672
- AngleTokenType = 24,
852
+ XYZ_D65 = 20,
1673
853
  /**
1674
- * time token type
854
+ * light-dark() color function
1675
855
  */
1676
- TimeTokenType = 25,
856
+ LIGHT_DARK = 21,
1677
857
  /**
1678
- * frequency token type
858
+ * color-mix() color function
1679
859
  */
1680
- FrequencyTokenType = 26,
860
+ COLOR_MIX = 22,
1681
861
  /**
1682
- * resolution token type
862
+ * non-standard color
1683
863
  */
1684
- ResolutionTokenType = 27,
864
+ NON_STD = 23,
1685
865
  /**
1686
- * hash token type
866
+ * custom color
1687
867
  */
1688
- HashTokenType = 28,
868
+ CUSTOM_COLOR = 24,
1689
869
  /**
1690
- * block start token type
870
+ * alpha() color function
1691
871
  */
1692
- BlockStartTokenType = 29,
872
+ ALPHA = 25,
1693
873
  /**
1694
- * block end token type
874
+ * color using display-p3-linear
1695
875
  */
1696
- BlockEndTokenType = 30,
876
+ DISPLAY_P3_LINEAR = 26,
1697
877
  /**
1698
- * attribute start token type
878
+ * Contrast color
1699
879
  */
1700
- AttrStartTokenType = 31,
880
+ CONTRAST_COLOR = 27,
1701
881
  /**
1702
- * attribute end token type
882
+ * color layers
1703
883
  */
1704
- AttrEndTokenType = 32,
884
+ COLOR_LAYERS = 28,
1705
885
  /**
1706
- * start parentheses token type
886
+ * alias for rgba
1707
887
  */
1708
- StartParensTokenType = 33,
888
+ RGB = 4,
1709
889
  /**
1710
- * end parentheses token type
890
+ * alias for hsl
1711
891
  */
1712
- EndParensTokenType = 34,
892
+ HSL = 5,
1713
893
  /**
1714
- * parentheses token type
894
+ * alias for xyz-d65
1715
895
  */
1716
- ParensTokenType = 35,
896
+ XYZ = 20,
1717
897
  /**
1718
- * whitespace token type
898
+ * alias for cmyk
1719
899
  */
1720
- WhitespaceTokenType = 36,
900
+ DEVICE_CMYK = 7
901
+ }
902
+ /**
903
+ * Supported module case transform
904
+ */
905
+ declare enum ModuleCaseTransformEnum {
1721
906
  /**
1722
- * include match token type
907
+ * export class names as-is
1723
908
  */
1724
- IncludeMatchTokenType = 37,
909
+ IgnoreCase = 1,
1725
910
  /**
1726
- * dash match token type
911
+ * transform mapping key name to camel case
1727
912
  */
1728
- DashMatchTokenType = 38,
913
+ CamelCase = 2,
1729
914
  /**
1730
- * equal match token type
915
+ * transform class names and mapping key name to camel case
1731
916
  */
1732
- EqualMatchTokenType = 39,
917
+ CamelCaseOnly = 4,
1733
918
  /**
1734
- * less than token type
919
+ * transform mapping key name to dash case
1735
920
  */
1736
- LtTokenType = 40,
921
+ DashCase = 8,
1737
922
  /**
1738
- * less than or equal to token type
923
+ * transform class names and mapping key name to dash case
1739
924
  */
1740
- LteTokenType = 41,
925
+ DashCaseOnly = 16
926
+ }
927
+ /**
928
+ * Supported module scope
929
+ */
930
+ declare enum ModuleScopeEnumOptions {
1741
931
  /**
1742
- * greater than token type
932
+ * use the global scope
1743
933
  */
1744
- GtTokenType = 42,
934
+ Global = 32,
1745
935
  /**
1746
- * greater than or equal to token type
936
+ * use the local scope
1747
937
  */
1748
- GteTokenType = 43,
938
+ Local = 64,
1749
939
  /**
1750
- * pseudo-class token type
940
+ * do not allow selector without an id or class
1751
941
  */
1752
- PseudoClassTokenType = 44,
942
+ Pure = 128,
1753
943
  /**
1754
- * pseudo-class function token type
944
+ * export using ICSS module format
1755
945
  */
1756
- PseudoClassFuncTokenType = 45,
946
+ ICSS = 256,
1757
947
  /**
1758
- * delimiter token type
1759
- */
1760
- DelimTokenType = 46,
1761
- /**
1762
- * URL token type
1763
- */
1764
- UrlTokenTokenType = 47,
1765
- /**
1766
- * end of file token type
1767
- */
1768
- EOFTokenType = 48,
1769
- /**
1770
- * important token type
948
+ * use the shortest name possible. pattern is ignored.
949
+ * it will produce names such as
950
+ *
951
+ * ```css
952
+ * .a {
953
+ * content: 'a';
954
+ * }
955
+ *
956
+ * .b {
957
+ * content: 'b';
958
+ * }
959
+ *
960
+ * .c {
961
+ * content: 'c';
962
+ * }
963
+ * ...
964
+ * ```
1771
965
  */
1772
- ImportantTokenType = 49,
966
+ Shortest = 512
967
+ }
968
+
969
+ declare const LOC: unique symbol;
970
+ declare const RAW: unique symbol;
971
+ declare const STATE: unique symbol;
972
+ declare const ROOT: unique symbol;
973
+ declare const ERRORS: unique symbol;
974
+ declare const TOKENS: unique symbol;
975
+ declare const PARENT: unique symbol;
976
+ declare const OPTIMIZED: unique symbol;
977
+
978
+ /**
979
+ * Literal token
980
+ */
981
+ export declare interface LiteralToken extends BaseToken {
1773
982
  /**
1774
- * color token type
983
+ * literal type
1775
984
  */
1776
- ColorTokenType = 50,
985
+ typ: EnumToken.LiteralTokenType;
1777
986
  /**
1778
- * attribute token type
987
+ * literal value
1779
988
  */
1780
- AttrTokenType = 51,
989
+ val: string;
990
+ }
991
+
992
+ /**
993
+ * Class selector token
994
+ */
995
+ export declare interface ClassSelectorToken extends BaseToken {
1781
996
  /**
1782
- * bad comment token type
997
+ * class selector type
1783
998
  */
1784
- BadCommentTokenType = 52,
999
+ typ: EnumToken.ClassSelectorTokenType;
1785
1000
  /**
1786
- * bad cdo token type
1001
+ * class name
1787
1002
  */
1788
- BadCdoTokenType = 53,
1003
+ val: string;
1004
+ }
1005
+
1006
+ /**
1007
+ * Invalid class selector token
1008
+ */
1009
+ export declare interface InvalidClassSelectorToken extends BaseToken {
1789
1010
  /**
1790
- * bad URL token type
1011
+ * invalid class selector type
1791
1012
  */
1792
- BadUrlTokenType = 54,
1013
+ typ: EnumToken.InvalidClassSelectorTokenType;
1793
1014
  /**
1794
- * bad string token type
1015
+ * invalid class name
1795
1016
  */
1796
- BadStringTokenType = 55,
1017
+ val: string;
1018
+ }
1019
+
1020
+ /**
1021
+ * Universal selector token
1022
+ */
1023
+ export declare interface UniversalSelectorToken extends BaseToken {
1797
1024
  /**
1798
- * binary expression token type
1025
+ * universal selector type
1799
1026
  */
1800
- BinaryExpressionTokenType = 56,
1027
+ typ: EnumToken.UniversalSelectorTokenType;
1028
+ }
1029
+
1030
+ /**
1031
+ * Ident token
1032
+ */
1033
+ export declare interface IdentToken extends BaseToken {
1801
1034
  /**
1802
- * unary expression token type
1035
+ * ident type
1803
1036
  */
1804
- UnaryExpressionTokenType = 57,
1037
+ typ: EnumToken.IdenTokenType;
1805
1038
  /**
1806
- * flex token type
1039
+ * ident value
1807
1040
  */
1808
- FlexTokenType = 58,
1041
+ val: string;
1042
+ }
1043
+
1044
+ /**
1045
+ * Ident list token
1046
+ */
1047
+ export declare interface IdentListToken extends BaseToken {
1809
1048
  /**
1810
- * token list token type
1049
+ * ident list type
1811
1050
  */
1812
- ListToken = 59,
1051
+ typ: EnumToken.IdenListTokenType;
1813
1052
  /**
1814
- * addition token type
1053
+ * ident list value
1815
1054
  */
1816
- Add = 60,
1055
+ val: string;
1056
+ }
1057
+
1058
+ /**
1059
+ * Dashed ident token
1060
+ */
1061
+ export declare interface DashedIdentToken extends BaseToken {
1817
1062
  /**
1818
- * multiplication token type
1063
+ * ident type
1819
1064
  */
1820
- Mul = 61,
1065
+ typ: EnumToken.DashedIdenTokenType;
1821
1066
  /**
1822
- * division token type
1067
+ * ident value
1823
1068
  */
1824
- Div = 62,
1069
+ val: string;
1070
+ }
1071
+
1072
+ /**
1073
+ * Comma token
1074
+ */
1075
+ export declare interface CommaToken extends BaseToken {
1825
1076
  /**
1826
- * subtraction token type
1077
+ * comma type
1827
1078
  */
1828
- Sub = 63,
1079
+ typ: EnumToken.CommaTokenType;
1080
+ }
1081
+
1082
+ /**
1083
+ * Colon token
1084
+ */
1085
+ export declare interface ColonToken extends BaseToken {
1829
1086
  /**
1830
- * column combinator token type
1087
+ * colon type ':'
1831
1088
  */
1832
- ColumnCombinatorTokenType = 64,
1089
+ typ: EnumToken.ColonTokenType;
1090
+ }
1091
+
1092
+ /**
1093
+ * Double colon token
1094
+ */
1095
+ export declare interface DoubleColonToken extends BaseToken {
1833
1096
  /**
1834
- * contain match token type
1097
+ * double colon type '::'
1835
1098
  */
1836
- ContainMatchTokenType = 65,
1099
+ typ: EnumToken.DoubleColonTokenType;
1100
+ }
1101
+
1102
+ /**
1103
+ * Semicolon token
1104
+ */
1105
+ export declare interface SemiColonToken extends BaseToken {
1837
1106
  /**
1838
- * start match token type
1107
+ * semicolon type
1839
1108
  */
1840
- StartMatchTokenType = 66,
1109
+ typ: EnumToken.SemiColonTokenType;
1110
+ }
1111
+
1112
+ /**
1113
+ * Nesting selector token
1114
+ */
1115
+ export declare interface NestingSelectorToken extends BaseToken {
1841
1116
  /**
1842
- * end match token type
1117
+ * nesting selector type
1843
1118
  */
1844
- EndMatchTokenType = 67,
1119
+ typ: EnumToken.NestingSelectorTokenType;
1120
+ }
1121
+
1122
+ /**
1123
+ * Number token
1124
+ */
1125
+ export declare interface NumberToken extends BaseToken {
1845
1126
  /**
1846
- * match expression token type
1127
+ * number type
1847
1128
  */
1848
- MatchExpressionTokenType = 68,
1129
+ typ: EnumToken.NumberTokenType;
1849
1130
  /**
1850
- * namespace attribute token type
1131
+ * number sign
1851
1132
  */
1852
- NameSpaceAttributeTokenType = 69,
1133
+ sign?: "-" | "+";
1853
1134
  /**
1854
- * fraction token type
1135
+ * number value
1855
1136
  */
1856
- FractionTokenType = 70,
1137
+ val: number | FractionToken;
1138
+ }
1139
+
1140
+ /**
1141
+ * At rule token
1142
+ */
1143
+ export declare interface AtRuleToken extends BaseToken {
1857
1144
  /**
1858
- * identifier list token type
1145
+ * at rule type
1859
1146
  */
1860
- IdenListTokenType = 71,
1147
+ typ: EnumToken.AtRuleTokenType;
1861
1148
  /**
1862
- * grid template function token type
1149
+ * at rule name
1863
1150
  */
1864
- GridTemplateFuncTokenType = 72,
1151
+ nam: string;
1865
1152
  /**
1866
- * keyframe rule node type
1153
+ * at rule value
1867
1154
  */
1868
- KeyFramesRuleNodeType = 73,
1155
+ val?: string;
1156
+ }
1157
+
1158
+ /**
1159
+ * Percentage token
1160
+ */
1161
+ export declare interface PercentageToken extends BaseToken {
1869
1162
  /**
1870
- * class selector token type
1163
+ * percentage type
1871
1164
  */
1872
- ClassSelectorTokenType = 74,
1165
+ typ: EnumToken.PercentageTokenType;
1873
1166
  /**
1874
- * universal selector token type
1167
+ * percentage value
1875
1168
  */
1876
- UniversalSelectorTokenType = 75,
1169
+ val: number | FractionToken;
1170
+ }
1171
+
1172
+ /**
1173
+ * Flex token
1174
+ */
1175
+ export declare interface FlexToken extends BaseToken {
1877
1176
  /**
1878
- * child combinator token type
1177
+ * flex type
1879
1178
  */
1880
- ChildCombinatorTokenType = 76,// >
1179
+ typ: EnumToken.FlexTokenType;
1881
1180
  /**
1882
- * descendant combinator token type
1181
+ * flex value
1883
1182
  */
1884
- DescendantCombinatorTokenType = 77,// whitespace
1183
+ val: number | FractionToken;
1184
+ }
1185
+
1186
+ /**
1187
+ * Function token
1188
+ */
1189
+ export declare interface FunctionToken extends BaseToken {
1885
1190
  /**
1886
- * next sibling combinator token type
1191
+ * function type
1887
1192
  */
1888
- NextSiblingCombinatorTokenType = 78,// +
1889
- /**
1890
- * subsequent sibling combinator token type
1891
- */
1892
- SubsequentSiblingCombinatorTokenType = 79,// ~
1193
+ typ:
1194
+ | EnumToken.FunctionTokenType
1195
+ | EnumToken.UrlFunctionTokenType
1196
+ | EnumToken.GridTemplateFuncTokenType
1197
+ | EnumToken.ImageFunctionTokenType
1198
+ | EnumToken.TimelineFunctionTokenType
1199
+ | EnumToken.TimingFunctionTokenType
1200
+ | EnumToken.ColorFunctionTokenType
1201
+ | EnumToken.MathFunctionTokenType
1202
+ | EnumToken.PseudoClassFunctionTokenType
1203
+ | EnumToken.TransformFunctionTokenType;
1893
1204
  /**
1894
- * nesting selector token type
1205
+ * function name
1895
1206
  */
1896
- NestingSelectorTokenType = 80,// &
1207
+ val: string;
1897
1208
  /**
1898
- * Invalid rule token type
1899
- * @deprecated
1209
+ * function children
1900
1210
  */
1901
- InvalidRuleNodeType = 81,
1211
+ chi: Token$1[];
1212
+ }
1213
+
1214
+ /**
1215
+ * Grid template function token
1216
+ */
1217
+ export declare interface GridTemplateFuncToken extends BaseToken {
1902
1218
  /**
1903
- * invalid class selector token type
1219
+ * function type
1904
1220
  */
1905
- InvalidClassSelectorTokenType = 82,
1221
+ typ: EnumToken.GridTemplateFuncTokenType;
1906
1222
  /**
1907
- * invalid attribute token type
1223
+ * function name
1908
1224
  */
1909
- InvalidAttrTokenType = 83,
1225
+ val: string;
1910
1226
  /**
1911
- * Invalid at rule token type
1912
- * @deprecated
1227
+ * function children
1913
1228
  */
1914
- InvalidAtRuleNodeType = 84,
1229
+ chi: Token$1[];
1230
+ }
1231
+
1232
+ /**
1233
+ * Function URL token
1234
+ */
1235
+ export declare interface FunctionURLToken extends BaseToken {
1915
1236
  /**
1916
- * media query condition token type
1237
+ * function type
1917
1238
  */
1918
- MediaQueryConditionTokenType = 85,
1239
+ typ: EnumToken.UrlFunctionTokenType;
1919
1240
  /**
1920
- * media feature token type
1241
+ * function name
1921
1242
  */
1922
- MediaFeatureTokenType = 86,
1243
+ val: "url";
1923
1244
  /**
1924
- * media feature only token type
1245
+ * function children
1925
1246
  */
1926
- OnlyTokenType = 87,
1247
+ chi: Array<UrlToken | StringToken | CommentToken>;
1248
+ }
1249
+
1250
+ /**
1251
+ * Function image token
1252
+ */
1253
+ export declare interface FunctionImageToken extends BaseToken {
1927
1254
  /**
1928
- * media feature not token type
1255
+ * function type
1929
1256
  */
1930
- NotTokenType = 88,
1257
+ typ: EnumToken.ImageFunctionTokenType;
1931
1258
  /**
1932
- * media feature and token type
1259
+ * function name
1933
1260
  */
1934
- AndTokenType = 89,
1261
+ val:
1262
+ | "linear-gradient"
1263
+ | "radial-gradient"
1264
+ | "repeating-linear-gradient"
1265
+ | "repeating-radial-gradient"
1266
+ | "conic-gradient"
1267
+ | "image"
1268
+ | "image-set"
1269
+ | "element"
1270
+ | "cross-fade";
1935
1271
  /**
1936
- * media feature or token type
1272
+ * function children
1937
1273
  */
1938
- OrTokenType = 90,
1274
+ chi: Array<UrlToken | CommentToken>;
1275
+ }
1276
+
1277
+ /**
1278
+ * Timing function token
1279
+ */
1280
+ export declare interface TimingFunctionToken extends BaseToken {
1939
1281
  /**
1940
- * pseudo page token type
1282
+ * timing function type
1941
1283
  */
1942
- PseudoPageTokenType = 91,
1284
+ typ: EnumToken.TimingFunctionTokenType;
1943
1285
  /**
1944
- * pseudo element token type
1286
+ * timing function value
1945
1287
  */
1946
- PseudoElementTokenType = 92,
1288
+ val: string;
1947
1289
  /**
1948
- * keyframe at rule node type
1290
+ * timing function children
1949
1291
  */
1950
- KeyframesAtRuleNodeType = 93,
1292
+ chi: Token$1[];
1293
+ }
1294
+
1295
+ /**
1296
+ * Timeline function token
1297
+ */
1298
+ export declare interface TimelineFunctionToken extends BaseToken {
1951
1299
  /**
1952
- * invalid declaration node type.
1953
- * @deprecated
1300
+ * timeline function type
1954
1301
  */
1955
- InvalidDeclarationNodeType = 94,
1302
+ typ: EnumToken.TimelineFunctionTokenType;
1956
1303
  /**
1957
- * composes token node type
1304
+ * timeline function value
1958
1305
  */
1959
- ComposesSelectorNodeType = 95,
1306
+ val: string;
1960
1307
  /**
1961
- * css variable token type
1308
+ * timeline function children
1962
1309
  */
1963
- CssVariableTokenType = 96,
1310
+ chi: Token$1[];
1311
+ }
1312
+
1313
+ /**
1314
+ * String token
1315
+ */
1316
+ export declare interface StringToken extends BaseToken {
1964
1317
  /**
1965
- * css variable import token type
1318
+ * string type
1966
1319
  */
1967
- CssVariableImportTokenType = 97,
1320
+ typ: EnumToken.StringTokenType;
1968
1321
  /**
1969
- * css variable declaration map token type
1322
+ * string value
1970
1323
  */
1971
- CssVariableDeclarationMapTokenType = 98,
1324
+ val: string;
1325
+ }
1326
+
1327
+ /**
1328
+ * Bad string token
1329
+ */
1330
+ export declare interface BadStringToken extends BaseToken {
1972
1331
  /**
1973
- * media range query token type
1332
+ * bad string type
1974
1333
  */
1975
- MediaRangeQueryTokenType = 99,
1334
+ typ: EnumToken.BadStringTokenType;
1976
1335
  /**
1977
- * invalid media query token type
1336
+ * bad string value
1978
1337
  */
1979
- InvalidMediaQueryTokenType = 100,
1338
+ val: string;
1339
+ }
1340
+
1341
+ /**
1342
+ * Unclosed string token
1343
+ */
1344
+ export declare interface UnclosedStringToken extends BaseToken {
1980
1345
  /**
1981
- * supports query condition token type
1346
+ * unclosed string type
1982
1347
  */
1983
- SupportsQueryConditionTokenType = 101,
1348
+ typ: EnumToken.UnclosedStringTokenType;
1984
1349
  /**
1985
- * supports query unary condition token type
1350
+ * unclosed string value
1986
1351
  */
1987
- SupportsQueryUnaryConditionTokenType = 102,
1352
+ val: string;
1353
+ }
1354
+
1355
+ /**
1356
+ * Dimension token
1357
+ */
1358
+ export declare interface DimensionToken extends BaseToken {
1988
1359
  /**
1989
- * when else query condition token type
1360
+ * dimension type
1990
1361
  */
1991
- WhenElseQueryConditionTokenType = 103,
1362
+ typ: EnumToken.DimensionTokenType;
1992
1363
  /**
1993
- * when else query unary condition token type
1364
+ * dimension value
1994
1365
  */
1995
- WhenElseUnaryConditionTokenType = 104,
1366
+ val: number | FractionToken;
1996
1367
  /**
1997
- * container style range token type
1368
+ * dimension unit
1998
1369
  */
1999
- ContainerStyleRangeTokenType = 105,
1370
+ unit: string;
1371
+ }
1372
+
1373
+ /**
1374
+ * Length token
1375
+ */
1376
+ export declare interface LengthToken extends BaseToken {
2000
1377
  /**
2001
- * '*'
1378
+ * length type
2002
1379
  */
2003
- Star = 106,
1380
+ typ: EnumToken.LengthTokenType;
2004
1381
  /**
2005
- * '+'
1382
+ * length value
2006
1383
  */
2007
- Plus = 107,
1384
+ val: number | FractionToken;
2008
1385
  /**
2009
- * '~'
1386
+ * length unit
2010
1387
  */
2011
- Tilda = 108,
1388
+ unit: string;
1389
+ }
1390
+
1391
+ /**
1392
+ * Angle token
1393
+ */
1394
+ export declare interface AngleToken extends BaseToken {
2012
1395
  /**
2013
- * '|'
1396
+ * angle type
2014
1397
  */
2015
- Pipe = 109,
1398
+ typ: EnumToken.AngleTokenType;
2016
1399
  /**
2017
- * '::'
1400
+ * angle value
2018
1401
  */
2019
- DoubleColonTokenType = 110,
1402
+ val: number | FractionToken;
2020
1403
  /**
2021
- * math function token type such as'calc(' etc.
1404
+ * angle unit
2022
1405
  */
2023
- MathFunctionTokenType = 111,
1406
+ unit: string;
1407
+ }
1408
+
1409
+ /**
1410
+ * Time token
1411
+ */
1412
+ export declare interface TimeToken extends BaseToken {
2024
1413
  /**
2025
- * transform function token type such as 'translate(' etc.
1414
+ * time type
2026
1415
  */
2027
- TransformFunctionTokenType = 112,
1416
+ typ: EnumToken.TimeTokenType;
2028
1417
  /**
2029
- * when function token type such as 'supports(' etc.
1418
+ * time value
2030
1419
  */
2031
- WhenElseFunctionTokenType = 113,
1420
+ val: number | FractionToken;
2032
1421
  /**
2033
- * general enclosed function token type 'font-tech(' etc.
1422
+ * time unit
2034
1423
  */
2035
- GeneralEnclosedFunctionTokenType = 114,
1424
+ unit: "ms" | "s";
1425
+ }
1426
+
1427
+ /**
1428
+ * Frequency token
1429
+ */
1430
+ export declare interface FrequencyToken extends BaseToken {
2036
1431
  /**
2037
- * supports function token type such as 'at-rule('
1432
+ * frequency type
2038
1433
  */
2039
- SupportsFunctionTokenType = 115,
1434
+ typ: EnumToken.FrequencyTokenType;
2040
1435
  /**
2041
- * container function token type such as 'style(' or 'scroll-state('
1436
+ * frequency value
2042
1437
  */
2043
- ContainerFunctionTokenType = 116,
1438
+ val: number | FractionToken;
2044
1439
  /**
2045
- * unrecognized node token type
1440
+ * frequency unit
2046
1441
  */
2047
- RawNodeTokenType = 117,
2048
- /**
2049
- * media query boolean token type
2050
- * at-rule media not ()
2051
- * at-rule media only ()
2052
- */
2053
- MediaQueryUnaryFeatureTokenType = 118,
1442
+ unit: "Hz" | "Khz";
1443
+ }
1444
+
1445
+ /**
1446
+ * Resolution token
1447
+ */
1448
+ export declare interface ResolutionToken extends BaseToken {
2054
1449
  /**
2055
- * grid template function token type such as 'minmax('
1450
+ * resolution type
2056
1451
  */
2057
- GridTemplateFuncTokenDefType = 119,
1452
+ typ: EnumToken.ResolutionTokenType;
2058
1453
  /**
2059
- * image function token type such as 'image(' etc.
1454
+ * resolution value
2060
1455
  */
2061
- ImageFunctionTokenDefType = 120,
1456
+ val: number | FractionToken;
2062
1457
  /**
2063
- * function token type such as 'view(' etc.
1458
+ * resolution unit
2064
1459
  */
2065
- TimelineFunctionTokenDefType = 121,
1460
+ unit: "dpi" | "dpcm" | "dppx" | "x";
1461
+ }
1462
+
1463
+ /**
1464
+ * Hash token
1465
+ */
1466
+ export declare interface HashToken extends BaseToken {
2066
1467
  /**
2067
- * function token type
1468
+ * hash type
2068
1469
  */
2069
- FunctionTokenDefType = 122,
1470
+ typ: EnumToken.HashTokenType;
2070
1471
  /**
2071
- * timing function token type such as 'linear(' etc.
1472
+ * hash value
2072
1473
  */
2073
- TimingFunctionTokenDefType = 123,
1474
+ val: string;
1475
+ }
1476
+
1477
+ /**
1478
+ * Block start token
1479
+ */
1480
+ export declare interface BlockStartToken extends BaseToken {
2074
1481
  /**
2075
- * color function token type such as 'rgb(' etc.
1482
+ * block start type
2076
1483
  */
2077
- ColorFunctionTokenDefType = 124,
1484
+ typ: EnumToken.BlockStartTokenType;
1485
+ }
1486
+
1487
+ /**
1488
+ * Block end token
1489
+ */
1490
+ export declare interface BlockEndToken extends BaseToken {
2078
1491
  /**
2079
- * math function token type such as 'calc(' etc.
1492
+ * block end type
2080
1493
  */
2081
- MathFunctionTokenDefType = 125,
1494
+ typ: EnumToken.BlockEndTokenType;
1495
+ }
1496
+
1497
+ /**
1498
+ * Attribute start token
1499
+ */
1500
+ export declare interface AttrStartToken extends BaseToken {
2082
1501
  /**
2083
- * container function token type such as 'style(' or 'scroll-state('
1502
+ * attribute start type
2084
1503
  */
2085
- ContainerFunctionTokenDefType = 126,
1504
+ typ: EnumToken.AttrStartTokenType;
2086
1505
  /**
2087
- * url function token type 'url('
1506
+ * attribute start children
2088
1507
  */
2089
- UrlFunctionTokenDefType = 127,
1508
+ chi?: Token$1[];
1509
+ }
1510
+
1511
+ /**
1512
+ * Attribute end token
1513
+ */
1514
+ export declare interface AttrEndToken extends BaseToken {
2090
1515
  /**
2091
- * pseudo-class function token type
1516
+ * attribute end type
2092
1517
  */
2093
- PseudoClassFunctionTokenDefType = 128,
1518
+ typ: EnumToken.AttrEndTokenType;
1519
+ }
1520
+
1521
+ /**
1522
+ * Parenthesis start token
1523
+ */
1524
+ export declare interface ParensStartToken extends BaseToken {
2094
1525
  /**
2095
- * transform function token type such as 'translate(' etc.
1526
+ * parenthesis start type
2096
1527
  */
2097
- TransformFunctionTokenDefType = 129,
1528
+ typ: EnumToken.StartParensTokenType;
1529
+ }
1530
+
1531
+ /**
1532
+ * Parenthesis end token
1533
+ */
1534
+ export declare interface ParensEndToken extends BaseToken {
2098
1535
  /**
2099
- * when function token type such as 'supports(' or 'media('
1536
+ * parenthesis end type
2100
1537
  */
2101
- WhenElseFunctionTokenDefType = 130,
1538
+ typ: EnumToken.EndParensTokenType;
1539
+ }
1540
+
1541
+ /**
1542
+ * Parenthesis token
1543
+ */
1544
+ export declare interface ParensToken extends BaseToken {
2102
1545
  /**
2103
- * general enclosed function token type 'font-tech(' etc.
1546
+ * parenthesis type
2104
1547
  */
2105
- GeneralEnclosedFunctionTokenDefType = 131,
1548
+ typ: EnumToken.ParensTokenType;
2106
1549
  /**
2107
- * supports function token type 'font-tech('
1550
+ * parenthesis children
2108
1551
  */
2109
- SupportsFunctionTokenDefType = 132,
1552
+ chi: Token$1[];
1553
+ }
1554
+
1555
+ /**
1556
+ * Whitespace token
1557
+ */
1558
+ export declare interface WhitespaceToken extends BaseToken {
2110
1559
  /**
2111
- * CDOCOMMTokenType not allowed in this context
1560
+ * whitespace type
2112
1561
  */
2113
- InvalidCommentTokenType = 133,
1562
+ typ: EnumToken.WhitespaceTokenType;
2114
1563
  /**
2115
- * custom function token type '--function-name('
1564
+ * whitespace value
2116
1565
  */
2117
- CustomFunctionTokenDefType = 134,
1566
+ val?: string;
1567
+ }
1568
+
1569
+ /**
1570
+ * Comment token
1571
+ */
1572
+ export declare interface CommentToken extends BaseToken {
2118
1573
  /**
2119
- * custom function token type
1574
+ * comment type
2120
1575
  */
2121
- CustomFunctionTokenType = 135,
1576
+ typ: EnumToken.CommentTokenType;
2122
1577
  /**
2123
- * function tokens such as 'var(', 'env(', 'if(')
1578
+ * comment value
2124
1579
  */
2125
- WildCardFunctionTokenDefType = 136,
1580
+ val: string;
1581
+ }
1582
+
1583
+ /**
1584
+ * Bad comment token
1585
+ */
1586
+ export declare interface BadCommentToken extends BaseToken {
2126
1587
  /**
2127
- * function such as 'var()', 'env()', 'if()'
1588
+ * bad comment type
2128
1589
  */
2129
- WildCardFunctionTokenType = 137,
1590
+ typ: EnumToken.BadCommentTokenType;
2130
1591
  /**
2131
- * if condition token
1592
+ * bad comment value
2132
1593
  */
2133
- IfConditionTokenType = 138,
1594
+ val: string;
1595
+ }
1596
+
1597
+ /**
1598
+ * CDO comment token
1599
+ */
1600
+ export declare interface CDOCommentToken extends BaseToken {
1601
+ typ: EnumToken.CDOCOMMTokenType;
1602
+ val: string;
1603
+ }
1604
+
1605
+ /**
1606
+ * Bad CDO comment token
1607
+ */
1608
+ export declare interface BadCDOCommentToken extends BaseToken {
2134
1609
  /**
2135
- * if-Else condition token
1610
+ * bad CDO comment type
2136
1611
  */
2137
- IfElseConditionTokenType = 139,
1612
+ typ: EnumToken.BadCdoTokenType;
2138
1613
  /**
2139
- * wrapped values token type like {Arial, sans-serif}
1614
+ * bad CDO comment value
2140
1615
  */
2141
- WrappedValuesTokenType = 140,
1616
+ val: string;
1617
+ }
1618
+
1619
+ /**
1620
+ * Include match token
1621
+ */
1622
+ export declare interface IncludeMatchToken extends BaseToken {
2142
1623
  /**
2143
- * alias for time token type
1624
+ * include match type
2144
1625
  */
2145
- Time = 25,
1626
+ typ: EnumToken.IncludeMatchTokenType;
1627
+ // val: '~=';
1628
+ }
1629
+
1630
+ /**
1631
+ * Dash match token
1632
+ */
1633
+ export declare interface DashMatchToken extends BaseToken {
2146
1634
  /**
2147
- * alias for identifier token type
1635
+ * dash match type
2148
1636
  */
2149
- Iden = 7,
1637
+ typ: EnumToken.DashMatchTokenType;
1638
+ // val: '|=';
1639
+ }
1640
+
1641
+ /**
1642
+ * Equal match token
1643
+ */
1644
+ export declare interface EqualMatchToken extends BaseToken {
2150
1645
  /**
2151
- * alias for end of file token type
1646
+ * equal match type
2152
1647
  */
2153
- EOF = 48,
1648
+ typ: EnumToken.EqualMatchTokenType;
1649
+ // val: '|=';
1650
+ }
1651
+
1652
+ /**
1653
+ * Start match token
1654
+ */
1655
+ export declare interface StartMatchToken extends BaseToken {
2154
1656
  /**
2155
- * alias for hash token type
1657
+ * start match type
2156
1658
  */
2157
- Hash = 28,
1659
+ typ: EnumToken.StartMatchTokenType;
1660
+ // val: '^=';
1661
+ }
1662
+
1663
+ /**
1664
+ * End match token
1665
+ */
1666
+ export declare interface EndMatchToken extends BaseToken {
2158
1667
  /**
2159
- * alias for flex token type
1668
+ * end match type
2160
1669
  */
2161
- Flex = 58,
1670
+ typ: EnumToken.EndMatchTokenType;
1671
+ // val: '|=';
1672
+ }
1673
+
1674
+ /**
1675
+ * Contain match token
1676
+ */
1677
+ export declare interface ContainMatchToken extends BaseToken {
2162
1678
  /**
2163
- * alias for angle token type
1679
+ * contain match type
2164
1680
  */
2165
- Angle = 24,
1681
+ typ: EnumToken.ContainMatchTokenType;
1682
+ // val: '|=';
1683
+ }
1684
+
1685
+ /**
1686
+ * Less than token
1687
+ */
1688
+ export declare interface LessThanToken extends BaseToken {
2166
1689
  /**
2167
- * alias for color token type
1690
+ * less than type
2168
1691
  */
2169
- Color = 50,
1692
+ typ: EnumToken.LtTokenType;
1693
+ }
1694
+
1695
+ /**
1696
+ * Less than or equal token
1697
+ */
1698
+ export declare interface LessThanOrEqualToken extends BaseToken {
2170
1699
  /**
2171
- * alias for comma token type
1700
+ * less than or equal type
2172
1701
  */
2173
- Comma = 9,
1702
+ typ: EnumToken.LteTokenType;
1703
+ }
1704
+
1705
+ /**
1706
+ * Greater than token
1707
+ */
1708
+ export declare interface GreaterThanToken extends BaseToken {
2174
1709
  /**
2175
- * alias for string token type
1710
+ * greater than type
2176
1711
  */
2177
- String = 20,
1712
+ typ: EnumToken.GtTokenType;
1713
+ }
1714
+
1715
+ /**
1716
+ * Greater than or equal token
1717
+ */
1718
+ export declare interface GreaterThanOrEqualToken extends BaseToken {
2178
1719
  /**
2179
- * alias for length token type
1720
+ * greater than or equal type
2180
1721
  */
2181
- Length = 23,
1722
+ typ: EnumToken.GteTokenType;
1723
+ }
1724
+
1725
+ /**
1726
+ * Column combinator token
1727
+ */
1728
+ export declare interface ColumnCombinatorToken extends BaseToken {
2182
1729
  /**
2183
- * alias for number token type
1730
+ * column combinator type
2184
1731
  */
2185
- Number = 12,
1732
+ typ: EnumToken.ColumnCombinatorTokenType;
1733
+ }
1734
+
1735
+ /**
1736
+ * Pseudo class token
1737
+ */
1738
+ export declare interface PseudoClassToken extends BaseToken {
2186
1739
  /**
2187
- * alias for percentage token type
1740
+ * Pseudo class
2188
1741
  */
2189
- Perc = 14,
1742
+ typ: EnumToken.PseudoClassTokenType;
2190
1743
  /**
2191
- * alias for literal token type
1744
+ * Pseudo class
2192
1745
  */
2193
- Literal = 6,
1746
+ val: string;
1747
+ }
1748
+
1749
+ /**
1750
+ * Pseudo element token
1751
+ */
1752
+ export declare interface PseudoElementToken extends BaseToken {
2194
1753
  /**
2195
- * alias for comment token type
1754
+ * Pseudo element
2196
1755
  */
2197
- Comment = 0,
1756
+ typ: EnumToken.PseudoElementTokenType;
2198
1757
  /**
2199
- * alias for url function token type
1758
+ * Pseudo element
2200
1759
  */
2201
- UrlFunc = 18,
1760
+ val: string;
1761
+ }
1762
+
1763
+ /**
1764
+ * Pseudo page token
1765
+ */
1766
+ export declare interface PseudoPageToken extends BaseToken {
2202
1767
  /**
2203
- * alias for dimension token type
1768
+ * Pseudo page
2204
1769
  */
2205
- Dimension = 22,
1770
+ typ: EnumToken.PseudoPageTokenType;
2206
1771
  /**
2207
- * alias for frequency token type
1772
+ * Pseudo page
2208
1773
  */
2209
- Frequency = 26,
1774
+ val: string;
1775
+ }
1776
+
1777
+ /**
1778
+ * Pseudo class function token
1779
+ */
1780
+ export declare interface PseudoClassFunctionToken extends BaseToken {
2210
1781
  /**
2211
- * alias for resolution token type
1782
+ * Pseudo class function
2212
1783
  */
2213
- Resolution = 27,
1784
+ typ: EnumToken.PseudoClassFuncTokenType;
2214
1785
  /**
2215
- * alias for whitespace token type
1786
+ * Pseudo class function
2216
1787
  */
2217
- Whitespace = 36,
1788
+ val: string;
2218
1789
  /**
2219
- * alias for identifier list token type
1790
+ * Pseudo class function
2220
1791
  */
2221
- IdenList = 71,
1792
+ chi: Token$1[];
1793
+ }
1794
+
1795
+ /**
1796
+ * Delim token
1797
+ */
1798
+ export declare interface DelimToken extends BaseToken {
2222
1799
  /**
2223
- * alias for dashed identifier token type
1800
+ * Delimiter token type
2224
1801
  */
2225
- DashedIden = 8,
1802
+ typ: EnumToken.DelimTokenType;
1803
+ }
1804
+
1805
+ /**
1806
+ * Bad URL token
1807
+ */
1808
+ export declare interface BadUrlToken extends BaseToken {
2226
1809
  /**
2227
- * alias for grid template function token type
1810
+ * Bad URL
2228
1811
  */
2229
- GridTemplateFunc = 72,
1812
+ typ: EnumToken.BadUrlTokenType;
2230
1813
  /**
2231
- * alias for image function token type
1814
+ * Bad URL
2232
1815
  */
2233
- ImageFunc = 19,
1816
+ val: string;
1817
+ }
1818
+
1819
+ /**
1820
+ * URL token
1821
+ */
1822
+ export declare interface UrlToken extends BaseToken {
2234
1823
  /**
2235
- * alias for comment node type
1824
+ * URL
2236
1825
  */
2237
- CommentNodeType = 0,
1826
+ typ: EnumToken.UrlTokenTokenType;
2238
1827
  /**
2239
- * alias for cdata section node type
1828
+ * URL token
2240
1829
  */
2241
- CDOCOMMNodeType = 1,
1830
+ val: string;
1831
+ }
1832
+
1833
+ /**
1834
+ * EOF token
1835
+ */
1836
+ export declare interface EOFToken extends BaseToken {
2242
1837
  /**
2243
- * alias for timing function token type
1838
+ * End of file
2244
1839
  */
2245
- TimingFunction = 17,
1840
+ typ: EnumToken.EOFTokenType;
1841
+ }
1842
+
1843
+ /**
1844
+ * Important token
1845
+ */
1846
+ export declare interface ImportantToken extends BaseToken {
2246
1847
  /**
2247
- * alias for timeline function token type
1848
+ * Important
2248
1849
  */
2249
- TimelineFunction = 16
1850
+ typ: EnumToken.ImportantTokenType;
2250
1851
  }
1852
+
2251
1853
  /**
2252
- * Supported color types enum
1854
+ * Color token
2253
1855
  */
2254
- declare enum ColorType$1 {
1856
+ export declare interface ColorToken extends BaseToken {
2255
1857
  /**
2256
- * deprecated system colors
1858
+ * Color type
2257
1859
  */
2258
- SYS = 0,
1860
+ typ: EnumToken.ColorTokenType;
2259
1861
  /**
2260
- * deprecated system colors
1862
+ * Color value or color function name
2261
1863
  */
2262
- DPSYS = 1,
1864
+ val: string;
2263
1865
  /**
2264
- * named colors
1866
+ * Color kind
2265
1867
  */
2266
- LIT = 2,
1868
+ kin: ColorType$1;
2267
1869
  /**
2268
- * colors as hex values
1870
+ * Color components
2269
1871
  */
2270
- HEX = 3,
1872
+ chi?: Token$1[];
2271
1873
  /**
2272
- * colors as rgb values
2273
- */
2274
- RGBA = 4,
1874
+ * Whether the color is relative, color-mix or color
1875
+ * */
1876
+ cal?: "rel" | "mix" | "col";
1877
+ }
1878
+
1879
+ /**
1880
+ * Attribute token
1881
+ */
1882
+ export declare interface AttrToken extends BaseToken {
2275
1883
  /**
2276
- * colors using rgb
1884
+ * Attribute type
2277
1885
  */
2278
- HSLA = 5,
1886
+ typ: EnumToken.AttrTokenType;
2279
1887
  /**
2280
- * colors using hwb
1888
+ * Children
2281
1889
  */
2282
- HWB = 6,
1890
+ chi: Token$1[];
1891
+ }
1892
+
1893
+ /**
1894
+ * Invalid attribute token
1895
+ */
1896
+ export declare interface InvalidAttrToken extends BaseToken {
2283
1897
  /**
2284
- * colors using cmyk
1898
+ * Attribute type
2285
1899
  */
2286
- CMYK = 7,
2287
- /**
2288
- * colors using oklab
2289
- * */
2290
- OKLAB = 8,
2291
- /**
2292
- * colors using oklch
2293
- * */
2294
- OKLCH = 9,
1900
+ typ: EnumToken.InvalidAttrTokenType;
2295
1901
  /**
2296
- * colors using lab
1902
+ * Children
2297
1903
  */
2298
- LAB = 10,
1904
+ chi: Token$1[];
1905
+ }
1906
+
1907
+ /**
1908
+ * Child combinator token
1909
+ */
1910
+ export declare interface ChildCombinatorToken extends BaseToken {
1911
+ typ: EnumToken.ChildCombinatorTokenType;
1912
+ }
1913
+
1914
+ /**
1915
+ * Media feature token
1916
+ */
1917
+ export declare interface MediaFeatureToken extends BaseToken {
2299
1918
  /**
2300
- * colors using lch
1919
+ * Media feature type
2301
1920
  */
2302
- LCH = 11,
1921
+ typ: EnumToken.MediaFeatureTokenType;
2303
1922
  /**
2304
- * colors using color() function
1923
+ * Media feature
2305
1924
  */
2306
- COLOR = 12,
1925
+ val: string;
1926
+ }
1927
+
1928
+ /**
1929
+ * Media feature not token
1930
+ */
1931
+ export declare interface NotToken extends BaseToken {
2307
1932
  /**
2308
- * color using srgb
1933
+ * Media feature not type
2309
1934
  */
2310
- SRGB = 13,
1935
+ typ: EnumToken.NotTokenType;
2311
1936
  /**
2312
- * color using prophoto-rgb
1937
+ * Media feature
2313
1938
  */
2314
- PROPHOTO_RGB = 14,
1939
+ val: Token$1;
1940
+ }
1941
+
1942
+ /**
1943
+ * Media feature only token
1944
+ */
1945
+ export declare interface MediaFeatureOnlyToken extends BaseToken {
2315
1946
  /**
2316
- * color using a98-rgb
1947
+ * Media feature only type
2317
1948
  */
2318
- A98_RGB = 15,
1949
+ typ: EnumToken.OnlyTokenType;
2319
1950
  /**
2320
- * color using rec2020
1951
+ * Media feature
2321
1952
  */
2322
- REC2020 = 16,
1953
+ val: Token$1;
1954
+ }
1955
+
1956
+ /**
1957
+ * Media feature and token
1958
+ */
1959
+ export declare interface AndToken extends BaseToken {
2323
1960
  /**
2324
- * color using display-p3
1961
+ * Media feature and type
2325
1962
  */
2326
- DISPLAY_P3 = 17,
1963
+ typ: EnumToken.AndTokenType;
1964
+ }
1965
+
1966
+ /**
1967
+ * Media feature or token
1968
+ */
1969
+ export declare interface OrToken extends BaseToken {
2327
1970
  /**
2328
- * color using srgb-linear
1971
+ * Media feature or type
2329
1972
  */
2330
- SRGB_LINEAR = 18,
1973
+ typ: EnumToken.OrTokenType;
1974
+ }
1975
+
1976
+ /**
1977
+ * Media query condition token
1978
+ */
1979
+ export declare interface MediaQueryUnaryFeatureToken extends BaseToken {
2331
1980
  /**
2332
- * color using xyz-d50
1981
+ * Media query condition type
2333
1982
  */
2334
- XYZ_D50 = 19,
1983
+ typ: EnumToken.MediaQueryUnaryFeatureTokenType;
2335
1984
  /**
2336
- * color using xyz-d65
1985
+ * Media feature
2337
1986
  */
2338
- XYZ_D65 = 20,
1987
+ l: Token$1;
2339
1988
  /**
2340
- * light-dark() color function
1989
+ * Media feature
2341
1990
  */
2342
- LIGHT_DARK = 21,
1991
+ r: Token$1[];
1992
+ }
1993
+
1994
+ export declare interface SupportsQueryUnaryConditionToken extends BaseToken {
2343
1995
  /**
2344
- * color-mix() color function
1996
+ * Supports query condition type
2345
1997
  */
2346
- COLOR_MIX = 22,
1998
+ typ: EnumToken.SupportsQueryUnaryConditionTokenType;
2347
1999
  /**
2348
- * non-standard color
2000
+ * Media feature
2349
2001
  */
2350
- NON_STD = 23,
2002
+ l: Token$1;
2351
2003
  /**
2352
- * custom color
2004
+ * Media feature
2353
2005
  */
2354
- CUSTOM_COLOR = 24,
2006
+ r: Token$1[];
2007
+ }
2008
+
2009
+ export declare interface SupportsQueryConditionToken extends BaseToken {
2355
2010
  /**
2356
- * alpha() color function
2011
+ * Supports query condition type
2357
2012
  */
2358
- ALPHA = 25,
2013
+ typ: EnumToken.SupportsQueryConditionTokenType;
2359
2014
  /**
2360
- * color using display-p3-linear
2015
+ * Media feature
2361
2016
  */
2362
- DISPLAY_P3_LINEAR = 26,
2017
+ op: AndToken | OrToken;
2363
2018
  /**
2364
- * Contrast color
2019
+ * Media feature
2365
2020
  */
2366
- CONTRAST_COLOR = 27,
2021
+ l: Token$1[];
2367
2022
  /**
2368
- * color layers
2023
+ * Media feature
2369
2024
  */
2370
- COLOR_LAYERS = 28,
2025
+ r: Token$1[];
2026
+ }
2027
+
2028
+ export declare interface WhenElseQueryConditionToken extends BaseToken {
2371
2029
  /**
2372
- * alias for rgba
2030
+ * When else query condition type
2373
2031
  */
2374
- RGB = 4,
2032
+ typ: EnumToken.WhenElseQueryConditionTokenType;
2375
2033
  /**
2376
- * alias for hsl
2034
+ * Media feature
2377
2035
  */
2378
- HSL = 5,
2036
+ op: AndToken | OrToken;
2379
2037
  /**
2380
- * alias for xyz-d65
2038
+ * Media feature
2381
2039
  */
2382
- XYZ = 20,
2040
+ l: Token$1[];
2383
2041
  /**
2384
- * alias for cmyk
2042
+ * Media feature
2385
2043
  */
2386
- DEVICE_CMYK = 7
2044
+ r: Token$1[];
2387
2045
  }
2388
- /**
2389
- * Supported module case transform
2390
- */
2391
- declare enum ModuleCaseTransformEnum {
2046
+
2047
+ export declare interface WhenElseUnaryConditionToken extends BaseToken {
2392
2048
  /**
2393
- * export class names as-is
2049
+ * When else query condition type
2394
2050
  */
2395
- IgnoreCase = 1,
2051
+ typ: EnumToken.WhenElseUnaryConditionTokenType;
2396
2052
  /**
2397
- * transform mapping key name to camel case
2053
+ * Media feature
2398
2054
  */
2399
- CamelCase = 2,
2055
+ l: Token$1;
2400
2056
  /**
2401
- * transform class names and mapping key name to camel case
2057
+ * Media feature
2402
2058
  */
2403
- CamelCaseOnly = 4,
2059
+ r: Token$1[];
2060
+ }
2061
+
2062
+ export declare interface MediaQueryConditionToken extends BaseToken {
2404
2063
  /**
2405
- * transform mapping key name to dash case
2064
+ * Media query condition type
2406
2065
  */
2407
- DashCase = 8,
2066
+ typ: EnumToken.MediaQueryConditionTokenType;
2408
2067
  /**
2409
- * transform class names and mapping key name to dash case
2068
+ * Media feature
2410
2069
  */
2411
- DashCaseOnly = 16
2070
+ l: Token$1[];
2071
+ /**
2072
+ * Media feature
2073
+ */
2074
+ op:
2075
+ | ColonToken
2076
+ | DelimToken
2077
+ | GreaterThanToken
2078
+ | LessThanToken
2079
+ | GreaterThanOrEqualToken
2080
+ | LessThanOrEqualToken
2081
+ | AndToken
2082
+ | OrToken;
2083
+ /**
2084
+ * Media feature
2085
+ */
2086
+ r: Token$1[];
2412
2087
  }
2413
- /**
2414
- * Supported module scope
2415
- */
2416
- declare enum ModuleScopeEnumOptions {
2088
+
2089
+ export declare interface IfConditionToken extends BaseToken {
2417
2090
  /**
2418
- * use the global scope
2091
+ * If condition type
2419
2092
  */
2420
- Global = 32,
2093
+ typ: EnumToken.IfConditionTokenType;
2421
2094
  /**
2422
- * use the local scope
2095
+ * condition left handle
2423
2096
  */
2424
- Local = 64,
2097
+ l: Token$1[];
2425
2098
  /**
2426
- * do not allow selector without an id or class
2099
+ * condition value
2427
2100
  */
2428
- Pure = 128,
2101
+ r: Token$1[];
2102
+ }
2103
+
2104
+ export declare interface IfElseConditionToken extends BaseToken {
2429
2105
  /**
2430
- * export using ICSS module format
2106
+ * If else condition type
2431
2107
  */
2432
- ICSS = 256,
2108
+ typ: EnumToken.IfElseConditionTokenType;
2433
2109
  /**
2434
- * use the shortest name possible. pattern is ignored.
2435
- * it will produce names such as
2436
- *
2437
- * ```css
2438
- * .a {
2439
- * content: 'a';
2440
- * }
2441
- *
2442
- * .b {
2443
- * content: 'b';
2444
- * }
2445
- *
2446
- * .c {
2447
- * content: 'c';
2448
- * }
2449
- * ...
2450
- * ```
2110
+ * condition left handle
2451
2111
  */
2452
- Shortest = 512
2112
+ l: IfConditionToken;
2113
+ /**
2114
+ * condition value
2115
+ */
2116
+ r: IfConditionToken;
2453
2117
  }
2454
2118
 
2455
- declare const LOC: unique symbol;
2456
- declare const RAW: unique symbol;
2457
- declare const STATE: unique symbol;
2458
- declare const ROOT: unique symbol;
2459
- declare const ERRORS: unique symbol;
2460
- declare const TOKENS: unique symbol;
2461
- declare const PARENT: unique symbol;
2462
- declare const OPTIMIZED: unique symbol;
2119
+ export declare interface ContainerStyleRangeToken extends BaseToken {
2120
+ typ: EnumToken.ContainerStyleRangeTokenType;
2121
+ l: Token$1[];
2122
+ op: Token$1[];
2123
+ r: Token$1[];
2124
+ }
2125
+
2126
+ export declare interface MediaRangeQueryToken extends BaseToken {
2127
+ typ: EnumToken.MediaRangeQueryTokenType;
2128
+ l: Token$1[];
2129
+ val: Token$1[];
2130
+ op1: LessThanToken | GreaterThanToken | LessThanOrEqualToken | GreaterThanOrEqualToken;
2131
+ op2: LessThanToken | GreaterThanToken | LessThanOrEqualToken | GreaterThanOrEqualToken;
2132
+ r: Token$1[];
2133
+ }
2134
+
2135
+ export declare interface InvalidMediaQueryToken extends BaseToken {
2136
+ typ: EnumToken.InvalidMediaQueryTokenType;
2137
+ chi: Token$1[];
2138
+ }
2139
+
2140
+ /**
2141
+ * Descendant combinator token
2142
+ */
2143
+ export declare interface DescendantCombinatorToken extends BaseToken {
2144
+ typ: EnumToken.DescendantCombinatorTokenType;
2145
+ }
2146
+
2147
+ /**
2148
+ * Next sibling combinator token
2149
+ */
2150
+ export declare interface NextSiblingCombinatorToken extends BaseToken {
2151
+ typ: EnumToken.NextSiblingCombinatorTokenType;
2152
+ }
2153
+
2154
+ /**
2155
+ * Subsequent sibling combinator token
2156
+ */
2157
+ export declare interface SubsequentCombinatorToken extends BaseToken {
2158
+ typ: EnumToken.SubsequentSiblingCombinatorTokenType;
2159
+ }
2160
+
2161
+ /**
2162
+ * Add token
2163
+ */
2164
+ export declare interface AddToken extends BaseToken {
2165
+ typ: EnumToken.Add;
2166
+ }
2167
+
2168
+ /**
2169
+ * Sub token
2170
+ */
2171
+ export declare interface SubToken extends BaseToken {
2172
+ typ: EnumToken.Sub;
2173
+ }
2174
+
2175
+ /**
2176
+ * Div token
2177
+ */
2178
+ export declare interface DivToken extends BaseToken {
2179
+ typ: EnumToken.Div;
2180
+ }
2181
+
2182
+ /**
2183
+ * Mul token
2184
+ */
2185
+ export declare interface MulToken extends BaseToken {
2186
+ /**
2187
+ * Type
2188
+ */
2189
+ typ: EnumToken.Mul;
2190
+ }
2191
+
2192
+ /**
2193
+ * Wrapped values token like {Arial, Helvetica, sans-serif}
2194
+ */
2195
+ export declare interface WrappedValuesToken extends BaseToken {
2196
+ /**
2197
+ * Type
2198
+ */
2199
+ typ: EnumToken.WrappedValuesTokenType;
2200
+ /**
2201
+ * Children
2202
+ */
2203
+ chi: Token$1[];
2204
+ }
2205
+
2206
+ /**
2207
+ * Unary expression token
2208
+ */
2209
+ export declare interface UnaryExpression extends BaseToken {
2210
+ /**
2211
+ * Type
2212
+ */
2213
+ typ: EnumToken.UnaryExpressionTokenType;
2214
+ /**
2215
+ * Sign
2216
+ */
2217
+ sign: EnumToken.Add | EnumToken.Sub;
2218
+ /**
2219
+ * Value
2220
+ */
2221
+ val: UnaryExpressionNode;
2222
+ }
2223
+
2224
+ /**
2225
+ * Fraction token
2226
+ */
2227
+ export declare interface FractionToken extends BaseToken {
2228
+ typ: EnumToken.FractionTokenType;
2229
+ l: NumberToken;
2230
+ r: NumberToken;
2231
+ }
2232
+
2233
+ /**
2234
+ * Binary expression token
2235
+ */
2236
+ export declare interface BinaryExpressionToken extends BaseToken {
2237
+ typ: EnumToken.BinaryExpressionTokenType;
2238
+ op: EnumToken.Add | EnumToken.Sub | EnumToken.Div | EnumToken.Mul;
2239
+ l: BinaryExpressionNode | Token$1;
2240
+ r: BinaryExpressionNode | Token$1;
2241
+ }
2242
+
2243
+ /**
2244
+ * Match expression token
2245
+ */
2246
+ export declare interface MatchExpressionToken extends BaseToken {
2247
+ typ: EnumToken.MatchExpressionTokenType;
2248
+ op: EqualMatchToken | DashMatchToken | StartMatchToken | ContainMatchToken | EndMatchToken | IncludeMatchToken;
2249
+ l: Token$1;
2250
+ r: Token$1;
2251
+ attr?: "i" | "s";
2252
+ }
2253
+
2254
+ /**
2255
+ * Name space attribute token
2256
+ */
2257
+ export declare interface NameSpaceAttributeToken extends BaseToken {
2258
+ typ: EnumToken.NameSpaceAttributeTokenType;
2259
+ l?: Token$1;
2260
+ r: Token$1;
2261
+ }
2262
+
2263
+ /**
2264
+ * List token
2265
+ */
2266
+ export declare interface ListToken extends BaseToken {
2267
+ typ: EnumToken.ListToken;
2268
+ chi: Token$1[];
2269
+ }
2270
+
2271
+ /**
2272
+ * Composes selector token
2273
+ */
2274
+ export declare interface ComposesSelectorToken extends BaseToken {
2275
+ typ: EnumToken.ComposesSelectorTokenType;
2276
+ l: Token$1[];
2277
+ r: Token$1 | null;
2278
+ }
2279
+
2280
+ /**
2281
+ * Css variable token
2282
+ */
2283
+ export declare interface CssVariableToken$1 extends BaseToken {
2284
+ typ: EnumToken.CssVariableTokenType;
2285
+ nam: string;
2286
+ val: Token$1[];
2287
+ }
2288
+
2289
+ export declare interface CssVariableImportTokenType$1 extends BaseToken {
2290
+ typ: EnumToken.CssVariableImportTokenType;
2291
+ nam: string;
2292
+ val: Token$1[];
2293
+ }
2294
+
2295
+ export declare interface CssVariableMapTokenType extends BaseToken {
2296
+ typ: EnumToken.CssVariableDeclarationMapTokenType;
2297
+ vars: Token$1[];
2298
+ from: Token$1[];
2299
+ }
2300
+
2301
+ /**
2302
+ * Function definition token
2303
+ */
2304
+ export declare interface FunctionDefToken extends BaseToken {
2305
+ typ:
2306
+ | EnumToken.FunctionDefTokenType
2307
+ | EnumToken.UrlFunctionTokenDefType
2308
+ | EnumToken.GridTemplateFuncTokenDefType
2309
+ | EnumToken.ImageFunctionTokenDefType
2310
+ | EnumToken.TimelineFunctionTokenDefType
2311
+ | EnumToken.TimingFunctionTokenDefType
2312
+ | EnumToken.ColorFunctionTokenDefType
2313
+ | EnumToken.MathFunctionTokenDefType
2314
+ | EnumToken.PseudoClassFunctionTokenDefType
2315
+ | EnumToken.TransformFunctionTokenDefType;
2316
+ nam: string;
2317
+ val: string;
2318
+ }
2319
+
2320
+ /**
2321
+ * Raw node token
2322
+ */
2323
+ export declare interface RawNodeToken extends BaseToken, EnumAstNodeStatus$1 {
2324
+ typ: EnumToken.RawNodeTokenType;
2325
+ val: Token$1[];
2326
+ }
2327
+
2328
+ /**
2329
+ * Unary expression node
2330
+ */
2331
+ export declare type UnaryExpressionNode =
2332
+ | BinaryExpressionNode
2333
+ | NumberToken
2334
+ | DimensionToken
2335
+ | TimeToken
2336
+ | LengthToken
2337
+ | AngleToken
2338
+ | FrequencyToken;
2339
+
2340
+ /**
2341
+ * Binary expression node
2342
+ */
2343
+ export declare type BinaryExpressionNode =
2344
+ | NumberToken
2345
+ | DimensionToken
2346
+ | PercentageToken
2347
+ | FlexToken
2348
+ | FractionToken
2349
+ | AngleToken
2350
+ | LengthToken
2351
+ | FrequencyToken
2352
+ | BinaryExpressionToken
2353
+ | FunctionToken
2354
+ | ParensToken;
2355
+
2356
+ /**
2357
+ * Token
2358
+ */
2359
+ export declare type Token$1 =
2360
+ | InvalidClassSelectorToken
2361
+ | InvalidAttrToken
2362
+ | LiteralToken
2363
+ | IdentToken
2364
+ | IdentListToken
2365
+ | DashedIdentToken
2366
+ | WrappedValuesToken
2367
+ | CommaToken
2368
+ | ColonToken
2369
+ | DoubleColonToken
2370
+ | SemiColonToken
2371
+ | ClassSelectorToken
2372
+ | UniversalSelectorToken
2373
+ | ChildCombinatorToken
2374
+ | DescendantCombinatorToken
2375
+ | NextSiblingCombinatorToken
2376
+ | SubsequentCombinatorToken
2377
+ | ColumnCombinatorToken
2378
+ | NestingSelectorToken
2379
+ | WhenElseUnaryConditionToken
2380
+ | WhenElseQueryConditionToken
2381
+ | SupportsQueryUnaryConditionToken
2382
+ | SupportsQueryConditionToken
2383
+ | MediaQueryConditionToken
2384
+ | MediaFeatureToken
2385
+ | MediaQueryUnaryFeatureToken
2386
+ | IfConditionToken
2387
+ | IfElseConditionToken
2388
+ | NotToken
2389
+ | MediaFeatureOnlyToken
2390
+ | AndToken
2391
+ | OrToken
2392
+ | MediaRangeQueryToken
2393
+ | ContainerStyleRangeToken
2394
+ | AstDeclaration
2395
+ | NumberToken
2396
+ | AtRuleToken
2397
+ | PercentageToken
2398
+ | FlexToken
2399
+ | FunctionURLToken
2400
+ | FunctionImageToken
2401
+ | TimingFunctionToken
2402
+ | TimelineFunctionToken
2403
+ | FunctionToken
2404
+ | GridTemplateFuncToken
2405
+ | DimensionToken
2406
+ | LengthToken
2407
+ | AngleToken
2408
+ | StringToken
2409
+ | TimeToken
2410
+ | FrequencyToken
2411
+ | ResolutionToken
2412
+ | UnclosedStringToken
2413
+ | HashToken
2414
+ | BadStringToken
2415
+ | BlockStartToken
2416
+ | BlockEndToken
2417
+ | AttrStartToken
2418
+ | AttrEndToken
2419
+ | ParensStartToken
2420
+ | ParensEndToken
2421
+ | ParensToken
2422
+ | CDOCommentToken
2423
+ | BadCDOCommentToken
2424
+ | CommentToken
2425
+ | BadCommentToken
2426
+ | WhitespaceToken
2427
+ | IncludeMatchToken
2428
+ | StartMatchToken
2429
+ | EndMatchToken
2430
+ | ContainMatchToken
2431
+ | MatchExpressionToken
2432
+ | NameSpaceAttributeToken
2433
+ | ComposesSelectorToken
2434
+ | CssVariableToken$1
2435
+ | DashMatchToken
2436
+ | EqualMatchToken
2437
+ | LessThanToken
2438
+ | LessThanOrEqualToken
2439
+ | GreaterThanToken
2440
+ | GreaterThanOrEqualToken
2441
+ | ListToken
2442
+ | PseudoClassToken
2443
+ | PseudoPageToken
2444
+ | PseudoElementToken
2445
+ | PseudoClassFunctionToken
2446
+ | DelimToken
2447
+ | BinaryExpressionToken
2448
+ | UnaryExpression
2449
+ | FractionToken
2450
+ | AddToken
2451
+ | SubToken
2452
+ | DivToken
2453
+ | MulToken
2454
+ | BadUrlToken
2455
+ | UrlToken
2456
+ | ImportantToken
2457
+ | ColorToken
2458
+ | AttrToken
2459
+ | FunctionDefToken
2460
+ | RawNodeToken
2461
+ | InvalidMediaQueryToken
2462
+ | EOFToken;
2463
2463
 
2464
2464
  /**
2465
2465
  * token or node location