@tbela99/css-parser 1.4.11 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +18 -11
  3. package/dist/index-umd-web.js +6558 -5310
  4. package/dist/index.cjs +6576 -5313
  5. package/dist/index.d.ts +805 -279
  6. package/dist/lib/ast/clone.js +13 -8
  7. package/dist/lib/ast/expand.js +65 -15
  8. package/dist/lib/ast/features/calc.js +19 -56
  9. package/dist/lib/ast/features/if.js +28 -4
  10. package/dist/lib/ast/features/inlinecssvariables.js +6 -5
  11. package/dist/lib/ast/features/prefix.js +52 -73
  12. package/dist/lib/ast/features/shorthand.js +11 -6
  13. package/dist/lib/ast/features/transform.js +6 -3
  14. package/dist/lib/ast/find.js +7 -5
  15. package/dist/lib/ast/math/expression.js +190 -32
  16. package/dist/lib/ast/minify.js +117 -49
  17. package/dist/lib/ast/node.js +52 -0
  18. package/dist/lib/ast/transform/compute.js +63 -4
  19. package/dist/lib/ast/transform/minify.js +6 -6
  20. package/dist/lib/ast/transform/perspective.js +1 -1
  21. package/dist/lib/ast/transform/rotate.js +1 -1
  22. package/dist/lib/ast/transform/scale.js +1 -1
  23. package/dist/lib/ast/transform/skew.js +1 -1
  24. package/dist/lib/ast/transform/translate.js +1 -1
  25. package/dist/lib/ast/transform/utils.js +46 -18
  26. package/dist/lib/ast/types.js +1 -1
  27. package/dist/lib/ast/walk.js +55 -11
  28. package/dist/lib/fs/resolve.js +68 -27
  29. package/dist/lib/parser/declaration/list.js +22 -7
  30. package/dist/lib/parser/declaration/map.js +40 -13
  31. package/dist/lib/parser/declaration/set.js +3 -1
  32. package/dist/lib/parser/linesmap.js +2 -12
  33. package/dist/lib/parser/parse.js +843 -912
  34. package/dist/lib/parser/source.js +16 -2
  35. package/dist/lib/parser/tokenize.js +1489 -725
  36. package/dist/lib/parser/utils/at-rule-container.js +29 -196
  37. package/dist/lib/parser/utils/at-rule-generic.js +6 -7
  38. package/dist/lib/parser/utils/at-rule-import.js +17 -13
  39. package/dist/lib/parser/utils/at-rule-media.js +36 -19
  40. package/dist/lib/parser/utils/at-rule-support.js +19 -9
  41. package/dist/lib/parser/utils/at-rule-when-else.js +11 -38
  42. package/dist/lib/parser/utils/at-rule.js +0 -18
  43. package/dist/lib/parser/utils/declaration.js +30 -95
  44. package/dist/lib/parser/utils/hash.js +4 -4
  45. package/dist/lib/parser/utils/selector.js +164 -141
  46. package/dist/lib/parser/utils/text.js +4 -2
  47. package/dist/lib/renderer/render.js +230 -125
  48. package/dist/lib/renderer/sourcemap/lib/codec.js +78 -0
  49. package/dist/lib/renderer/sourcemap/sourcemap.js +187 -34
  50. package/dist/lib/syntax/color/a98rgb.js +14 -4
  51. package/dist/lib/syntax/color/cmyk.js +10 -18
  52. package/dist/lib/syntax/color/color-mix.js +21 -34
  53. package/dist/lib/syntax/color/color.js +32 -49
  54. package/dist/lib/syntax/color/hsl.js +15 -15
  55. package/dist/lib/syntax/color/hwb.js +18 -17
  56. package/dist/lib/syntax/color/lab.js +17 -17
  57. package/dist/lib/syntax/color/lch.js +13 -13
  58. package/dist/lib/syntax/color/oklab.js +10 -11
  59. package/dist/lib/syntax/color/oklch.js +15 -18
  60. package/dist/lib/syntax/color/p3.js +18 -12
  61. package/dist/lib/syntax/color/prophotorgb.js +26 -28
  62. package/dist/lib/syntax/color/rec2020.js +8 -4
  63. package/dist/lib/syntax/color/relative-color.js +26 -10
  64. package/dist/lib/syntax/color/srgb.js +5 -4
  65. package/dist/lib/syntax/color/utils/distance.js +1 -1
  66. package/dist/lib/syntax/color/xyz.js +2 -2
  67. package/dist/lib/syntax/color/xyzd50.js +2 -2
  68. package/dist/lib/syntax/constants.js +12 -2
  69. package/dist/lib/syntax/syntax.js +45 -258
  70. package/dist/lib/validation/config.json.js +3 -0
  71. package/dist/lib/validation/match.js +110 -27
  72. package/dist/node.js +55 -33
  73. package/dist/types.d.ts +5 -1
  74. package/dist/types.js +4 -0
  75. package/dist/utils/sync.d.ts +16 -0
  76. package/dist/utils/sync.js +73 -0
  77. package/dist/web.js +37 -30
  78. package/package.json +1 -1
  79. package/dist/lib/renderer/sourcemap/lib/encode.js +0 -37
  80. package/llms.txt +0 -73
package/dist/index.d.ts CHANGED
@@ -379,7 +379,7 @@ declare enum EnumToken {
379
379
  /**
380
380
  * keyframe rule node type
381
381
  */
382
- KeyFramesRuleNodeType = 73,
382
+ KeyframesRuleNodeType = 73,
383
383
  /**
384
384
  * class selector token type
385
385
  */
@@ -966,6 +966,15 @@ declare enum ModuleScopeEnumOptions {
966
966
  Shortest = 512
967
967
  }
968
968
 
969
+ /**
970
+ * Location source id
971
+ */
972
+ declare const LOCSRCID: unique symbol;
973
+ declare const LOCSTA: unique symbol;
974
+ declare const LOCEND: unique symbol;
975
+ /**
976
+ * Used by the validation parser
977
+ */
969
978
  declare const LOC: unique symbol;
970
979
  declare const RAW: unique symbol;
971
980
  declare const STATE: unique symbol;
@@ -980,7 +989,7 @@ declare const OPTIMIZED: unique symbol;
980
989
  */
981
990
  export declare interface LiteralToken extends BaseToken {
982
991
  /**
983
- * literal type
992
+ * @inheritdoc
984
993
  */
985
994
  typ: EnumToken.LiteralTokenType;
986
995
  /**
@@ -994,7 +1003,7 @@ export declare interface LiteralToken extends BaseToken {
994
1003
  */
995
1004
  export declare interface ClassSelectorToken extends BaseToken {
996
1005
  /**
997
- * class selector type
1006
+ * @inheritdoc
998
1007
  */
999
1008
  typ: EnumToken.ClassSelectorTokenType;
1000
1009
  /**
@@ -1008,7 +1017,7 @@ export declare interface ClassSelectorToken extends BaseToken {
1008
1017
  */
1009
1018
  export declare interface InvalidClassSelectorToken extends BaseToken {
1010
1019
  /**
1011
- * invalid class selector type
1020
+ * @inheritdoc
1012
1021
  */
1013
1022
  typ: EnumToken.InvalidClassSelectorTokenType;
1014
1023
  /**
@@ -1022,7 +1031,7 @@ export declare interface InvalidClassSelectorToken extends BaseToken {
1022
1031
  */
1023
1032
  export declare interface UniversalSelectorToken extends BaseToken {
1024
1033
  /**
1025
- * universal selector type
1034
+ * @inheritdoc
1026
1035
  */
1027
1036
  typ: EnumToken.UniversalSelectorTokenType;
1028
1037
  }
@@ -1032,7 +1041,7 @@ export declare interface UniversalSelectorToken extends BaseToken {
1032
1041
  */
1033
1042
  export declare interface IdentToken extends BaseToken {
1034
1043
  /**
1035
- * ident type
1044
+ * @inheritdoc
1036
1045
  */
1037
1046
  typ: EnumToken.IdenTokenType;
1038
1047
  /**
@@ -1046,7 +1055,7 @@ export declare interface IdentToken extends BaseToken {
1046
1055
  */
1047
1056
  export declare interface IdentListToken extends BaseToken {
1048
1057
  /**
1049
- * ident list type
1058
+ * @inheritdoc
1050
1059
  */
1051
1060
  typ: EnumToken.IdenListTokenType;
1052
1061
  /**
@@ -1060,7 +1069,7 @@ export declare interface IdentListToken extends BaseToken {
1060
1069
  */
1061
1070
  export declare interface DashedIdentToken extends BaseToken {
1062
1071
  /**
1063
- * ident type
1072
+ * @inheritdoc
1064
1073
  */
1065
1074
  typ: EnumToken.DashedIdenTokenType;
1066
1075
  /**
@@ -1074,7 +1083,7 @@ export declare interface DashedIdentToken extends BaseToken {
1074
1083
  */
1075
1084
  export declare interface CommaToken extends BaseToken {
1076
1085
  /**
1077
- * comma type
1086
+ * @inheritdoc
1078
1087
  */
1079
1088
  typ: EnumToken.CommaTokenType;
1080
1089
  }
@@ -1084,7 +1093,7 @@ export declare interface CommaToken extends BaseToken {
1084
1093
  */
1085
1094
  export declare interface ColonToken extends BaseToken {
1086
1095
  /**
1087
- * colon type ':'
1096
+ * @inheritdoc
1088
1097
  */
1089
1098
  typ: EnumToken.ColonTokenType;
1090
1099
  }
@@ -1094,7 +1103,7 @@ export declare interface ColonToken extends BaseToken {
1094
1103
  */
1095
1104
  export declare interface DoubleColonToken extends BaseToken {
1096
1105
  /**
1097
- * double colon type '::'
1106
+ * @inheritdoc
1098
1107
  */
1099
1108
  typ: EnumToken.DoubleColonTokenType;
1100
1109
  }
@@ -1104,7 +1113,7 @@ export declare interface DoubleColonToken extends BaseToken {
1104
1113
  */
1105
1114
  export declare interface SemiColonToken extends BaseToken {
1106
1115
  /**
1107
- * semicolon type
1116
+ * @inheritdoc
1108
1117
  */
1109
1118
  typ: EnumToken.SemiColonTokenType;
1110
1119
  }
@@ -1114,7 +1123,7 @@ export declare interface SemiColonToken extends BaseToken {
1114
1123
  */
1115
1124
  export declare interface NestingSelectorToken extends BaseToken {
1116
1125
  /**
1117
- * nesting selector type
1126
+ * @inheritdoc
1118
1127
  */
1119
1128
  typ: EnumToken.NestingSelectorTokenType;
1120
1129
  }
@@ -1124,7 +1133,7 @@ export declare interface NestingSelectorToken extends BaseToken {
1124
1133
  */
1125
1134
  export declare interface NumberToken extends BaseToken {
1126
1135
  /**
1127
- * number type
1136
+ * @inheritdoc
1128
1137
  */
1129
1138
  typ: EnumToken.NumberTokenType;
1130
1139
  /**
@@ -1142,7 +1151,7 @@ export declare interface NumberToken extends BaseToken {
1142
1151
  */
1143
1152
  export declare interface AtRuleToken extends BaseToken {
1144
1153
  /**
1145
- * at rule type
1154
+ * @inheritdoc
1146
1155
  */
1147
1156
  typ: EnumToken.AtRuleTokenType;
1148
1157
  /**
@@ -1160,7 +1169,7 @@ export declare interface AtRuleToken extends BaseToken {
1160
1169
  */
1161
1170
  export declare interface PercentageToken extends BaseToken {
1162
1171
  /**
1163
- * percentage type
1172
+ * @inheritdoc
1164
1173
  */
1165
1174
  typ: EnumToken.PercentageTokenType;
1166
1175
  /**
@@ -1174,7 +1183,7 @@ export declare interface PercentageToken extends BaseToken {
1174
1183
  */
1175
1184
  export declare interface FlexToken extends BaseToken {
1176
1185
  /**
1177
- * flex type
1186
+ * @inheritdoc
1178
1187
  */
1179
1188
  typ: EnumToken.FlexTokenType;
1180
1189
  /**
@@ -1197,10 +1206,12 @@ export declare interface FunctionToken extends BaseToken {
1197
1206
  | EnumToken.ImageFunctionTokenType
1198
1207
  | EnumToken.TimelineFunctionTokenType
1199
1208
  | EnumToken.TimingFunctionTokenType
1200
- | EnumToken.ColorFunctionTokenType
1209
+ | EnumToken.ColorTokenType
1201
1210
  | EnumToken.MathFunctionTokenType
1202
- | EnumToken.PseudoClassFunctionTokenType
1203
- | EnumToken.TransformFunctionTokenType;
1211
+ | EnumToken.PseudoClassFuncTokenType
1212
+ | EnumToken.TransformFunctionTokenType
1213
+ | EnumToken.GeneralEnclosedFunctionTokenType
1214
+ | EnumToken.WildCardFunctionTokenType;
1204
1215
  /**
1205
1216
  * function name
1206
1217
  */
@@ -1216,7 +1227,7 @@ export declare interface FunctionToken extends BaseToken {
1216
1227
  */
1217
1228
  export declare interface GridTemplateFuncToken extends BaseToken {
1218
1229
  /**
1219
- * function type
1230
+ * @inheritdoc
1220
1231
  */
1221
1232
  typ: EnumToken.GridTemplateFuncTokenType;
1222
1233
  /**
@@ -1234,7 +1245,7 @@ export declare interface GridTemplateFuncToken extends BaseToken {
1234
1245
  */
1235
1246
  export declare interface FunctionURLToken extends BaseToken {
1236
1247
  /**
1237
- * function type
1248
+ * @inheritdoc
1238
1249
  */
1239
1250
  typ: EnumToken.UrlFunctionTokenType;
1240
1251
  /**
@@ -1252,7 +1263,7 @@ export declare interface FunctionURLToken extends BaseToken {
1252
1263
  */
1253
1264
  export declare interface FunctionImageToken extends BaseToken {
1254
1265
  /**
1255
- * function type
1266
+ * @inheritdoc
1256
1267
  */
1257
1268
  typ: EnumToken.ImageFunctionTokenType;
1258
1269
  /**
@@ -1279,7 +1290,7 @@ export declare interface FunctionImageToken extends BaseToken {
1279
1290
  */
1280
1291
  export declare interface TimingFunctionToken extends BaseToken {
1281
1292
  /**
1282
- * timing function type
1293
+ * @inheritdoc
1283
1294
  */
1284
1295
  typ: EnumToken.TimingFunctionTokenType;
1285
1296
  /**
@@ -1297,7 +1308,7 @@ export declare interface TimingFunctionToken extends BaseToken {
1297
1308
  */
1298
1309
  export declare interface TimelineFunctionToken extends BaseToken {
1299
1310
  /**
1300
- * timeline function type
1311
+ * @inheritdoc
1301
1312
  */
1302
1313
  typ: EnumToken.TimelineFunctionTokenType;
1303
1314
  /**
@@ -1315,7 +1326,7 @@ export declare interface TimelineFunctionToken extends BaseToken {
1315
1326
  */
1316
1327
  export declare interface StringToken extends BaseToken {
1317
1328
  /**
1318
- * string type
1329
+ * @inheritdoc
1319
1330
  */
1320
1331
  typ: EnumToken.StringTokenType;
1321
1332
  /**
@@ -1329,7 +1340,7 @@ export declare interface StringToken extends BaseToken {
1329
1340
  */
1330
1341
  export declare interface BadStringToken extends BaseToken {
1331
1342
  /**
1332
- * bad string type
1343
+ * @inheritdoc
1333
1344
  */
1334
1345
  typ: EnumToken.BadStringTokenType;
1335
1346
  /**
@@ -1343,7 +1354,7 @@ export declare interface BadStringToken extends BaseToken {
1343
1354
  */
1344
1355
  export declare interface UnclosedStringToken extends BaseToken {
1345
1356
  /**
1346
- * unclosed string type
1357
+ * @inheritdoc
1347
1358
  */
1348
1359
  typ: EnumToken.UnclosedStringTokenType;
1349
1360
  /**
@@ -1357,7 +1368,7 @@ export declare interface UnclosedStringToken extends BaseToken {
1357
1368
  */
1358
1369
  export declare interface DimensionToken extends BaseToken {
1359
1370
  /**
1360
- * dimension type
1371
+ * @inheritdoc
1361
1372
  */
1362
1373
  typ: EnumToken.DimensionTokenType;
1363
1374
  /**
@@ -1375,7 +1386,7 @@ export declare interface DimensionToken extends BaseToken {
1375
1386
  */
1376
1387
  export declare interface LengthToken extends BaseToken {
1377
1388
  /**
1378
- * length type
1389
+ * @inheritdoc
1379
1390
  */
1380
1391
  typ: EnumToken.LengthTokenType;
1381
1392
  /**
@@ -1393,7 +1404,7 @@ export declare interface LengthToken extends BaseToken {
1393
1404
  */
1394
1405
  export declare interface AngleToken extends BaseToken {
1395
1406
  /**
1396
- * angle type
1407
+ * @inheritdoc
1397
1408
  */
1398
1409
  typ: EnumToken.AngleTokenType;
1399
1410
  /**
@@ -1411,7 +1422,7 @@ export declare interface AngleToken extends BaseToken {
1411
1422
  */
1412
1423
  export declare interface TimeToken extends BaseToken {
1413
1424
  /**
1414
- * time type
1425
+ * @inheritdoc
1415
1426
  */
1416
1427
  typ: EnumToken.TimeTokenType;
1417
1428
  /**
@@ -1419,7 +1430,7 @@ export declare interface TimeToken extends BaseToken {
1419
1430
  */
1420
1431
  val: number | FractionToken;
1421
1432
  /**
1422
- * time unit
1433
+ * time unit
1423
1434
  */
1424
1435
  unit: "ms" | "s";
1425
1436
  }
@@ -1429,7 +1440,7 @@ export declare interface TimeToken extends BaseToken {
1429
1440
  */
1430
1441
  export declare interface FrequencyToken extends BaseToken {
1431
1442
  /**
1432
- * frequency type
1443
+ * @inheritdoc
1433
1444
  */
1434
1445
  typ: EnumToken.FrequencyTokenType;
1435
1446
  /**
@@ -1447,7 +1458,7 @@ export declare interface FrequencyToken extends BaseToken {
1447
1458
  */
1448
1459
  export declare interface ResolutionToken extends BaseToken {
1449
1460
  /**
1450
- * resolution type
1461
+ * @inheritdoc
1451
1462
  */
1452
1463
  typ: EnumToken.ResolutionTokenType;
1453
1464
  /**
@@ -1465,7 +1476,7 @@ export declare interface ResolutionToken extends BaseToken {
1465
1476
  */
1466
1477
  export declare interface HashToken extends BaseToken {
1467
1478
  /**
1468
- * hash type
1479
+ * @inheritdoc
1469
1480
  */
1470
1481
  typ: EnumToken.HashTokenType;
1471
1482
  /**
@@ -1479,7 +1490,7 @@ export declare interface HashToken extends BaseToken {
1479
1490
  */
1480
1491
  export declare interface BlockStartToken extends BaseToken {
1481
1492
  /**
1482
- * block start type
1493
+ * @inheritdoc
1483
1494
  */
1484
1495
  typ: EnumToken.BlockStartTokenType;
1485
1496
  }
@@ -1489,7 +1500,7 @@ export declare interface BlockStartToken extends BaseToken {
1489
1500
  */
1490
1501
  export declare interface BlockEndToken extends BaseToken {
1491
1502
  /**
1492
- * block end type
1503
+ * @inheritdoc
1493
1504
  */
1494
1505
  typ: EnumToken.BlockEndTokenType;
1495
1506
  }
@@ -1499,7 +1510,7 @@ export declare interface BlockEndToken extends BaseToken {
1499
1510
  */
1500
1511
  export declare interface AttrStartToken extends BaseToken {
1501
1512
  /**
1502
- * attribute start type
1513
+ * @inheritdoc
1503
1514
  */
1504
1515
  typ: EnumToken.AttrStartTokenType;
1505
1516
  /**
@@ -1513,7 +1524,7 @@ export declare interface AttrStartToken extends BaseToken {
1513
1524
  */
1514
1525
  export declare interface AttrEndToken extends BaseToken {
1515
1526
  /**
1516
- * attribute end type
1527
+ * @inheritdoc
1517
1528
  */
1518
1529
  typ: EnumToken.AttrEndTokenType;
1519
1530
  }
@@ -1523,7 +1534,7 @@ export declare interface AttrEndToken extends BaseToken {
1523
1534
  */
1524
1535
  export declare interface ParensStartToken extends BaseToken {
1525
1536
  /**
1526
- * parenthesis start type
1537
+ * @inheritdoc
1527
1538
  */
1528
1539
  typ: EnumToken.StartParensTokenType;
1529
1540
  }
@@ -1533,7 +1544,7 @@ export declare interface ParensStartToken extends BaseToken {
1533
1544
  */
1534
1545
  export declare interface ParensEndToken extends BaseToken {
1535
1546
  /**
1536
- * parenthesis end type
1547
+ * @inheritdoc
1537
1548
  */
1538
1549
  typ: EnumToken.EndParensTokenType;
1539
1550
  }
@@ -1543,7 +1554,7 @@ export declare interface ParensEndToken extends BaseToken {
1543
1554
  */
1544
1555
  export declare interface ParensToken extends BaseToken {
1545
1556
  /**
1546
- * parenthesis type
1557
+ * @inheritdoc
1547
1558
  */
1548
1559
  typ: EnumToken.ParensTokenType;
1549
1560
  /**
@@ -1557,7 +1568,7 @@ export declare interface ParensToken extends BaseToken {
1557
1568
  */
1558
1569
  export declare interface WhitespaceToken extends BaseToken {
1559
1570
  /**
1560
- * whitespace type
1571
+ * @inheritdoc
1561
1572
  */
1562
1573
  typ: EnumToken.WhitespaceTokenType;
1563
1574
  /**
@@ -1571,7 +1582,7 @@ export declare interface WhitespaceToken extends BaseToken {
1571
1582
  */
1572
1583
  export declare interface CommentToken extends BaseToken {
1573
1584
  /**
1574
- * comment type
1585
+ * @inheritdoc
1575
1586
  */
1576
1587
  typ: EnumToken.CommentTokenType;
1577
1588
  /**
@@ -1585,7 +1596,7 @@ export declare interface CommentToken extends BaseToken {
1585
1596
  */
1586
1597
  export declare interface BadCommentToken extends BaseToken {
1587
1598
  /**
1588
- * bad comment type
1599
+ * @inheritdoc
1589
1600
  */
1590
1601
  typ: EnumToken.BadCommentTokenType;
1591
1602
  /**
@@ -1598,7 +1609,13 @@ export declare interface BadCommentToken extends BaseToken {
1598
1609
  * CDO comment token
1599
1610
  */
1600
1611
  export declare interface CDOCommentToken extends BaseToken {
1612
+ /**
1613
+ * @inheritdoc
1614
+ */
1601
1615
  typ: EnumToken.CDOCOMMTokenType;
1616
+ /**
1617
+ * CDO comment value
1618
+ */
1602
1619
  val: string;
1603
1620
  }
1604
1621
 
@@ -1607,7 +1624,7 @@ export declare interface CDOCommentToken extends BaseToken {
1607
1624
  */
1608
1625
  export declare interface BadCDOCommentToken extends BaseToken {
1609
1626
  /**
1610
- * bad CDO comment type
1627
+ * @inheritdoc
1611
1628
  */
1612
1629
  typ: EnumToken.BadCdoTokenType;
1613
1630
  /**
@@ -1621,7 +1638,7 @@ export declare interface BadCDOCommentToken extends BaseToken {
1621
1638
  */
1622
1639
  export declare interface IncludeMatchToken extends BaseToken {
1623
1640
  /**
1624
- * include match type
1641
+ * @inheritdoc
1625
1642
  */
1626
1643
  typ: EnumToken.IncludeMatchTokenType;
1627
1644
  // val: '~=';
@@ -1632,7 +1649,7 @@ export declare interface IncludeMatchToken extends BaseToken {
1632
1649
  */
1633
1650
  export declare interface DashMatchToken extends BaseToken {
1634
1651
  /**
1635
- * dash match type
1652
+ * @inheritdoc
1636
1653
  */
1637
1654
  typ: EnumToken.DashMatchTokenType;
1638
1655
  // val: '|=';
@@ -1643,7 +1660,7 @@ export declare interface DashMatchToken extends BaseToken {
1643
1660
  */
1644
1661
  export declare interface EqualMatchToken extends BaseToken {
1645
1662
  /**
1646
- * equal match type
1663
+ * @inheritdoc
1647
1664
  */
1648
1665
  typ: EnumToken.EqualMatchTokenType;
1649
1666
  // val: '|=';
@@ -1654,7 +1671,7 @@ export declare interface EqualMatchToken extends BaseToken {
1654
1671
  */
1655
1672
  export declare interface StartMatchToken extends BaseToken {
1656
1673
  /**
1657
- * start match type
1674
+ * @inheritdoc
1658
1675
  */
1659
1676
  typ: EnumToken.StartMatchTokenType;
1660
1677
  // val: '^=';
@@ -1665,7 +1682,7 @@ export declare interface StartMatchToken extends BaseToken {
1665
1682
  */
1666
1683
  export declare interface EndMatchToken extends BaseToken {
1667
1684
  /**
1668
- * end match type
1685
+ * @inheritdoc
1669
1686
  */
1670
1687
  typ: EnumToken.EndMatchTokenType;
1671
1688
  // val: '|=';
@@ -1676,7 +1693,7 @@ export declare interface EndMatchToken extends BaseToken {
1676
1693
  */
1677
1694
  export declare interface ContainMatchToken extends BaseToken {
1678
1695
  /**
1679
- * contain match type
1696
+ * @inheritdoc
1680
1697
  */
1681
1698
  typ: EnumToken.ContainMatchTokenType;
1682
1699
  // val: '|=';
@@ -1687,7 +1704,7 @@ export declare interface ContainMatchToken extends BaseToken {
1687
1704
  */
1688
1705
  export declare interface LessThanToken extends BaseToken {
1689
1706
  /**
1690
- * less than type
1707
+ * @inheritdoc
1691
1708
  */
1692
1709
  typ: EnumToken.LtTokenType;
1693
1710
  }
@@ -1697,7 +1714,7 @@ export declare interface LessThanToken extends BaseToken {
1697
1714
  */
1698
1715
  export declare interface LessThanOrEqualToken extends BaseToken {
1699
1716
  /**
1700
- * less than or equal type
1717
+ * @inheritdoc
1701
1718
  */
1702
1719
  typ: EnumToken.LteTokenType;
1703
1720
  }
@@ -1707,7 +1724,7 @@ export declare interface LessThanOrEqualToken extends BaseToken {
1707
1724
  */
1708
1725
  export declare interface GreaterThanToken extends BaseToken {
1709
1726
  /**
1710
- * greater than type
1727
+ * @inheritdoc
1711
1728
  */
1712
1729
  typ: EnumToken.GtTokenType;
1713
1730
  }
@@ -1717,7 +1734,7 @@ export declare interface GreaterThanToken extends BaseToken {
1717
1734
  */
1718
1735
  export declare interface GreaterThanOrEqualToken extends BaseToken {
1719
1736
  /**
1720
- * greater than or equal type
1737
+ * @inheritdoc
1721
1738
  */
1722
1739
  typ: EnumToken.GteTokenType;
1723
1740
  }
@@ -1727,7 +1744,7 @@ export declare interface GreaterThanOrEqualToken extends BaseToken {
1727
1744
  */
1728
1745
  export declare interface ColumnCombinatorToken extends BaseToken {
1729
1746
  /**
1730
- * column combinator type
1747
+ * @inheritdoc
1731
1748
  */
1732
1749
  typ: EnumToken.ColumnCombinatorTokenType;
1733
1750
  }
@@ -1737,7 +1754,7 @@ export declare interface ColumnCombinatorToken extends BaseToken {
1737
1754
  */
1738
1755
  export declare interface PseudoClassToken extends BaseToken {
1739
1756
  /**
1740
- * Pseudo class
1757
+ * @inheritdoc
1741
1758
  */
1742
1759
  typ: EnumToken.PseudoClassTokenType;
1743
1760
  /**
@@ -1751,7 +1768,7 @@ export declare interface PseudoClassToken extends BaseToken {
1751
1768
  */
1752
1769
  export declare interface PseudoElementToken extends BaseToken {
1753
1770
  /**
1754
- * Pseudo element
1771
+ * @inheritdoc
1755
1772
  */
1756
1773
  typ: EnumToken.PseudoElementTokenType;
1757
1774
  /**
@@ -1765,7 +1782,7 @@ export declare interface PseudoElementToken extends BaseToken {
1765
1782
  */
1766
1783
  export declare interface PseudoPageToken extends BaseToken {
1767
1784
  /**
1768
- * Pseudo page
1785
+ * @inheritdoc
1769
1786
  */
1770
1787
  typ: EnumToken.PseudoPageTokenType;
1771
1788
  /**
@@ -1779,7 +1796,7 @@ export declare interface PseudoPageToken extends BaseToken {
1779
1796
  */
1780
1797
  export declare interface PseudoClassFunctionToken extends BaseToken {
1781
1798
  /**
1782
- * Pseudo class function
1799
+ * @inheritdoc
1783
1800
  */
1784
1801
  typ: EnumToken.PseudoClassFuncTokenType;
1785
1802
  /**
@@ -1797,7 +1814,7 @@ export declare interface PseudoClassFunctionToken extends BaseToken {
1797
1814
  */
1798
1815
  export declare interface DelimToken extends BaseToken {
1799
1816
  /**
1800
- * Delimiter token type
1817
+ * @inheritdoc
1801
1818
  */
1802
1819
  typ: EnumToken.DelimTokenType;
1803
1820
  }
@@ -1807,7 +1824,7 @@ export declare interface DelimToken extends BaseToken {
1807
1824
  */
1808
1825
  export declare interface BadUrlToken extends BaseToken {
1809
1826
  /**
1810
- * Bad URL
1827
+ * @inheritdoc
1811
1828
  */
1812
1829
  typ: EnumToken.BadUrlTokenType;
1813
1830
  /**
@@ -1821,7 +1838,7 @@ export declare interface BadUrlToken extends BaseToken {
1821
1838
  */
1822
1839
  export declare interface UrlToken extends BaseToken {
1823
1840
  /**
1824
- * URL
1841
+ * @inheritdoc
1825
1842
  */
1826
1843
  typ: EnumToken.UrlTokenTokenType;
1827
1844
  /**
@@ -1835,7 +1852,7 @@ export declare interface UrlToken extends BaseToken {
1835
1852
  */
1836
1853
  export declare interface EOFToken extends BaseToken {
1837
1854
  /**
1838
- * End of file
1855
+ * @inheritdoc
1839
1856
  */
1840
1857
  typ: EnumToken.EOFTokenType;
1841
1858
  }
@@ -1845,7 +1862,7 @@ export declare interface EOFToken extends BaseToken {
1845
1862
  */
1846
1863
  export declare interface ImportantToken extends BaseToken {
1847
1864
  /**
1848
- * Important
1865
+ * @inheritdoc
1849
1866
  */
1850
1867
  typ: EnumToken.ImportantTokenType;
1851
1868
  }
@@ -1855,7 +1872,7 @@ export declare interface ImportantToken extends BaseToken {
1855
1872
  */
1856
1873
  export declare interface ColorToken extends BaseToken {
1857
1874
  /**
1858
- * Color type
1875
+ * @inheritdoc
1859
1876
  */
1860
1877
  typ: EnumToken.ColorTokenType;
1861
1878
  /**
@@ -1881,7 +1898,7 @@ export declare interface ColorToken extends BaseToken {
1881
1898
  */
1882
1899
  export declare interface AttrToken extends BaseToken {
1883
1900
  /**
1884
- * Attribute type
1901
+ * @inheritdoc
1885
1902
  */
1886
1903
  typ: EnumToken.AttrTokenType;
1887
1904
  /**
@@ -1895,7 +1912,7 @@ export declare interface AttrToken extends BaseToken {
1895
1912
  */
1896
1913
  export declare interface InvalidAttrToken extends BaseToken {
1897
1914
  /**
1898
- * Attribute type
1915
+ * @inheritdoc
1899
1916
  */
1900
1917
  typ: EnumToken.InvalidAttrTokenType;
1901
1918
  /**
@@ -1908,6 +1925,9 @@ export declare interface InvalidAttrToken extends BaseToken {
1908
1925
  * Child combinator token
1909
1926
  */
1910
1927
  export declare interface ChildCombinatorToken extends BaseToken {
1928
+ /**
1929
+ * @inheritdoc
1930
+ */
1911
1931
  typ: EnumToken.ChildCombinatorTokenType;
1912
1932
  }
1913
1933
 
@@ -1916,7 +1936,7 @@ export declare interface ChildCombinatorToken extends BaseToken {
1916
1936
  */
1917
1937
  export declare interface MediaFeatureToken extends BaseToken {
1918
1938
  /**
1919
- * Media feature type
1939
+ * @inheritdoc
1920
1940
  */
1921
1941
  typ: EnumToken.MediaFeatureTokenType;
1922
1942
  /**
@@ -1930,7 +1950,7 @@ export declare interface MediaFeatureToken extends BaseToken {
1930
1950
  */
1931
1951
  export declare interface NotToken extends BaseToken {
1932
1952
  /**
1933
- * Media feature not type
1953
+ * @inheritdoc
1934
1954
  */
1935
1955
  typ: EnumToken.NotTokenType;
1936
1956
  /**
@@ -1944,7 +1964,7 @@ export declare interface NotToken extends BaseToken {
1944
1964
  */
1945
1965
  export declare interface MediaFeatureOnlyToken extends BaseToken {
1946
1966
  /**
1947
- * Media feature only type
1967
+ * @inheritdoc
1948
1968
  */
1949
1969
  typ: EnumToken.OnlyTokenType;
1950
1970
  /**
@@ -1958,7 +1978,7 @@ export declare interface MediaFeatureOnlyToken extends BaseToken {
1958
1978
  */
1959
1979
  export declare interface AndToken extends BaseToken {
1960
1980
  /**
1961
- * Media feature and type
1981
+ * @inheritdoc
1962
1982
  */
1963
1983
  typ: EnumToken.AndTokenType;
1964
1984
  }
@@ -1968,7 +1988,7 @@ export declare interface AndToken extends BaseToken {
1968
1988
  */
1969
1989
  export declare interface OrToken extends BaseToken {
1970
1990
  /**
1971
- * Media feature or type
1991
+ * @inheritdoc
1972
1992
  */
1973
1993
  typ: EnumToken.OrTokenType;
1974
1994
  }
@@ -1978,7 +1998,7 @@ export declare interface OrToken extends BaseToken {
1978
1998
  */
1979
1999
  export declare interface MediaQueryUnaryFeatureToken extends BaseToken {
1980
2000
  /**
1981
- * Media query condition type
2001
+ * @inheritdoc
1982
2002
  */
1983
2003
  typ: EnumToken.MediaQueryUnaryFeatureTokenType;
1984
2004
  /**
@@ -1993,7 +2013,7 @@ export declare interface MediaQueryUnaryFeatureToken extends BaseToken {
1993
2013
 
1994
2014
  export declare interface SupportsQueryUnaryConditionToken extends BaseToken {
1995
2015
  /**
1996
- * Supports query condition type
2016
+ * @inheritdoc
1997
2017
  */
1998
2018
  typ: EnumToken.SupportsQueryUnaryConditionTokenType;
1999
2019
  /**
@@ -2008,7 +2028,7 @@ export declare interface SupportsQueryUnaryConditionToken extends BaseToken {
2008
2028
 
2009
2029
  export declare interface SupportsQueryConditionToken extends BaseToken {
2010
2030
  /**
2011
- * Supports query condition type
2031
+ * @inheritdoc
2012
2032
  */
2013
2033
  typ: EnumToken.SupportsQueryConditionTokenType;
2014
2034
  /**
@@ -2027,7 +2047,7 @@ export declare interface SupportsQueryConditionToken extends BaseToken {
2027
2047
 
2028
2048
  export declare interface WhenElseQueryConditionToken extends BaseToken {
2029
2049
  /**
2030
- * When else query condition type
2050
+ * @inheritdoc
2031
2051
  */
2032
2052
  typ: EnumToken.WhenElseQueryConditionTokenType;
2033
2053
  /**
@@ -2046,7 +2066,7 @@ export declare interface WhenElseQueryConditionToken extends BaseToken {
2046
2066
 
2047
2067
  export declare interface WhenElseUnaryConditionToken extends BaseToken {
2048
2068
  /**
2049
- * When else query condition type
2069
+ * @inheritdoc
2050
2070
  */
2051
2071
  typ: EnumToken.WhenElseUnaryConditionTokenType;
2052
2072
  /**
@@ -2061,7 +2081,7 @@ export declare interface WhenElseUnaryConditionToken extends BaseToken {
2061
2081
 
2062
2082
  export declare interface MediaQueryConditionToken extends BaseToken {
2063
2083
  /**
2064
- * Media query condition type
2084
+ * @inheritdoc
2065
2085
  */
2066
2086
  typ: EnumToken.MediaQueryConditionTokenType;
2067
2087
  /**
@@ -2088,7 +2108,7 @@ export declare interface MediaQueryConditionToken extends BaseToken {
2088
2108
 
2089
2109
  export declare interface IfConditionToken extends BaseToken {
2090
2110
  /**
2091
- * If condition type
2111
+ * @inheritdoc
2092
2112
  */
2093
2113
  typ: EnumToken.IfConditionTokenType;
2094
2114
  /**
@@ -2103,7 +2123,7 @@ export declare interface IfConditionToken extends BaseToken {
2103
2123
 
2104
2124
  export declare interface IfElseConditionToken extends BaseToken {
2105
2125
  /**
2106
- * If else condition type
2126
+ * @inheritdoc
2107
2127
  */
2108
2128
  typ: EnumToken.IfElseConditionTokenType;
2109
2129
  /**
@@ -2117,23 +2137,67 @@ export declare interface IfElseConditionToken extends BaseToken {
2117
2137
  }
2118
2138
 
2119
2139
  export declare interface ContainerStyleRangeToken extends BaseToken {
2140
+ /**
2141
+ * @inheritdoc
2142
+ */
2120
2143
  typ: EnumToken.ContainerStyleRangeTokenType;
2144
+ /**
2145
+ * condition left handle
2146
+ */
2121
2147
  l: Token$1[];
2148
+ /**
2149
+ * condition operator
2150
+ */
2122
2151
  op: Token$1[];
2152
+ /**
2153
+ * condition value
2154
+ */
2123
2155
  r: Token$1[];
2124
2156
  }
2125
2157
 
2158
+ // (20px <= width < 30px)
2159
+ /**
2160
+ * @inheritdoc
2161
+ */
2126
2162
  export declare interface MediaRangeQueryToken extends BaseToken {
2163
+ /**
2164
+ * @inheritdoc
2165
+ */
2127
2166
  typ: EnumToken.MediaRangeQueryTokenType;
2167
+ /**
2168
+ * left hanle
2169
+ * */
2128
2170
  l: Token$1[];
2171
+ /**
2172
+ * media feature name
2173
+ */
2129
2174
  val: Token$1[];
2175
+ /**
2176
+ * first comparator
2177
+ */
2130
2178
  op1: LessThanToken | GreaterThanToken | LessThanOrEqualToken | GreaterThanOrEqualToken;
2179
+ /**
2180
+ * second comparator
2181
+ */
2131
2182
  op2: LessThanToken | GreaterThanToken | LessThanOrEqualToken | GreaterThanOrEqualToken;
2183
+ /**
2184
+ * right handle
2185
+ */
2132
2186
  r: Token$1[];
2133
2187
  }
2134
2188
 
2189
+ /**
2190
+ * @inheritdoc
2191
+ */
2135
2192
  export declare interface InvalidMediaQueryToken extends BaseToken {
2193
+ /**
2194
+ * @inheritdoc
2195
+ */
2136
2196
  typ: EnumToken.InvalidMediaQueryTokenType;
2197
+
2198
+ /**
2199
+ * children
2200
+ */
2137
2201
  chi: Token$1[];
2138
2202
  }
2139
2203
 
@@ -2141,6 +2205,9 @@ export declare interface InvalidMediaQueryToken extends BaseToken {
2141
2205
  * Descendant combinator token
2142
2206
  */
2143
2207
  export declare interface DescendantCombinatorToken extends BaseToken {
2208
+ /**
2209
+ * @inheritdoc
2210
+ */
2144
2211
  typ: EnumToken.DescendantCombinatorTokenType;
2145
2212
  }
2146
2213
 
@@ -2148,6 +2215,9 @@ export declare interface DescendantCombinatorToken extends BaseToken {
2148
2215
  * Next sibling combinator token
2149
2216
  */
2150
2217
  export declare interface NextSiblingCombinatorToken extends BaseToken {
2218
+ /**
2219
+ * @inheritdoc
2220
+ */
2151
2221
  typ: EnumToken.NextSiblingCombinatorTokenType;
2152
2222
  }
2153
2223
 
@@ -2155,6 +2225,9 @@ export declare interface NextSiblingCombinatorToken extends BaseToken {
2155
2225
  * Subsequent sibling combinator token
2156
2226
  */
2157
2227
  export declare interface SubsequentCombinatorToken extends BaseToken {
2228
+ /**
2229
+ * @inheritdoc
2230
+ */
2158
2231
  typ: EnumToken.SubsequentSiblingCombinatorTokenType;
2159
2232
  }
2160
2233
 
@@ -2162,6 +2235,9 @@ export declare interface SubsequentCombinatorToken extends BaseToken {
2162
2235
  * Add token
2163
2236
  */
2164
2237
  export declare interface AddToken extends BaseToken {
2238
+ /**
2239
+ * @inheritdoc
2240
+ */
2165
2241
  typ: EnumToken.Add;
2166
2242
  }
2167
2243
 
@@ -2169,6 +2245,9 @@ export declare interface AddToken extends BaseToken {
2169
2245
  * Sub token
2170
2246
  */
2171
2247
  export declare interface SubToken extends BaseToken {
2248
+ /**
2249
+ * @inheritdoc
2250
+ */
2172
2251
  typ: EnumToken.Sub;
2173
2252
  }
2174
2253
 
@@ -2176,6 +2255,9 @@ export declare interface SubToken extends BaseToken {
2176
2255
  * Div token
2177
2256
  */
2178
2257
  export declare interface DivToken extends BaseToken {
2258
+ /**
2259
+ * @inheritdoc
2260
+ */
2179
2261
  typ: EnumToken.Div;
2180
2262
  }
2181
2263
 
@@ -2184,7 +2266,7 @@ export declare interface DivToken extends BaseToken {
2184
2266
  */
2185
2267
  export declare interface MulToken extends BaseToken {
2186
2268
  /**
2187
- * Type
2269
+ * @inheritdoc
2188
2270
  */
2189
2271
  typ: EnumToken.Mul;
2190
2272
  }
@@ -2194,7 +2276,7 @@ export declare interface MulToken extends BaseToken {
2194
2276
  */
2195
2277
  export declare interface WrappedValuesToken extends BaseToken {
2196
2278
  /**
2197
- * Type
2279
+ * @inheritdoc
2198
2280
  */
2199
2281
  typ: EnumToken.WrappedValuesTokenType;
2200
2282
  /**
@@ -2208,7 +2290,7 @@ export declare interface WrappedValuesToken extends BaseToken {
2208
2290
  */
2209
2291
  export declare interface UnaryExpression extends BaseToken {
2210
2292
  /**
2211
- * Type
2293
+ * @inheritdoc
2212
2294
  */
2213
2295
  typ: EnumToken.UnaryExpressionTokenType;
2214
2296
  /**
@@ -2225,8 +2307,17 @@ export declare interface UnaryExpression extends BaseToken {
2225
2307
  * Fraction token
2226
2308
  */
2227
2309
  export declare interface FractionToken extends BaseToken {
2310
+ /**
2311
+ * @inheritdoc
2312
+ */
2228
2313
  typ: EnumToken.FractionTokenType;
2314
+ /**
2315
+ * Left handle
2316
+ */
2229
2317
  l: NumberToken;
2318
+ /**
2319
+ * Right handle
2320
+ */
2230
2321
  r: NumberToken;
2231
2322
  }
2232
2323
 
@@ -2234,9 +2325,21 @@ export declare interface FractionToken extends BaseToken {
2234
2325
  * Binary expression token
2235
2326
  */
2236
2327
  export declare interface BinaryExpressionToken extends BaseToken {
2328
+ /**
2329
+ * @inheritdoc
2330
+ */
2237
2331
  typ: EnumToken.BinaryExpressionTokenType;
2332
+ /**
2333
+ * Operator
2334
+ */
2238
2335
  op: EnumToken.Add | EnumToken.Sub | EnumToken.Div | EnumToken.Mul;
2336
+ /**
2337
+ * Left handle
2338
+ */
2239
2339
  l: BinaryExpressionNode | Token$1;
2340
+ /**
2341
+ * Right handle
2342
+ */
2240
2343
  r: BinaryExpressionNode | Token$1;
2241
2344
  }
2242
2345
 
@@ -2244,10 +2347,25 @@ export declare interface BinaryExpressionToken extends BaseToken {
2244
2347
  * Match expression token
2245
2348
  */
2246
2349
  export declare interface MatchExpressionToken extends BaseToken {
2350
+ /**
2351
+ * @inheritdoc
2352
+ */
2247
2353
  typ: EnumToken.MatchExpressionTokenType;
2354
+ /**
2355
+ * Operator
2356
+ */
2248
2357
  op: EqualMatchToken | DashMatchToken | StartMatchToken | ContainMatchToken | EndMatchToken | IncludeMatchToken;
2358
+ /**
2359
+ * Left handle
2360
+ */
2249
2361
  l: Token$1;
2362
+ /**
2363
+ * Right handle
2364
+ */
2250
2365
  r: Token$1;
2366
+ /**
2367
+ * Flags
2368
+ */
2251
2369
  attr?: "i" | "s";
2252
2370
  }
2253
2371
 
@@ -2255,8 +2373,17 @@ export declare interface MatchExpressionToken extends BaseToken {
2255
2373
  * Name space attribute token
2256
2374
  */
2257
2375
  export declare interface NameSpaceAttributeToken extends BaseToken {
2376
+ /**
2377
+ * @inheritdoc
2378
+ */
2258
2379
  typ: EnumToken.NameSpaceAttributeTokenType;
2380
+ /**
2381
+ * Left handle
2382
+ */
2259
2383
  l?: Token$1;
2384
+ /**
2385
+ * Right handle
2386
+ */
2260
2387
  r: Token$1;
2261
2388
  }
2262
2389
 
@@ -2264,7 +2391,13 @@ export declare interface NameSpaceAttributeToken extends BaseToken {
2264
2391
  * List token
2265
2392
  */
2266
2393
  export declare interface ListToken extends BaseToken {
2394
+ /**
2395
+ * @inheritdoc
2396
+ */
2267
2397
  typ: EnumToken.ListToken;
2398
+ /**
2399
+ * Children
2400
+ */
2268
2401
  chi: Token$1[];
2269
2402
  }
2270
2403
 
@@ -2272,29 +2405,71 @@ export declare interface ListToken extends BaseToken {
2272
2405
  * Composes selector token
2273
2406
  */
2274
2407
  export declare interface ComposesSelectorToken extends BaseToken {
2408
+ /**
2409
+ * @inheritdoc
2410
+ */
2275
2411
  typ: EnumToken.ComposesSelectorTokenType;
2412
+ /**
2413
+ * Left handle
2414
+ */
2276
2415
  l: Token$1[];
2416
+ /**
2417
+ * Right handle
2418
+ */
2277
2419
  r: Token$1 | null;
2278
2420
  }
2279
2421
 
2280
2422
  /**
2281
2423
  * Css variable token
2282
2424
  */
2283
- export declare interface CssVariableToken$1 extends BaseToken {
2425
+ export declare interface CssVariableToken extends BaseToken {
2426
+ /**
2427
+ * @inheritdoc
2428
+ */
2284
2429
  typ: EnumToken.CssVariableTokenType;
2430
+ /**
2431
+ * Name
2432
+ */
2285
2433
  nam: string;
2434
+ /**
2435
+ * Value
2436
+ */
2286
2437
  val: Token$1[];
2287
2438
  }
2288
2439
 
2289
- export declare interface CssVariableImportTokenType$1 extends BaseToken {
2440
+ /**
2441
+ * Css variable import token
2442
+ */
2443
+ export declare interface CssVariableImportTokenType extends BaseToken {
2444
+ /**
2445
+ * @inheritdoc
2446
+ */
2290
2447
  typ: EnumToken.CssVariableImportTokenType;
2448
+ /**
2449
+ * Name
2450
+ */
2291
2451
  nam: string;
2452
+ /**
2453
+ * Value
2454
+ */
2292
2455
  val: Token$1[];
2293
2456
  }
2294
2457
 
2458
+ /**
2459
+ * Css variable map token
2460
+ */
2295
2461
  export declare interface CssVariableMapTokenType extends BaseToken {
2462
+ /**
2463
+ * @inheritdoc
2464
+ */
2296
2465
  typ: EnumToken.CssVariableDeclarationMapTokenType;
2466
+ /**
2467
+ * CSS Variables
2468
+ */
2297
2469
  vars: Token$1[];
2470
+ /**
2471
+ * From clause
2472
+ */
2298
2473
  from: Token$1[];
2299
2474
  }
2300
2475
 
@@ -2302,6 +2477,9 @@ export declare interface CssVariableMapTokenType extends BaseToken {
2302
2477
  * Function definition token
2303
2478
  */
2304
2479
  export declare interface FunctionDefToken extends BaseToken {
2480
+ /**
2481
+ * @inheritdoc
2482
+ */
2305
2483
  typ:
2306
2484
  | EnumToken.FunctionDefTokenType
2307
2485
  | EnumToken.UrlFunctionTokenDefType
@@ -2313,7 +2491,13 @@ export declare interface FunctionDefToken extends BaseToken {
2313
2491
  | EnumToken.MathFunctionTokenDefType
2314
2492
  | EnumToken.PseudoClassFunctionTokenDefType
2315
2493
  | EnumToken.TransformFunctionTokenDefType;
2494
+ /**
2495
+ * Name
2496
+ */
2316
2497
  nam: string;
2498
+ /**
2499
+ * Value
2500
+ */
2317
2501
  val: string;
2318
2502
  }
2319
2503
 
@@ -2321,7 +2505,13 @@ export declare interface FunctionDefToken extends BaseToken {
2321
2505
  * Raw node token
2322
2506
  */
2323
2507
  export declare interface RawNodeToken extends BaseToken, EnumAstNodeStatus$1 {
2508
+ /**
2509
+ * @inheritdoc
2510
+ */
2324
2511
  typ: EnumToken.RawNodeTokenType;
2512
+ /**
2513
+ * Value
2514
+ */
2325
2515
  val: Token$1[];
2326
2516
  }
2327
2517
 
@@ -2431,7 +2621,7 @@ export declare type Token$1 =
2431
2621
  | MatchExpressionToken
2432
2622
  | NameSpaceAttributeToken
2433
2623
  | ComposesSelectorToken
2434
- | CssVariableToken$1
2624
+ | CssVariableToken
2435
2625
  | DashMatchToken
2436
2626
  | EqualMatchToken
2437
2627
  | LessThanToken
@@ -2487,20 +2677,31 @@ export declare interface BaseToken {
2487
2677
  * token type
2488
2678
  */
2489
2679
  typ: EnumToken;
2680
+
2490
2681
  /**
2491
- * location info
2492
- * @private
2682
+ * source src
2683
+ */
2684
+ [LOCSRCID]?: number;
2685
+
2686
+ /**
2687
+ * source start offset
2688
+ */
2689
+ [LOCSTA]?: number;
2690
+
2691
+ /**
2692
+ * source end offset
2493
2693
  */
2494
- [LOC]?: SourceLocation;
2694
+ [LOCEND]?: number;
2695
+
2495
2696
  /**
2496
2697
  * parent node
2497
2698
  * @private
2498
2699
  */
2499
- [PARENT]?: AstNode$1;
2700
+ [PARENT]?: AstNode$1 | Token$1 | null;
2500
2701
  /**
2501
2702
  * root node
2502
2703
  */
2503
- [ROOT]?: AstStyleSheet;
2704
+ [ROOT]?: AstStyleSheet | null;
2504
2705
  /**
2505
2706
  * prelude or selector tokens
2506
2707
  * @private
@@ -2510,12 +2711,12 @@ export declare interface BaseToken {
2510
2711
  * node state
2511
2712
  * @private
2512
2713
  */
2513
- [STATE]?: EnumAstNodeStatus;
2714
+ [STATE]?: EnumAstNodeStatus | null;
2514
2715
  /**
2515
2716
  * node syntax errors
2516
2717
  * @private
2517
2718
  */
2518
- [ERRORS]?: ErrorDescription[];
2719
+ [ERRORS]?: ErrorDescription[] | null;
2519
2720
  /**
2520
2721
  * property name
2521
2722
  * @private
@@ -2534,7 +2735,7 @@ export declare interface BaseToken {
2534
2735
  /**
2535
2736
  * parent node
2536
2737
  */
2537
- parent?: AstAtRule | astRule | AstKeyframesAtRule | AstKeyFrameRule | AstInvalidRule | AstInvalidAtRule | null;
2738
+ parent?: AstAtRule | astRule | AstKeyframesAtRule | AstKeyframesRule | AstInvalidRule | AstInvalidAtRule | null;
2538
2739
  /**
2539
2740
  * @private
2540
2741
  */
@@ -2676,36 +2877,6 @@ export declare interface AstInvalidAtRule extends BaseToken, AstNodeStatus {
2676
2877
  chi?: Array<AstNode$1>;
2677
2878
  }
2678
2879
 
2679
- /**
2680
- * keyframe rule node
2681
- */
2682
- export declare interface AstKeyFrameRule extends BaseToken, AstNodeStatus {
2683
- /**
2684
- * token type
2685
- */
2686
- typ: EnumToken.KeyFramesRuleNodeType;
2687
- /**
2688
- * selector
2689
- */
2690
- sel: string;
2691
- /**
2692
- * child nodes
2693
- */
2694
- chi: Array<AstDeclaration | AstComment | AstInvalidDeclaration>;
2695
- /**
2696
- * optimized selector
2697
- */
2698
- optimized?: OptimizedSelector;
2699
- /**
2700
- * raw selector
2701
- */
2702
- raw?: RawSelectorTokens;
2703
- /**
2704
- * tokens
2705
- */
2706
- tokens?: Token$1[];
2707
- }
2708
-
2709
2880
  /**
2710
2881
  * raw selector tokens
2711
2882
  */
@@ -2788,7 +2959,37 @@ export declare interface AstKeyframesRule extends BaseToken, AstNodeStatus {
2788
2959
  /**
2789
2960
  * token type
2790
2961
  */
2791
- typ: EnumToken.KeyFramesRuleNodeType;
2962
+ typ: EnumToken.KeyframesRuleNodeType;
2963
+ /**
2964
+ * selector
2965
+ */
2966
+ sel: string;
2967
+ /**
2968
+ * child nodes
2969
+ */
2970
+ chi: Array<AstDeclaration | AstComment | AstInvalidDeclaration>;
2971
+ /**
2972
+ * optimized selector
2973
+ */
2974
+ optimized?: OptimizedSelector;
2975
+ /**
2976
+ * raw selector
2977
+ */
2978
+ raw?: RawSelectorTokens;
2979
+ /**
2980
+ * tokens
2981
+ */
2982
+ tokens?: Token$1[];
2983
+ }
2984
+
2985
+ /**
2986
+ * keyframe rule node
2987
+ */
2988
+ export declare interface AstKeyframesRule extends BaseToken, AstNodeStatus {
2989
+ /**
2990
+ * token type
2991
+ */
2992
+ typ: EnumToken.KeyframesRuleNodeType;
2792
2993
  /**
2793
2994
  * selector
2794
2995
  */
@@ -2837,7 +3038,7 @@ export declare type AstRuleList =
2837
3038
  | AstAtRule
2838
3039
  | AstRule
2839
3040
  | AstKeyframesAtRule
2840
- | AstKeyFrameRule
3041
+ | AstKeyframesRule
2841
3042
  | AstInvalidRule;
2842
3043
 
2843
3044
  /**
@@ -2865,12 +3066,13 @@ export declare type AstNode$1 =
2865
3066
  | AstRule
2866
3067
  | AstDeclaration
2867
3068
  | AstKeyframesAtRule
2868
- | AstKeyFrameRule
3069
+ | AstKeyframesRule
2869
3070
  | AstInvalidRule
2870
3071
  | AstInvalidAtRule
2871
3072
  | AstInvalidDeclaration
2872
3073
  | CssVariableToken
2873
- | CssVariableImportTokenType;
3074
+ | CssVariableImportTokenType
3075
+ | WhitespaceToken;
2874
3076
 
2875
3077
  /**
2876
3078
  * token search result
@@ -2992,7 +3194,7 @@ declare enum WalkerEvent {
2992
3194
  * }
2993
3195
  *
2994
3196
  * const result = await transform(css);
2995
- * for (const {node} of walk(result.ast, filter)) {
3197
+ * for (const {node} of walk(result.ast, filter, false)) {
2996
3198
  *
2997
3199
  * console.error([EnumToken[node.typ]]);
2998
3200
  * }
@@ -3007,6 +3209,79 @@ declare enum WalkerEvent {
3007
3209
  * ```
3008
3210
  */
3009
3211
  declare function walk(node: AstNode$1, filter?: WalkerFilter | null, reverse?: boolean): Generator<WalkResult>;
3212
+ /**
3213
+ * Walk ast nodes
3214
+ * @param node initial node
3215
+ * @param filter control the walk process
3216
+ *
3217
+ * ```ts
3218
+ *
3219
+ * import {walk} from '@tbela99/css-parser';
3220
+ *
3221
+ * const css = `
3222
+ * body { color: color(from var(--base-color) display-p3 r calc(g + 0.24) calc(b + 0.15)); }
3223
+ *
3224
+ * html,
3225
+ * body {
3226
+ * line-height: 1.474;
3227
+ * }
3228
+ *
3229
+ * .ruler {
3230
+ *
3231
+ * height: 10px;
3232
+ * }
3233
+ * `;
3234
+ *
3235
+ * for (const {node, parent, root} of walk(ast)) {
3236
+ *
3237
+ * // do something with node
3238
+ * }
3239
+ * ```
3240
+ *
3241
+ * Using a {@link filter} function to control the ast traversal. the filter function returns a value of type {@link WalkerOption}.
3242
+ *
3243
+ * ```ts
3244
+ * import {EnumToken, transform, walk, WalkerOptionEnum} from '@tbela99/css-parser';
3245
+ *
3246
+ * const css = `
3247
+ * body { color: color(from var(--base-color) display-p3 r calc(g + 0.24) calc(b + 0.15)); }
3248
+ *
3249
+ * html,
3250
+ * body {
3251
+ * line-height: 1.474;
3252
+ * }
3253
+ *
3254
+ * .ruler {
3255
+ *
3256
+ * height: 10px;
3257
+ * }
3258
+ * `;
3259
+ *
3260
+ * function filter(node) {
3261
+ *
3262
+ * if (node.typ == EnumToken.AstRule && node.sel.includes('html')) {
3263
+ *
3264
+ * // skip the children of the current node
3265
+ * return WalkerOptionEnum.IgnoreChildren;
3266
+ * }
3267
+ * }
3268
+ *
3269
+ * const result = await transform(css);
3270
+ * for (const {node} of walk(result.ast, {filter, reverse: false})) {
3271
+ *
3272
+ * console.error([EnumToken[node.typ]]);
3273
+ * }
3274
+ *
3275
+ * // [ "StyleSheetNodeType" ]
3276
+ * // [ "RuleNodeType" ]
3277
+ * // [ "DeclarationNodeType" ]
3278
+ * // [ "RuleNodeType" ]
3279
+ * // [ "DeclarationNodeType" ]
3280
+ * // [ "RuleNodeType" ]
3281
+ * // [ "DeclarationNodeType" ]
3282
+ * ```
3283
+ */
3284
+ declare function walk(node: AstNode$1, filter?: WalkerOptions | null): Generator<WalkResult>;
3010
3285
  /**
3011
3286
  * Walk ast node value tokens
3012
3287
  * @param values
@@ -3060,24 +3335,40 @@ declare function walkValues(values: Token$1[], root?: AstNode$1 | Token$1 | null
3060
3335
  type?: EnumToken | EnumToken[] | ((token: Token$1) => boolean);
3061
3336
  }, reverse?: boolean): Generator<WalkAttributesResult>;
3062
3337
 
3338
+ /**
3339
+ * Generic visitor result
3340
+ */
3063
3341
  export declare type GenericVisitorSyncResult<T> = T | T[] | null;
3064
- export declare type GenericVisitorAsyncResult<T> = Promise<T> | Promise<T[]>| Promise<null>;
3342
+ /**
3343
+ * Generic visitor result
3344
+ */
3345
+ export declare type GenericVisitorAsyncResult<T> = Promise<T> | Promise<T[]> | Promise<null>;
3346
+ /**
3347
+ * Generic visitor result
3348
+ */
3065
3349
  export declare type GenericVisitorResult<T> = GenericVisitorSyncResult<T> | GenericVisitorAsyncResult<T>;
3066
3350
 
3067
-
3068
-
3351
+ /**
3352
+ * Generic visitor handler
3353
+ */
3069
3354
  export declare type GenericVisitorSyncHandler<T> = (
3070
3355
  node: T,
3071
3356
  parent?: AstNode | Token,
3072
3357
  root?: AstNode | Token,
3073
3358
  ) => GenericVisitorSyncResult<T>;
3074
3359
 
3360
+ /**
3361
+ * Generic visitor handler
3362
+ */
3075
3363
  export declare type GenericVisitorAstNodeSyncHandlerMap<T> =
3076
3364
  | Record<string, GenericVisitorSyncHandler<T>>
3077
3365
  | GenericVisitorSyncHandler<T>
3078
3366
  | { type: WalkerEvent; handler: GenericVisitorSyncHandler<T> }
3079
3367
  | { type: WalkerEvent; handler: Record<string, GenericVisitorSyncHandler<T>> };
3080
3368
 
3369
+ /**
3370
+ * Generic visitor handler
3371
+ */
3081
3372
  export declare type ValueVisitorSyncHandler = GenericVisitorSyncHandler<Token>;
3082
3373
 
3083
3374
  /**
@@ -3273,8 +3564,14 @@ export declare interface VisitorSyncNodeMap {
3273
3564
  */
3274
3565
  Rule?: GenericVisitorAstNodeSyncHandlerMap<AstRule>;
3275
3566
 
3567
+ /**
3568
+ * keyframes rule visitor
3569
+ */
3276
3570
  KeyframesRule?: GenericVisitorAstNodeSyncHandlerMap<AstKeyframesRule>;
3277
3571
 
3572
+ /**
3573
+ * keyframes at-rule visitor
3574
+ */
3278
3575
  KeyframesAtRule?: GenericVisitorAstNodeSyncHandlerMap<AstKeyframesAtRule>;
3279
3576
 
3280
3577
  /**
@@ -3329,22 +3626,32 @@ export declare interface VisitorSyncNodeMap {
3329
3626
  * // body {color:#f3fff0}
3330
3627
  * ```
3331
3628
  */
3332
- [key: keyof typeof EnumToken]: GenericVisitorAstNodeSyncHandlerMap<Token> | GenericVisitorAstNodeSyncHandlerMap<AstNode>;
3629
+ [key: keyof typeof EnumToken]:
3630
+ | GenericVisitorAstNodeSyncHandlerMap<Token>
3631
+ | GenericVisitorAstNodeSyncHandlerMap<AstNode>;
3333
3632
  }
3334
3633
 
3335
-
3634
+ /**
3635
+ * Generic visitor handler
3636
+ */
3336
3637
  export declare type GenericVisitorHandler<T> = (
3337
3638
  node: T,
3338
3639
  parent?: AstNode | Token,
3339
3640
  root?: AstNode | Token,
3340
3641
  ) => GenericVisitorSyncResult<T> | GenericVisitorAsyncResult<T>;
3341
3642
 
3643
+ /**
3644
+ * Generic visitor handler
3645
+ */
3342
3646
  export declare type GenericVisitorAstNodeHandlerMap<T> =
3343
3647
  | Record<string, GenericVisitorHandler<T>>
3344
3648
  | GenericVisitorHandler<T>
3345
3649
  | { type: WalkerEvent; handler: GenericVisitorHandler<T> }
3346
3650
  | { type: WalkerEvent; handler: Record<string, GenericVisitorHandler<T>> };
3347
3651
 
3652
+ /**
3653
+ * Generic visitor handler
3654
+ */
3348
3655
  export declare type ValueVisitorHandler = GenericVisitorHandler<Token>;
3349
3656
 
3350
3657
  /**
@@ -3628,10 +3935,14 @@ export declare interface VisitorNodeMap {
3628
3935
  }
3629
3936
 
3630
3937
  /**
3631
- * Source map class
3632
- * @internal
3938
+ * Generate and parse source map
3633
3939
  */
3634
3940
  declare class SourceMap {
3941
+ /**
3942
+ *
3943
+ * @private
3944
+ */
3945
+ private keys;
3635
3946
  /**
3636
3947
  * Last location
3637
3948
  */
@@ -3646,27 +3957,66 @@ declare class SourceMap {
3646
3957
  * @private
3647
3958
  */
3648
3959
  private sourcesMap;
3960
+ /**
3961
+ * Sources content
3962
+ * @private
3963
+ */
3964
+ private readonly sourcesContent;
3649
3965
  /**
3650
3966
  * Sources
3651
3967
  * @private
3652
3968
  */
3653
- private sources;
3969
+ private readonly sources;
3654
3970
  /**
3655
3971
  * Map
3656
3972
  * @private
3973
+ *
3657
3974
  */
3658
3975
  private map;
3976
+ /**
3977
+ * Map
3978
+ * @private
3979
+ *
3980
+ */
3981
+ private reverseMap;
3659
3982
  /**
3660
3983
  * Line
3661
3984
  * @private
3662
3985
  */
3663
3986
  private line;
3664
3987
  /**
3665
- * Add a location
3666
- * @param source
3667
- * @param original
3988
+ * Constructor
3989
+ */
3990
+ constructor();
3991
+ /**
3992
+ * Constructor
3993
+ * @param sourcemaps
3994
+ */
3995
+ constructor(sourcemaps: string | SourceMapObject);
3996
+ /**
3997
+ * add source
3998
+ * @param id
3999
+ * @param fileName
4000
+ * @param content
4001
+ * @returns
4002
+ */
4003
+ addSourceContent(id: number, fileName: string | null, content: string | null): void;
4004
+ /**
4005
+ * Add multiple sourcemaps
4006
+ * @param maps
4007
+ * @throws
3668
4008
  */
3669
- add(newLine: number, newColumn: number, srcId: number, ln: number, col: number, sourceFileName: string, sourceContent: string): void;
4009
+ add(maps: Array<[newLine: number, newColumn: number, srcId: number, ln: number, col: number]>): void;
4010
+ /**
4011
+ * compute original positions
4012
+ */
4013
+ computePositions(): void;
4014
+ /**
4015
+ * retrieve original sources, lines and columns
4016
+ * @param line generated line
4017
+ * @param column generated column
4018
+ */
4019
+ find(line: number, column: number): Array<[string | null, number, number, string | null]> | null;
3670
4020
  /**
3671
4021
  * Convert to URL encoded string
3672
4022
  */
@@ -3689,7 +4039,7 @@ declare class LineMap {
3689
4039
  * Constructor
3690
4040
  * @param lines
3691
4041
  */
3692
- constructor(lines: number[]);
4042
+ constructor(lines?: number[]);
3693
4043
  /**
3694
4044
  * Compute line and column of the offset
3695
4045
  * @param offset
@@ -3711,17 +4061,13 @@ declare class LineMap {
3711
4061
  * add line start
3712
4062
  */
3713
4063
  addLineStart(lineStart: number): void;
3714
- /**
3715
- * clone the linemap
3716
- * @returns
3717
- */
3718
- clone(): LineMap;
3719
4064
  }
3720
4065
 
3721
4066
  /**
3722
4067
  * Source file helper class
3723
4068
  */
3724
4069
  declare class SourceFile {
4070
+ private inputSourceMap;
3725
4071
  /**
3726
4072
  * Source file ID
3727
4073
  */
@@ -3737,10 +4083,9 @@ declare class SourceFile {
3737
4083
  /**
3738
4084
  * Source file content
3739
4085
  */
3740
- private content;
4086
+ content: string;
3741
4087
  /**
3742
4088
  * Constructor
3743
- * @param id
3744
4089
  * @param content
3745
4090
  * @param lines
3746
4091
  * @param file
@@ -3749,7 +4094,6 @@ declare class SourceFile {
3749
4094
  /**
3750
4095
  * Update source content
3751
4096
  * @param content
3752
- * @param lines
3753
4097
  */
3754
4098
  append(content: string): void;
3755
4099
  /**
@@ -3791,10 +4135,19 @@ declare class SourceFile {
3791
4135
  * @param lineStart
3792
4136
  */
3793
4137
  addLineStart(lineStart: number): void;
4138
+ /**
4139
+ * set input source map
4140
+ * @param inputSourceMap
4141
+ */
4142
+ setInputSourceMap(inputSourceMap: SourceMapObject | string | null): void;
4143
+ /**
4144
+ * return input source map
4145
+ * @returns
4146
+ */
4147
+ getInputSourceMap(): SourceMap | null;
3794
4148
  }
3795
4149
 
3796
4150
  export declare interface PropertyListOptions {
3797
-
3798
4151
  removeDuplicateDeclarations?: boolean | string | string[];
3799
4152
  computeShorthand?: boolean;
3800
4153
  }
@@ -3803,11 +4156,6 @@ export declare interface PropertyListOptions {
3803
4156
  * parse info
3804
4157
  */
3805
4158
  export declare interface ParseInfo$1 {
3806
-
3807
- /**
3808
- * read buffer
3809
- */
3810
- buffer: string;
3811
4159
  /**
3812
4160
  * stream
3813
4161
  */
@@ -3817,7 +4165,7 @@ export declare interface ParseInfo$1 {
3817
4165
  * Source file
3818
4166
  */
3819
4167
  source: SourceFile;
3820
-
4168
+
3821
4169
  /**
3822
4170
  * last token position
3823
4171
  */
@@ -4055,6 +4403,28 @@ interface ValidationDimensionToken extends ValidationToken$1 {
4055
4403
  unit: keyof EnumToken;
4056
4404
  }
4057
4405
 
4406
+ /**
4407
+ * response type
4408
+ */
4409
+ declare enum ResponseType {
4410
+ /**
4411
+ * return text
4412
+ */
4413
+ Text = 0,
4414
+ /**
4415
+ * return a readable stream
4416
+ */
4417
+ ReadableStream = 1,
4418
+ /**
4419
+ * return an arraybuffer
4420
+ */
4421
+ ArrayBuffer = 2,
4422
+ /**
4423
+ * return a json object
4424
+ */
4425
+ JSON = 3
4426
+ }
4427
+
4058
4428
  interface PropertyType {
4059
4429
  shorthand: string;
4060
4430
  }
@@ -4567,6 +4937,25 @@ interface BorderRadius {
4567
4937
  keywords: string[];
4568
4938
  }
4569
4939
 
4940
+ /**
4941
+ * node walker options
4942
+ */
4943
+ export declare interface WalkerOptions {
4944
+ /**
4945
+ * walk in reverse
4946
+ */
4947
+ reverse?: boolean;
4948
+
4949
+ /**
4950
+ * Traverse node value tokens. If false, only traverse node children
4951
+ */
4952
+ inludeValues?: boolean;
4953
+ /**
4954
+ * filter function to control the walk
4955
+ */
4956
+ filter?: WalkerFilter;
4957
+ }
4958
+
4570
4959
  /**
4571
4960
  * node walker option
4572
4961
  */
@@ -4596,21 +4985,57 @@ export declare type WalkerValueFilter = (
4596
4985
  parent?: AstNode$1 | Token$1 | AstNode$1[] | Token$1[] | null,
4597
4986
  event?: WalkerEvent,
4598
4987
  parents?: Generator<Token$1>,
4599
- ) => WalkerOption | null;
4988
+ ) => WalkerOption | AstNode$1 | Token$1 | AstNode$1[] | Token$1[] | null;
4600
4989
 
4990
+ /**
4991
+ * walker result
4992
+ */
4601
4993
  export declare interface WalkResult {
4994
+ /**
4995
+ * current node
4996
+ */
4602
4997
  node: AstNode$1;
4998
+ /**
4999
+ * parent node
5000
+ */
4603
5001
  parent?: AstRuleList;
5002
+ /**
5003
+ * root node
5004
+ */
4604
5005
  root?: AstNode$1;
5006
+ /**
5007
+ * parent nodes
5008
+ */
4605
5009
  parents: Generator<AstNode$1>;
4606
5010
  }
4607
5011
 
5012
+ /**
5013
+ * walker result
5014
+ */
4608
5015
  export declare interface WalkAttributesResult {
5016
+ /**
5017
+ * current node
5018
+ */
4609
5019
  value: Token$1;
5020
+ /**
5021
+ * previous node
5022
+ */
4610
5023
  previousValue: Token$1 | null;
5024
+ /**
5025
+ * next node
5026
+ */
4611
5027
  nextValue: Token$1 | null;
5028
+ /**
5029
+ * root node
5030
+ */
4612
5031
  root?: AstNode$1 | Token$1 | null;
5032
+ /**
5033
+ * parent node
5034
+ */
4613
5035
  parent: AstNode$1 | Token$1 | null;
5036
+ /**
5037
+ * parent nodes
5038
+ */
4614
5039
  parents: Generator<Token$1>;
4615
5040
  }
4616
5041
 
@@ -4799,7 +5224,7 @@ export declare type LoadResult =
4799
5224
  | Promise<ReadableStream<Uint8Array>>
4800
5225
  | ReadableStream<Uint8Array>
4801
5226
  | string
4802
- | Promise<string>;
5227
+ | Promise<string> | object;
4803
5228
 
4804
5229
  /**
4805
5230
  * CSS module parser options
@@ -5040,21 +5465,52 @@ export declare interface ParseInputStreamOptions {
5040
5465
  input: string | ReadableStream<Uint8Array>;
5041
5466
  }
5042
5467
 
5468
+ /**
5469
+ * Input options for string or stream
5470
+ * @internal
5471
+ */
5043
5472
  export declare interface ParseSourceOptions {
5473
+ /**
5474
+ * Source file to be used for sourcemap
5475
+ * @internal
5476
+ */
5044
5477
  sourcesMap?: Map<number, SourceFile>;
5478
+ /**
5479
+ * Source file to be used for sourcemap
5480
+ * @internal
5481
+ */
5045
5482
  source?: SourceFile | null;
5046
5483
  }
5047
5484
 
5485
+ /**
5486
+ * Parser sourcemap options
5487
+ */
5488
+ export declare interface ParserSourceMapOptions {
5489
+ /**
5490
+ * Include sourcemap in the ast. Sourcemap info is always generated
5491
+ */
5492
+ sourcemap?: boolean | "inline";
5493
+ /**
5494
+ * Input source map
5495
+ */
5496
+ inputSourceMap?: SourceMapObject | string;
5497
+ }
5498
+
5499
+ /**
5500
+ * Sync parseroptions
5501
+ */
5048
5502
  export declare interface ParserSyncOptions
5049
- extends MinifyOptions, MinifyFeatureOptions, ValidationOptions, PropertyListOptions, ParseSourceOptions {
5503
+ extends
5504
+ MinifyOptions,
5505
+ ParserSourceMapOptions,
5506
+ MinifyFeatureOptions,
5507
+ ValidationOptions,
5508
+ PropertyListOptions,
5509
+ ParseSourceOptions {
5050
5510
  /**
5051
5511
  * Source file to be used for sourcemap
5052
5512
  */
5053
5513
  src?: string;
5054
- /**
5055
- * Include sourcemap in the ast. Sourcemap info is always generated
5056
- */
5057
- sourcemap?: boolean | "inline";
5058
5514
  /**
5059
5515
  * Remove at-rule charset
5060
5516
  */
@@ -5112,7 +5568,7 @@ export declare interface ParserSyncOptions
5112
5568
  * Node visitor
5113
5569
  * {@link VisitorSyncNodeMap | VisitorSyncNodeMap[]}
5114
5570
  */
5115
- visitor?: VisitorSyncNodeMap | VisitorSyncNodeMap[];
5571
+ visitor?: GenericVisitorAstNodeSyncHandlerMap<T> | VisitorSyncNodeMap | VisitorSyncNodeMap[];
5116
5572
  /**
5117
5573
  * Abort signal
5118
5574
  *
@@ -5177,7 +5633,11 @@ export declare interface ParserOptions extends ParserSyncOptions, ModuleAsyncOpt
5177
5633
  * Node visitor
5178
5634
  * {@link VisitorNodeMap | VisitorNodeMap[]}
5179
5635
  */
5180
- visitor?: VisitorNodeMap | VisitorNodeMap[];
5636
+ visitor?:
5637
+ | GenericVisitorAstNodeSyncHandlerMap<T>
5638
+ | GenericVisitorAstNodeHandlerMap<T>
5639
+ | VisitorNodeMap
5640
+ | VisitorNodeMap[];
5181
5641
  }
5182
5642
 
5183
5643
  /**
@@ -5256,6 +5716,11 @@ export declare interface ResolvedPath {
5256
5716
  * Ast node render options
5257
5717
  */
5258
5718
  export declare interface RenderOptions {
5719
+ /**
5720
+ * Source file to be used as CSS input file for sourcemap resolution
5721
+ */
5722
+ src?: string;
5723
+
5259
5724
  /**
5260
5725
  * Minify css values.
5261
5726
  */
@@ -5429,7 +5894,7 @@ export declare interface ParseResult {
5429
5894
  * CSS module variables
5430
5895
  * @private
5431
5896
  */
5432
- cssModuleVariables?: Record<string, CssVariableToken$1>;
5897
+ cssModuleVariables?: Record<string, CssVariableToken>;
5433
5898
 
5434
5899
  /**
5435
5900
  * css module import mapping
@@ -5648,86 +6113,107 @@ declare const resolve: (url: string, currentDirectory?: string, cwd?: string) =>
5648
6113
  };
5649
6114
 
5650
6115
  /**
5651
- * response type
6116
+ * Validation syntax
6117
+ * @internal
5652
6118
  */
5653
- declare enum ResponseType$1 {
6119
+ export declare interface ValidationSyntaxNode {
5654
6120
  /**
5655
- * return text
6121
+ * mdn data syntax
5656
6122
  */
5657
- Text = 0,
6123
+ syntax: string;
5658
6124
  /**
5659
- * return a readable stream
6125
+ * validation tokens
5660
6126
  */
5661
- ReadableStream = 1,
6127
+ ast?: ValidationToken[];
5662
6128
  /**
5663
- * return an arraybuffer
6129
+ * descriptors
5664
6130
  */
5665
- ArrayBuffer = 2
5666
- }
5667
-
5668
- export declare interface ValidationSyntaxNode {
5669
- syntax: string;
5670
- ast?: ValidationToken[];
5671
6131
  descriptors?: Record<string, Record<string, string>>;
5672
6132
  }
5673
6133
 
6134
+ /**
6135
+ * Validation selector options
6136
+ * @internal
6137
+ */
5674
6138
  interface ValidationSelectorOptions extends ValidationOptions {
6139
+ /**
6140
+ * nested selector
6141
+ */
5675
6142
  nestedSelector?: boolean;
5676
6143
  }
5677
6144
 
6145
+ /**
6146
+ * Validation media feature
6147
+ * @internal
6148
+ */
5678
6149
  export declare interface ValidationMediaFeature {
6150
+ /**
6151
+ * media feature type
6152
+ */
5679
6153
  type: MediaFeatureType;
6154
+ /**
6155
+ * media feature status
6156
+ */
5680
6157
  status?: string;
6158
+ /**
6159
+ * media feature category
6160
+ */
5681
6161
  category: string;
6162
+ /**
6163
+ * media feature values
6164
+ */
5682
6165
  values?: Array<string> | Array<number>;
5683
6166
  }
5684
6167
 
6168
+ /**
6169
+ * Validation configuration
6170
+ * @internal
6171
+ */
5685
6172
  export declare type ValidationConfiguration = Record<
5686
6173
  ValidationSyntaxGroupEnum,
5687
6174
  ValidationSyntaxNode | Record<string, string[]> | Record<string, ValidationMediaFeature>
5688
6175
  >;
5689
6176
 
6177
+ /**
6178
+ * Validation result
6179
+ * @internal
6180
+ */
5690
6181
  interface ValidationResult {
6182
+ /**
6183
+ * validation result
6184
+ */
5691
6185
  valid: SyntaxValidationResult;
6186
+ /**
6187
+ * node
6188
+ */
5692
6189
  node: AstNode$1 | Token$1 | null;
6190
+ /**
6191
+ * syntax
6192
+ */
5693
6193
  syntax: ValidationToken | string | null;
6194
+ /**
6195
+ * error
6196
+ */
5694
6197
  error: string;
6198
+ /**
6199
+ * cycle
6200
+ */
5695
6201
  cycle?: boolean;
5696
6202
  }
5697
6203
 
6204
+ /**
6205
+ * Validation syntax result
6206
+ * @internal
6207
+ */
5698
6208
  interface ValidationSyntaxResult extends ValidationResult {
6209
+ /**
6210
+ * syntax
6211
+ */
5699
6212
  syntax: ValidationToken | string | null;
5700
- context: Context<Token$1> | Token$1[];
5701
- }
5702
-
5703
- interface Context<Type> {
5704
- index: number;
5705
-
5706
6213
  /**
5707
- * The length of the context tokens to be consumed
6214
+ * context
5708
6215
  */
5709
-
5710
- readonly length: number;
5711
-
5712
- current<Type>(): Type | null;
5713
-
5714
- update<Type>(context: Context<Type>): void;
5715
-
5716
- consume<Type>(token: Type, howMany?: number): boolean;
5717
-
5718
- peek<Type>(): Type | null;
5719
-
5720
- // tokens<Type>(): Type[];
5721
-
5722
- next<Type>(): Type | null;
5723
-
5724
- consume<Type>(token: Type, howMany?: number): boolean;
5725
-
5726
- slice<Type>(): Type[];
5727
-
5728
- clone<Type>(): Context<Type>;
5729
-
5730
- done(): boolean;
6216
+ context: ValidationContext<Token$1> | Token$1[];
5731
6217
  }
5732
6218
 
5733
6219
  /**
@@ -5793,6 +6279,9 @@ declare function parseString(src: string, options?: {
5793
6279
  * render ast token
5794
6280
  * @param token
5795
6281
  * @param options
6282
+ * @param cache
6283
+ * @param reducer
6284
+ * @param errors
5796
6285
  * @private
5797
6286
  */
5798
6287
  declare function renderValue(token: Token$1, options?: RenderOptions, cache?: {
@@ -5833,7 +6322,7 @@ declare function okLabDistance(color1: ColorToken, color2: ColorToken): number |
5833
6322
  declare function isOkLabClose(color1: ColorToken, color2: ColorToken, threshold?: number): boolean;
5834
6323
 
5835
6324
  /**
5836
- * Search the ast sub-tree and return the first match
6325
+ * Search the ast subtree and return the first match
5837
6326
  *
5838
6327
  * ```ts
5839
6328
  * // find the first ast declaration node which name is 'aspect-ratio'
@@ -5865,6 +6354,11 @@ button {
5865
6354
  */
5866
6355
  declare function find(ast: AstNode$1, matcher: (node: AstNode$1, parent?: AstNode$1 | null) => boolean): AstNode$1 | null;
5867
6356
  /**
6357
+ *
6358
+ * @param ast
6359
+ * @param matcher
6360
+ * @returns
6361
+ *
5868
6362
  * Search the ast sub-tree by checking each node's value token and return the first match
5869
6363
  *
5870
6364
  ```ts
@@ -5890,10 +6384,6 @@ button {
5890
6384
  console.log({node, value});
5891
6385
 
5892
6386
  ```
5893
- *
5894
- * @param ast
5895
- * @param matcher
5896
- * @returns
5897
6387
  */
5898
6388
  declare function findByValue(ast: AstNode$1, matcher: AstValueMatcher): {
5899
6389
  node: AstNode$1;
@@ -5988,8 +6478,78 @@ declare function replaceNodeOrValue(parent: BinaryExpressionToken | (AstNode$1 &
5988
6478
  chi: Token$1[];
5989
6479
  } | {
5990
6480
  val: Token$1[];
6481
+ })) | (Token$1 & ({
6482
+ chi: Token$1[];
6483
+ } | {
6484
+ val: Token$1[];
5991
6485
  })), node: Token$1, replacement: Token$1 | Token$1[]): boolean;
5992
6486
 
6487
+ /**
6488
+ *
6489
+ * @param node
6490
+ * @param key
6491
+ */
6492
+ declare function getNodeProperty(node: AstNode$1, key: 'parent'): AstNode$1 | Token$1 | null;
6493
+ /**
6494
+ *
6495
+ * @param node
6496
+ * @param key
6497
+ */
6498
+ declare function getNodeProperty(node: AstNode$1, key: 'location'): SourceLocation | null;
6499
+ /**
6500
+ *
6501
+ * @param node
6502
+ * @param key
6503
+ */
6504
+ declare function getNodeProperty(node: AstNode$1, key: 'state'): EnumAstNodeStatus$1 | null;
6505
+ /**
6506
+ *
6507
+ * @param node
6508
+ * @param key
6509
+ */
6510
+ declare function getNodeProperty(node: AstNode$1, key: 'errors'): ErrorDescription$1[] | null;
6511
+ /**
6512
+ *
6513
+ * @param node
6514
+ * @param key
6515
+ */
6516
+ declare function getNodeProperty(node: AstNode$1, key: 'tokens'): Token$1[] | null;
6517
+ /**
6518
+ *
6519
+ * @param node
6520
+ * @param key
6521
+ * @param value
6522
+ */
6523
+ declare function setNodeProperty(node: AstNode$1, key: 'parent', value: AstNode$1 | Token$1 | null): void;
6524
+ /**
6525
+ *
6526
+ * @param node
6527
+ * @param key
6528
+ * @param value
6529
+ */
6530
+ declare function setNodeProperty(node: AstNode$1, key: 'location', value: SourceLocation | null): void;
6531
+ /**
6532
+ *
6533
+ * @param node
6534
+ * @param key
6535
+ * @param value
6536
+ */
6537
+ declare function setNodeProperty(node: AstNode$1, key: 'state', value: EnumAstNodeStatus$1 | null): void;
6538
+ /**
6539
+ *
6540
+ * @param node
6541
+ * @param key
6542
+ * @param value
6543
+ */
6544
+ declare function setNodeProperty(node: AstNode$1, key: 'errors', value: ErrorDescription$1[] | null): void;
6545
+ /**
6546
+ *
6547
+ * @param node
6548
+ * @param key
6549
+ * @param value
6550
+ */
6551
+ declare function setNodeProperty(node: AstNode$1, key: 'tokens', value: Token$1[] | null): void;
6552
+
5993
6553
  /**
5994
6554
  * Load file or url
5995
6555
  * @param url
@@ -6005,7 +6565,7 @@ declare function replaceNodeOrValue(parent: BinaryExpressionToken | (AstNode$1 &
6005
6565
  declare function load(url: string | {
6006
6566
  absolute: string;
6007
6567
  relative: string;
6008
- }, currentDirectory?: string, responseType?: boolean | ResponseType$1): Promise<string | ArrayBuffer | ReadableStream<Uint8Array<ArrayBufferLike>>>;
6568
+ }, currentDirectory?: string, responseType?: boolean | ResponseType): Promise<string | ArrayBuffer | ReadableStream<Uint8Array<ArrayBufferLike>>>;
6009
6569
  /**
6010
6570
  * Render the ast tree
6011
6571
  * @param data
@@ -6040,7 +6600,7 @@ declare function render(data: AstNode$1, options?: RenderOptions, mapping?: {
6040
6600
  importMapping: Record<string, Record<string, string>> | null;
6041
6601
  } | null): RenderResult;
6042
6602
  /**
6043
- * Parse css file
6603
+ * Parse CSS file
6044
6604
  * @param file url or path
6045
6605
  * @param options
6046
6606
  * @param asStream load file as stream
@@ -6066,7 +6626,7 @@ declare function render(data: AstNode$1, options?: RenderOptions, mapping?: {
6066
6626
  */
6067
6627
  declare const parseFile: (file: string, options?: ParserOptions, asStream?: boolean) => Promise<ParseResult>;
6068
6628
  /**
6069
- * Parse css string
6629
+ * Parse CSS string
6070
6630
  * @param stream
6071
6631
  * @param options
6072
6632
  *
@@ -6074,72 +6634,69 @@ declare const parseFile: (file: string, options?: ParserOptions, asStream?: bool
6074
6634
  *
6075
6635
  * ```ts
6076
6636
  *
6077
- * import {parse} from '@tbela99/css-parser';
6637
+ * import {parseSync} from '@tbela99/css-parser';
6078
6638
  *
6079
6639
  * // css string
6080
- * let result = await parse(css, {nestingRules: true});
6640
+ * let result = parseSync(css, {nestingRules: true});
6081
6641
  * console.log(result.ast);
6082
6642
  * ```
6083
6643
  *
6084
6644
  */
6085
6645
  declare function parseSync(stream: string, options?: ParserSyncOptions): ParseResult;
6086
6646
  /**
6087
- * Parse css string
6088
- * @param stream
6647
+ * Parse CSS string
6089
6648
  * @param options
6090
6649
  *
6091
6650
  * Parsing a string
6092
6651
  *
6093
6652
  * ```ts
6094
6653
  *
6095
- * import {parse} from '@tbela99/css-parser';
6654
+ * import {parseSync} from '@tbela99/css-parser';
6096
6655
  *
6097
6656
  * // css string
6098
- * let result = await parse({input: css, nestingRules: true});
6657
+ * let result = parseSync({input: css, nestingRules: true});
6099
6658
  * console.log(result.ast);
6100
6659
  * ```
6101
6660
  *
6102
6661
  */
6103
6662
  declare function parseSync(options: ParseInputOptions & ParserSyncOptions): ParseResult;
6104
6663
  /**
6105
- * Transform css
6664
+ * Transform CSS
6106
6665
  * @param css
6107
6666
  * @param options
6108
6667
  *
6109
6668
  *
6110
6669
  * ```ts
6111
6670
  *
6112
- * import {transform} from '@tbela99/css-parser';
6671
+ * import {transformSync} from '@tbela99/css-parser';
6113
6672
  *
6114
6673
  * // css string
6115
- * const result = await transform(css, {beautify: true});
6674
+ * const result = transformSync(css, {beautify: true});
6116
6675
  * console.log(result.code);
6117
6676
  * ```
6118
6677
  *
6119
6678
  */
6120
6679
  declare function transformSync(css: string, options?: TransformSyncOptions): TransformResult;
6121
6680
  /**
6122
- * Transform css
6681
+ * Transform CSS
6123
6682
  * @param options
6124
6683
  *
6125
6684
  * ```ts
6126
6685
  *
6127
- * import {transform} from '@tbela99/css-parser';
6686
+ * import {transformSync} from '@tbela99/css-parser';
6128
6687
  *
6129
6688
  * // css string
6130
- * const result = await transform({input: css, beautify: true});
6689
+ * const result = transformSync({input: css, beautify: true});
6131
6690
  * console.log(result.code);
6132
6691
  * ```
6133
6692
  *
6134
6693
  */
6135
6694
  declare function transformSync(options: ParseInputOptions & TransformSyncOptions): TransformResult;
6136
6695
  /**
6137
- * Parse css
6696
+ * Parse CSS
6138
6697
  * @param stream
6139
6698
  * @param options
6140
6699
  *
6141
- * @throws Error file not found
6142
- *
6143
6700
  * Example:
6144
6701
  *
6145
6702
  * ```ts
@@ -6151,7 +6708,7 @@ declare function transformSync(options: ParseInputOptions & TransformSyncOptions
6151
6708
  * console.log(result.ast);
6152
6709
  * ```
6153
6710
  *
6154
- * parsing a Readable stream
6711
+ * parsing a ReadableStream
6155
6712
  *
6156
6713
  * ```ts
6157
6714
  *
@@ -6166,7 +6723,7 @@ declare function transformSync(options: ParseInputOptions & TransformSyncOptions
6166
6723
  * console.log(result.ast);
6167
6724
  * ```
6168
6725
  *
6169
- * Example using fetch and readable stream
6726
+ * Parsing a file as a ReadableStream
6170
6727
  *
6171
6728
  * ```ts
6172
6729
  *
@@ -6180,8 +6737,7 @@ declare function transformSync(options: ParseInputOptions & TransformSyncOptions
6180
6737
  */
6181
6738
  declare function parse(stream: string | ReadableStream<Uint8Array>, options?: ParserOptions): Promise<ParseResult>;
6182
6739
  /**
6183
- * Parse css
6184
- * @param stream
6740
+ * Parse CSS
6185
6741
  * @param options
6186
6742
  *
6187
6743
  * @throws Error file not found
@@ -6213,8 +6769,7 @@ declare function parse(stream: string | ReadableStream<Uint8Array>, options?: Pa
6213
6769
  */
6214
6770
  declare function parse(options: ParseInputFileOptions & ParserOptions): Promise<ParseResult>;
6215
6771
  /**
6216
- * Parse css
6217
- * @param stream
6772
+ * Parse CSS
6218
6773
  * @param options
6219
6774
  *
6220
6775
  * Parsing a string
@@ -6255,7 +6810,7 @@ declare function parse(options: ParseInputFileOptions & ParserOptions): Promise<
6255
6810
  */
6256
6811
  declare function parse(options: ParseInputStreamOptions & ParserOptions): Promise<ParseResult>;
6257
6812
  /**
6258
- * Transform css file
6813
+ * Transform CSS file
6259
6814
  * @param file url or path
6260
6815
  * @param options
6261
6816
  * @param asStream load file as stream
@@ -6280,7 +6835,7 @@ declare function parse(options: ParseInputStreamOptions & ParserOptions): Promis
6280
6835
  */
6281
6836
  declare const transformFile: (file: string, options?: TransformOptions, asStream?: boolean) => Promise<TransformResult>;
6282
6837
  /**
6283
- * Transform css
6838
+ * Transform CSS
6284
6839
  * @param css
6285
6840
  * @param options
6286
6841
  *
@@ -6324,8 +6879,7 @@ declare const transformFile: (file: string, options?: TransformOptions, asStream
6324
6879
  */
6325
6880
  declare function transform(css: string | ReadableStream<Uint8Array>, options?: TransformOptions): Promise<TransformResult>;
6326
6881
  /**
6327
- * Transform css
6328
- * @param css
6882
+ * Transform CSS
6329
6883
  * @param options
6330
6884
  *
6331
6885
  * Parsing a string
@@ -6354,7 +6908,7 @@ declare function transform(css: string | ReadableStream<Uint8Array>, options?: T
6354
6908
  * console.log(result.code);
6355
6909
  * ```
6356
6910
  *
6357
- * Example using fetch
6911
+ * Parse a file as a ReadableStream
6358
6912
  *
6359
6913
  * ```ts
6360
6914
  *
@@ -6368,48 +6922,20 @@ declare function transform(css: string | ReadableStream<Uint8Array>, options?: T
6368
6922
  */
6369
6923
  declare function transform(options: ParseInputStreamOptions & TransformOptions): Promise<TransformResult>;
6370
6924
  /**
6371
- * Transform css
6372
- * @param css
6925
+ * Transform CSS
6373
6926
  * @param options
6374
6927
  *
6375
- * Parsing a string
6376
- *
6377
- * ```ts
6378
- *
6379
- * import {transform} from '@tbela99/css-parser';
6380
- *
6381
- * // css string
6382
- * const result = await transform({input: css});
6383
- * console.log(result.code);
6384
- * ```
6385
- *
6386
- * Parsing a Readable stream
6928
+ * Parsing a file
6387
6929
  *
6388
6930
  * ```ts
6389
6931
  *
6390
6932
  * import {transform} from '@tbela99/css-parser';
6391
- * import {Readable} from "node:stream";
6392
- *
6393
- * // usage: node index.ts < styles.css or cat styles.css | node index.ts
6394
- *
6395
- * const readableStream = Readable.toWeb(process.stdin);
6396
- * const result = await transform( {input: readableStream, beautify: true});
6397
- *
6398
- * console.log(result.code);
6399
- * ```
6400
- *
6401
- * Example using fetch
6402
- *
6403
- * ```ts
6404
- *
6405
- * import {transform} from '@tbela99/css-parser';
6406
- *
6407
- * result = await transform({file: 'https://docs.deno.com/styles.css', beautify: true});
6408
6933
  *
6934
+ * const result = await transform( {file: 'https://docs.deno.com/styles.css', beautify: true});
6409
6935
  * console.log(result.code);
6410
6936
  * ```
6411
6937
  */
6412
6938
  declare function transform(options: ParseInputFileOptions & TransformOptions): Promise<TransformResult>;
6413
6939
 
6414
- export { ColorType$1 as ColorType, EnumAstNodeStatus$1 as EnumAstNodeStatus, EnumToken, FeatureWalkMode, ModuleCaseTransformEnum, ModuleScopeEnumOptions, ResponseType$1 as ResponseType, SourceMap, ValidationLevel, WalkerEvent, WalkerOptionEnum, cloneNode, convertColor, dirname, expand, find, findAll, findByValue, findLast, isOkLabClose, load, minify, okLabDistance, parse, parseDeclarations, parseFile, parseString, parseSync, render, renderValue as renderToken, replaceNodeOrValue, resolve, transform, transformFile, transformSync, walk, walkValues };
6415
- export type { AddToken, AndToken, AngleToken, AstAtRule, AstComment, AstDeclaration, AstInvalidAtRule, AstInvalidDeclaration, AstInvalidRule, AstKeyFrameRule, AstKeyframesAtRule, AstKeyframesRule, AstNode$1 as AstNode, AstNodeStatus, AstRule, AstRuleList, AstStyleSheet, AstValueMatcher, AtRuleToken, AtRuleVisitorHandler, AttrEndToken, AttrStartToken, AttrToken, Background, BackgroundAttachmentMapping, BackgroundPosition, BackgroundPositionClass, BackgroundPositionConstraints, BackgroundPositionMapping, BackgroundProperties, BackgroundRepeat, BackgroundRepeatMapping, BackgroundSize, BackgroundSizeMapping, BadCDOCommentToken, BadCommentToken, BadStringToken, BadUrlToken, BaseToken, BinaryExpressionNode, BinaryExpressionToken, BlockEndToken, BlockStartToken, Border, BorderColor, BorderColorClass, BorderProperties, BorderRadius, CDOCommentToken, ChildCombinatorToken, ClassSelectorToken, ColonToken, ColorToken, ColumnCombinatorToken, CommaToken, CommentToken, ComposesSelectorToken, ConstraintsMapping, ContainMatchToken, ContainerStyleRangeToken, Context, CssVariableImportTokenType$1 as CssVariableImportTokenType, CssVariableMapTokenType, CssVariableToken$1 as CssVariableToken, DashMatchToken, DashedIdentToken, DeclarationVisitorHandler, DelimToken, DescendantCombinatorToken, DimensionToken, DivToken, DoubleColonToken, EOFToken, EndMatchToken, EqualMatchToken, ErrorDescription$1 as ErrorDescription, FlexToken, Font, FontFamily, FontProperties, FontWeight, FontWeightConstraints, FontWeightMapping, FractionToken, FrequencyToken, FunctionDefToken, FunctionImageToken, FunctionToken, FunctionURLToken, GenericVisitorAstNodeHandlerMap, GenericVisitorAstNodeSyncHandlerMap, GenericVisitorAsyncResult, GenericVisitorHandler, GenericVisitorResult, GenericVisitorSyncHandler, GenericVisitorSyncResult, GreaterThanOrEqualToken, GreaterThanToken, GridTemplateFuncToken, HashToken, IdentListToken, IdentToken, IfConditionToken, IfElseConditionToken, ImportantToken, IncludeMatchToken, InvalidAttrToken, InvalidClassSelectorToken, InvalidMediaQueryToken, LengthToken, LessThanOrEqualToken, LessThanToken, LineHeight, ListToken, LiteralToken, LoadResult, Map$1 as Map, MatchExpressionToken, MatchedSelector, MediaFeatureOnlyToken, MediaFeatureToken, MediaQueryConditionToken, MediaQueryUnaryFeatureToken, MediaRangeQueryToken, MinifyFeature, MinifyFeatureOptions, MinifyOptions, ModuleAsyncOptions, ModuleSyncOptions, MulToken, NameSpaceAttributeToken, NestingSelectorToken, NextSiblingCombinatorToken, NotToken, NumberToken, OptimizedSelector, OptimizedSelectorToken, OrToken, Outline, OutlineProperties, ParensEndToken, ParensStartToken, ParensToken, ParseInfo$1 as ParseInfo, ParseInputFileOptions, ParseInputOptions, ParseInputStreamOptions, ParseResult, ParseResultStats, ParseSourceOptions, ParseTokenOptions, ParserOptions, ParserSyncOptions, PercentageToken, Prefix, PropertiesConfig, PropertiesConfigProperties, PropertyListOptions, PropertyMapType, PropertySetType, PropertyType, PseudoClassFunctionToken, PseudoClassToken, PseudoElementToken, PseudoPageToken, PurpleBackgroundAttachment, RawNodeToken, RawSelectorTokens, RenderOptions, RenderResult, ResolutionToken, ResolvedPath, RuleVisitorHandler, SemiColonToken, Separator, ShorthandDef, ShorthandMapType, ShorthandProperties, ShorthandPropertyType, ShorthandType, SinglePropertyType, SinglePropertyTypeMapping, SourceLocation, SourceMapObject, StartMatchToken, StringToken, SubToken, SubsequentCombinatorToken, SupportsQueryConditionToken, SupportsQueryUnaryConditionToken, TimeToken, TimelineFunctionToken, TimingFunctionToken, Token$1 as Token, TokenSearchResult, TokenizeResult, TransformOptions, TransformResult, TransformSyncOptions, UnaryExpression, UnaryExpressionNode, UnclosedStringToken, UniversalSelectorToken, UrlToken, ValidationConfiguration, ValidationMediaFeature, ValidationOptions, ValidationResult, ValidationSelectorOptions, ValidationSyntaxNode, ValidationSyntaxResult, ValidationToken$1 as ValidationToken, Value, ValueVisitorHandler, ValueVisitorSyncHandler, VariableScopeInfo, VisitorNodeMap, VisitorSyncNodeMap, WalkAttributesResult, WalkResult, WalkerFilter, WalkerOption, WalkerValueFilter, WhenElseQueryConditionToken, WhenElseUnaryConditionToken, WhitespaceToken, WrappedValuesToken };
6940
+ export { ColorType$1 as ColorType, EnumAstNodeStatus$1 as EnumAstNodeStatus, EnumToken, FeatureWalkMode, ModuleCaseTransformEnum, ModuleScopeEnumOptions, ResponseType, SourceMap, ValidationLevel, WalkerEvent, WalkerOptionEnum, cloneNode, convertColor, dirname, expand, find, findAll, findByValue, findLast, getNodeProperty, isOkLabClose, load, minify, okLabDistance, parse, parseDeclarations, parseFile, parseString, parseSync, render, renderValue as renderToken, replaceNodeOrValue, resolve, setNodeProperty, transform, transformFile, transformSync, walk, walkValues };
6941
+ export type { AddToken, AndToken, AngleToken, AstAtRule, AstComment, AstDeclaration, AstInvalidAtRule, AstInvalidDeclaration, AstInvalidRule, AstKeyframesAtRule, AstKeyframesRule, AstNode$1 as AstNode, AstNodeStatus, AstRule, AstRuleList, AstStyleSheet, AstValueMatcher, AtRuleToken, AtRuleVisitorHandler, AttrEndToken, AttrStartToken, AttrToken, Background, BackgroundAttachmentMapping, BackgroundPosition, BackgroundPositionClass, BackgroundPositionConstraints, BackgroundPositionMapping, BackgroundProperties, BackgroundRepeat, BackgroundRepeatMapping, BackgroundSize, BackgroundSizeMapping, BadCDOCommentToken, BadCommentToken, BadStringToken, BadUrlToken, BaseToken, BinaryExpressionNode, BinaryExpressionToken, BlockEndToken, BlockStartToken, Border, BorderColor, BorderColorClass, BorderProperties, BorderRadius, CDOCommentToken, ChildCombinatorToken, ClassSelectorToken, ColonToken, ColorToken, ColumnCombinatorToken, CommaToken, CommentToken, ComposesSelectorToken, ConstraintsMapping, ContainMatchToken, ContainerStyleRangeToken, CssVariableImportTokenType, CssVariableMapTokenType, CssVariableToken, DashMatchToken, DashedIdentToken, DeclarationVisitorHandler, DelimToken, DescendantCombinatorToken, DimensionToken, DivToken, DoubleColonToken, EOFToken, EndMatchToken, EqualMatchToken, ErrorDescription$1 as ErrorDescription, FlexToken, Font, FontFamily, FontProperties, FontWeight, FontWeightConstraints, FontWeightMapping, FractionToken, FrequencyToken, FunctionDefToken, FunctionImageToken, FunctionToken, FunctionURLToken, GenericVisitorAstNodeHandlerMap, GenericVisitorAstNodeSyncHandlerMap, GenericVisitorAsyncResult, GenericVisitorHandler, GenericVisitorResult, GenericVisitorSyncHandler, GenericVisitorSyncResult, GreaterThanOrEqualToken, GreaterThanToken, GridTemplateFuncToken, HashToken, IdentListToken, IdentToken, IfConditionToken, IfElseConditionToken, ImportantToken, IncludeMatchToken, InvalidAttrToken, InvalidClassSelectorToken, InvalidMediaQueryToken, LengthToken, LessThanOrEqualToken, LessThanToken, LineHeight, ListToken, LiteralToken, LoadResult, Map$1 as Map, MatchExpressionToken, MatchedSelector, MediaFeatureOnlyToken, MediaFeatureToken, MediaQueryConditionToken, MediaQueryUnaryFeatureToken, MediaRangeQueryToken, MinifyFeature, MinifyFeatureOptions, MinifyOptions, ModuleAsyncOptions, ModuleSyncOptions, MulToken, NameSpaceAttributeToken, NestingSelectorToken, NextSiblingCombinatorToken, NotToken, NumberToken, OptimizedSelector, OptimizedSelectorToken, OrToken, Outline, OutlineProperties, ParensEndToken, ParensStartToken, ParensToken, ParseInfo$1 as ParseInfo, ParseInputFileOptions, ParseInputOptions, ParseInputStreamOptions, ParseResult, ParseResultStats, ParseSourceOptions, ParseTokenOptions, ParserOptions, ParserSourceMapOptions, ParserSyncOptions, PercentageToken, Prefix, PropertiesConfig, PropertiesConfigProperties, PropertyListOptions, PropertyMapType, PropertySetType, PropertyType, PseudoClassFunctionToken, PseudoClassToken, PseudoElementToken, PseudoPageToken, PurpleBackgroundAttachment, RawNodeToken, RawSelectorTokens, RenderOptions, RenderResult, ResolutionToken, ResolvedPath, RuleVisitorHandler, SemiColonToken, Separator, ShorthandDef, ShorthandMapType, ShorthandProperties, ShorthandPropertyType, ShorthandType, SinglePropertyType, SinglePropertyTypeMapping, SourceLocation, SourceMapObject, StartMatchToken, StringToken, SubToken, SubsequentCombinatorToken, SupportsQueryConditionToken, SupportsQueryUnaryConditionToken, TimeToken, TimelineFunctionToken, TimingFunctionToken, Token$1 as Token, TokenSearchResult, TokenizeResult, TransformOptions, TransformResult, TransformSyncOptions, UnaryExpression, UnaryExpressionNode, UnclosedStringToken, UniversalSelectorToken, UrlToken, ValidationConfiguration, ValidationMediaFeature, ValidationOptions, ValidationResult, ValidationSelectorOptions, ValidationSyntaxNode, ValidationSyntaxResult, ValidationToken$1 as ValidationToken, Value, ValueVisitorHandler, ValueVisitorSyncHandler, VariableScopeInfo, VisitorNodeMap, VisitorSyncNodeMap, WalkAttributesResult, WalkResult, WalkerFilter, WalkerOption, WalkerOptions, WalkerValueFilter, WhenElseQueryConditionToken, WhenElseUnaryConditionToken, WhitespaceToken, WrappedValuesToken };