wikiparser-node 1.37.0 → 1.38.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,6 @@
7
7
  "\\alpha",
8
8
  "\\Alpha",
9
9
  "\\amalg",
10
- "\\and",
11
10
  "\\And",
12
11
  "\\angle",
13
12
  "\\approx",
@@ -29,7 +28,6 @@
29
28
  "\\backslash",
30
29
  "\\bar",
31
30
  "\\barwedge",
32
- "\\Bbb",
33
31
  "\\Bbbk",
34
32
  "\\bcancel",
35
33
  "\\because",
@@ -72,8 +70,8 @@
72
70
  "\\blacktriangleleft",
73
71
  "\\blacktriangleright",
74
72
  "\\bmod",
75
- "\\bold",
76
73
  "\\boldsymbol",
74
+ "\\bond",
77
75
  "\\bot",
78
76
  "\\bowtie",
79
77
  "\\Box",
@@ -86,7 +84,7 @@
86
84
  "\\bullet",
87
85
  "\\bumpeq",
88
86
  "\\Bumpeq",
89
- "\\C",
87
+ "\\ca",
90
88
  "\\cal",
91
89
  "\\cancel",
92
90
  "\\cancelto",
@@ -94,6 +92,7 @@
94
92
  "\\Cap",
95
93
  "\\cdot",
96
94
  "\\cdots",
95
+ "\\ce",
97
96
  "\\centerdot",
98
97
  "\\cfrac",
99
98
  "\\check",
@@ -185,7 +184,6 @@
185
184
  "\\emph",
186
185
  "\\empty",
187
186
  "\\emptyset",
188
- "\\end",
189
187
  "\\epsilon",
190
188
  "\\Epsilon",
191
189
  "\\eqcirc",
@@ -234,8 +232,6 @@
234
232
  "\\gtrless",
235
233
  "\\gtrsim",
236
234
  "\\gvertneqq",
237
- "\\H",
238
- "\\hAar",
239
235
  "\\harr",
240
236
  "\\hArr",
241
237
  "\\Harr",
@@ -442,7 +438,6 @@
442
438
  "\\ominus",
443
439
  "\\operatorname",
444
440
  "\\oplus",
445
- "\\or",
446
441
  "\\oslash",
447
442
  "\\otimes",
448
443
  "\\over",
@@ -456,7 +451,6 @@
456
451
  "\\P",
457
452
  "\\pagecolor",
458
453
  "\\parallel",
459
- "\\part",
460
454
  "\\partial",
461
455
  "\\perp",
462
456
  "\\phantom",
@@ -672,6 +666,7 @@
672
666
  "\\vartriangleright",
673
667
  "\\varUpsilon",
674
668
  "\\varXi",
669
+ "\\vbox",
675
670
  "\\vdash",
676
671
  "\\vDash",
677
672
  "\\Vdash",
@@ -5,21 +5,18 @@
5
5
  "\\accentus",
6
6
  "\\accepts",
7
7
  "\\acciaccatura",
8
- "\\accidental",
9
8
  "\\accidentalStyle",
10
9
  "\\addChordShape",
11
10
  "\\addInstrumentDefinition",
12
11
  "\\addlyrics",
13
12
  "\\addQuote",
14
13
  "\\aeolian",
15
- "\\after",
16
14
  "\\afterGrace",
17
15
  "\\aikenHeads",
18
16
  "\\aikenHeadsMinor",
19
17
  "\\aikenThinHeads",
20
18
  "\\aikenThinHeadsMinor",
21
19
  "\\alias",
22
- "\\align-on-other",
23
20
  "\\allowPageTurn",
24
21
  "\\allowVoltaHook",
25
22
  "\\alterBroken",
@@ -72,8 +69,6 @@
72
69
  "\\beam",
73
70
  "\\beamExceptions",
74
71
  "\\bendAfter",
75
- "\\bendHold",
76
- "\\bendStartLevel",
77
72
  "\\blackTriangleMarkup",
78
73
  "\\bold",
79
74
  "\\book",
@@ -81,7 +76,6 @@
81
76
  "\\bookOutputSuffix",
82
77
  "\\bookpart",
83
78
  "\\box",
84
- "\\bp",
85
79
  "\\bracket",
86
80
  "\\break",
87
81
  "\\breathe",
@@ -103,7 +97,6 @@
103
97
  "\\clef",
104
98
  "\\cm",
105
99
  "\\coda",
106
- "\\codaMark",
107
100
  "\\column",
108
101
  "\\column-lines",
109
102
  "\\combine",
@@ -182,8 +175,6 @@
182
175
  "\\easyHeadsOff",
183
176
  "\\easyHeadsOn",
184
177
  "\\ellipse",
185
- "\\EnableGregorianDivisiones",
186
- "\\enablePolymeter",
187
178
  "\\endcr",
188
179
  "\\enddecr",
189
180
  "\\endSpanners",
@@ -202,14 +193,12 @@
202
193
  "\\fff",
203
194
  "\\ffff",
204
195
  "\\fffff",
205
- "\\figured-bass",
206
196
  "\\figuremode",
207
197
  "\\figures",
208
198
  "\\fill-line",
209
199
  "\\fill-with-pattern",
210
200
  "\\filled-box",
211
201
  "\\finalis",
212
- "\\fine",
213
202
  "\\finger",
214
203
  "\\first-visible",
215
204
  "\\fixed",
@@ -231,7 +220,6 @@
231
220
  "\\funkHeadsMinor",
232
221
  "\\general-align",
233
222
  "\\germanChords",
234
- "\\glide",
235
223
  "\\glissando",
236
224
  "\\glissandoMap",
237
225
  "\\grace",
@@ -259,9 +247,8 @@
259
247
  "\\hspace",
260
248
  "\\huge",
261
249
  "\\ictus",
262
- "\\if",
263
- "\\IIJ",
264
250
  "\\iij",
251
+ "\\IIJ",
265
252
  "\\ij",
266
253
  "\\IJ",
267
254
  "\\improvisationOff",
@@ -269,7 +256,6 @@
269
256
  "\\in",
270
257
  "\\incipit",
271
258
  "\\inclinatum",
272
- "\\include",
273
259
  "\\inherit-acceptability",
274
260
  "\\inStaffSegno",
275
261
  "\\instrumentSwitch",
@@ -278,7 +264,6 @@
278
264
  "\\ionian",
279
265
  "\\italianChords",
280
266
  "\\italic",
281
- "\\jump",
282
267
  "\\justified-lines",
283
268
  "\\justify",
284
269
  "\\justify-field",
@@ -320,7 +305,7 @@
320
305
  "\\major",
321
306
  "\\makeClusters",
322
307
  "\\makeDefaultStringTuning",
323
- "\\map-commands",
308
+ "\\map-markup-commands",
324
309
  "\\marcato",
325
310
  "\\mark",
326
311
  "\\markalphabet",
@@ -347,7 +332,6 @@
347
332
  "\\modalTranspose",
348
333
  "\\mordent",
349
334
  "\\mp",
350
- "\\multi-measure-rest-by-number",
351
335
  "\\musicglyph",
352
336
  "\\musicMap",
353
337
  "\\n",
@@ -386,7 +370,6 @@
386
370
  "\\overrideTimeSignatureSettings",
387
371
  "\\overtie",
388
372
  "\\p",
389
- "\\pad",
390
373
  "\\pad-around",
391
374
  "\\pad-markup",
392
375
  "\\pad-to-box",
@@ -428,7 +411,6 @@
428
411
  "\\pointAndClickOff",
429
412
  "\\pointAndClickOn",
430
413
  "\\pointAndClickTypes",
431
- "\\polygon",
432
414
  "\\portato",
433
415
  "\\postscript",
434
416
  "\\pp",
@@ -440,8 +422,6 @@
440
422
  "\\prallmordent",
441
423
  "\\prallprall",
442
424
  "\\prallup",
443
- "\\preBend",
444
- "\\preBendHold",
445
425
  "\\predefinedFretboardsOff",
446
426
  "\\predefinedFretboardsOn",
447
427
  "\\property-recursive",
@@ -464,11 +444,6 @@
464
444
  "\\RemoveEmptyStaves",
465
445
  "\\removeWithTag",
466
446
  "\\repeat",
467
- "\\repeat percent",
468
- "\\repeat segno",
469
- "\\repeat tremolo",
470
- "\\repeat unfold",
471
- "\\repeat volta",
472
447
  "\\repeatTie",
473
448
  "\\replace",
474
449
  "\\resetRelativeOctave",
@@ -481,7 +456,6 @@
481
456
  "\\revertTimeSignatureSettings",
482
457
  "\\rfz",
483
458
  "\\rheel",
484
- "\\rhythm",
485
459
  "\\right-align",
486
460
  "\\right-brace",
487
461
  "\\right-column",
@@ -498,10 +472,7 @@
498
472
  "\\scaleDurations",
499
473
  "\\score",
500
474
  "\\score-lines",
501
- "\\section",
502
- "\\sectionLabel",
503
475
  "\\segno",
504
- "\\segnoMark",
505
476
  "\\semicirculus",
506
477
  "\\semiflat",
507
478
  "\\semiGermanChords",
@@ -551,11 +522,11 @@
551
522
  "\\southernHarmonyHeads",
552
523
  "\\southernHarmonyHeadsMinor",
553
524
  "\\sp",
525
+ "\\spacingTweaks",
554
526
  "\\spp",
555
527
  "\\staccatissimo",
556
528
  "\\staccato",
557
529
  "\\staff-space",
558
- "\\staffHighlight",
559
530
  "\\startGroup",
560
531
  "\\startStaff",
561
532
  "\\startTrillSpan",
@@ -570,10 +541,8 @@
570
541
  "\\stopGroup",
571
542
  "\\stopped",
572
543
  "\\stopStaff",
573
- "\\stopStaffHighlight",
574
544
  "\\stopTrillSpan",
575
545
  "\\storePredefinedDiagram",
576
- "\\string-lines",
577
546
  "\\stringTuning",
578
547
  "\\stropha",
579
548
  "\\strut",
@@ -595,10 +564,8 @@
595
564
  "\\temporary",
596
565
  "\\tenuto",
597
566
  "\\text",
598
- "\\textEndMark",
599
567
  "\\textLengthOff",
600
568
  "\\textLengthOn",
601
- "\\textMark",
602
569
  "\\textSpannerDown",
603
570
  "\\textSpannerNeutral",
604
571
  "\\textSpannerUp",
@@ -642,10 +609,8 @@
642
609
  "\\underline",
643
610
  "\\undertie",
644
611
  "\\undo",
645
- "\\unfolded",
646
612
  "\\unfoldRepeats",
647
613
  "\\unHideNotes",
648
- "\\unless",
649
614
  "\\unset",
650
615
  "\\upbow",
651
616
  "\\upmordent",
@@ -671,8 +636,6 @@
671
636
  "\\voiceTwo",
672
637
  "\\voiceTwoStyle",
673
638
  "\\void",
674
- "\\volta",
675
- "\\vshape",
676
639
  "\\vspace",
677
640
  "\\walkerHeads",
678
641
  "\\walkerHeadsMinor",
@@ -680,15 +643,10 @@
680
643
  "\\whiteTriangleMarkup",
681
644
  "\\with",
682
645
  "\\with-color",
683
- "\\with-dimension",
684
- "\\with-dimension-from",
685
646
  "\\with-dimensions",
686
647
  "\\with-dimensions-from",
687
648
  "\\with-link",
688
649
  "\\with-outline",
689
- "\\with-string-transformer",
690
- "\\with-true-dimension",
691
- "\\with-true-dimensions",
692
650
  "\\with-url",
693
651
  "\\withMusicProperty",
694
652
  "\\woodwind-diagram",
@@ -700,334 +658,5 @@
700
658
  "\\wordwrap-string-internal",
701
659
  "\\xNote",
702
660
  "\\xNotesOff",
703
- "\\xNotesOn",
704
- "AccidentalSuggestion",
705
- "add-grace-property",
706
- "add-stem-support",
707
- "add-toc-item!",
708
- "additionalPitchPrefix",
709
- "afterGraceFraction",
710
- "alignAboveContext",
711
- "alignBelowContext",
712
- "ambitusAfter",
713
- "AmbitusLine",
714
- "annotate-spacing",
715
- "arpeggio-direction",
716
- "articulation-event",
717
- "associatedVoice",
718
- "aug",
719
- "auto-first-page-number",
720
- "autoBeaming",
721
- "Balloon_engraver",
722
- "banjo-c-tuning",
723
- "banjo-double-c-tuning",
724
- "banjo-double-d-tuning",
725
- "banjo-modal-tuning",
726
- "banjo-open-d-tuning",
727
- "banjo-open-dm-tuning",
728
- "banjo-open-g-tuning",
729
- "barCheckSynchronize",
730
- "BarNumber",
731
- "barNumberVisibility",
732
- "bartype",
733
- "base-shortest-duration",
734
- "baseMoment",
735
- "beatStructure",
736
- "binding-offset",
737
- "blank-after-score-page-penalty",
738
- "blank-last-page-penalty",
739
- "blank-page-penalty",
740
- "bookpart-level-page-numbering",
741
- "bookTitleMarkup",
742
- "bottom-margin",
743
- "bracket",
744
- "break-align-symbols",
745
- "break-visibility",
746
- "breakable",
747
- "breakbefore",
748
- "check-consistency",
749
- "choral",
750
- "choral-cautionary",
751
- "chordChanges",
752
- "ChordGrid",
753
- "chordNameExceptions",
754
- "chordNameLowercaseMinor",
755
- "ChordNames",
756
- "chordNameSeparator",
757
- "chordNoteNamer",
758
- "chordPrefixSpacer",
759
- "chordRootNamer",
760
- "clip-regions",
761
- "color",
762
- "common-shortest-duration",
763
- "Completion_heads_engraver",
764
- "Completion_rest_engraver",
765
- "context-spec-music",
766
- "controlpitch",
767
- "countPercentRepeats",
768
- "crescendo-event",
769
- "crescendoSpanner",
770
- "crescendoText",
771
- "cross",
772
- "CueVoice",
773
- "currentBarNumber",
774
- "debug-beam-scoring",
775
- "debug-slur-scoring",
776
- "debug-tie-scoring",
777
- "decrescendoSpanner",
778
- "decrescendoText",
779
- "default",
780
- "default-staff-staff-spacing",
781
- "dim",
782
- "dodecaphonic",
783
- "dodecaphonic-first",
784
- "dodecaphonic-no-repeat",
785
- "drumPitchNames",
786
- "drumPitchTable",
787
- "DrumStaff",
788
- "drumStyleTable",
789
- "dynamic-event",
790
- "DynamicLineSpanner",
791
- "Engraver_group",
792
- "explicitClefVisibility",
793
- "explicitKeySignatureVisibility",
794
- "extra-offset",
795
- "extra-spacing-height",
796
- "extra-spacing-width",
797
- "Ez_numbers_engraver",
798
- "figuredBassAlterationDirection",
799
- "figuredBassPlusDirection",
800
- "figuredBassPlusStrokedAlist",
801
- "fingeringOrientations",
802
- "first-page-number",
803
- "followVoice",
804
- "font-encoding",
805
- "font-interface",
806
- "font-size",
807
- "fontSize",
808
- "footnote-separator-markup",
809
- "Forbid_line_break_engraver",
810
- "forget",
811
- "four-string-banjo",
812
- "fret-diagram-interface",
813
- "FretBoards",
814
- "glide",
815
- "GregorianTranscriptionStaff",
816
- "gridInterval",
817
- "Grid_line_span_engraver",
818
- "Grid_point_engraver",
819
- "grob-interface",
820
- "grow-direction",
821
- "horizontal-shift",
822
- "HorizontalBracketText",
823
- "Horizontal_bracket_engraver",
824
- "indent",
825
- "inner-margin",
826
- "keepAliveInterfaces",
827
- "KievanStaff",
828
- "KievanVoice",
829
- "last-bottom-spacing",
830
- "layout-set-staff-size",
831
- "left-margin",
832
- "line-width",
833
- "ly:minimal-breaking",
834
- "ly:one-line-auto-height-breaking",
835
- "ly:one-line-breaking",
836
- "ly:one-page-breaking",
837
- "ly:optimal-breaking",
838
- "ly:page-turn-breaking",
839
- "m",
840
- "magnification->font-size",
841
- "magstep",
842
- "maj",
843
- "majorSevenSymbol",
844
- "make-dynamic-script",
845
- "make-pango-font-tree",
846
- "markup-markup-spacing",
847
- "markup-system-spacing",
848
- "Mark_engraver",
849
- "max-systems-per-page",
850
- "measureBarType",
851
- "measureLength",
852
- "measurePosition",
853
- "Measure_grouping_engraver",
854
- "MensuralStaff",
855
- "MensuralVoice",
856
- "midiBalance",
857
- "midiChannelMapping",
858
- "midiChorusLevel",
859
- "midiDrumPitches",
860
- "midiExpression",
861
- "midiPanPosition",
862
- "midiReverbLevel",
863
- "min-systems-per-page",
864
- "minimum-Y-extent",
865
- "minimumFret",
866
- "minimumPageTurnLength",
867
- "minimumRepeatLengthForPageTurn",
868
- "minorChordModifier",
869
- "mixed",
870
- "mode",
871
- "modern",
872
- "modern-cautionary",
873
- "modern-voice",
874
- "modern-voice-cautionary",
875
- "MultiMeasureRestScript",
876
- "MultiMeasureRestText",
877
- "musicQuotes",
878
- "neo-modern",
879
- "neo-modern-cautionary",
880
- "neo-modern-voice",
881
- "neo-modern-voice-cautionary",
882
- "no-reset",
883
- "noChordSymbol",
884
- "nonstaff-nonstaff-spacing",
885
- "nonstaff-relatedstaff-spacing",
886
- "nonstaff-unrelatedstaff-spacing",
887
- "note-event",
888
- "noteNameFunction",
889
- "NoteNames",
890
- "noteNameSeparator",
891
- "Note_heads_engraver",
892
- "Note_name_engraver",
893
- "NullVoice",
894
- "OneStaff",
895
- "ottavation",
896
- "ottavation-numbers",
897
- "ottavation-ordinals",
898
- "ottavation-simple-ordinals",
899
- "ottavationMarkups",
900
- "outer-margin",
901
- "output-count",
902
- "output-def",
903
- "output-suffix",
904
- "outside-staff-horizontal-padding",
905
- "outside-staff-padding",
906
- "outside-staff-priority",
907
- "page-breaking",
908
- "page-breaking-system-system-spacing",
909
- "page-count",
910
- "page-number-type",
911
- "page-spacing-weight",
912
- "paper-height",
913
- "paper-width",
914
- "partCombineListener",
915
- "pedalSustainStyle",
916
- "percent",
917
- "Performer_group",
918
- "piano",
919
- "piano-cautionary",
920
- "PianoStaff",
921
- "pitchnames",
922
- "Pitch_squash_engraver",
923
- "predefinedDiagramTable",
924
- "print-all-headers",
925
- "print-first-page-number",
926
- "print-page-number",
927
- "printAccidentalNames",
928
- "printNotesLanguage",
929
- "printOctaveNames",
930
- "quotedCueEventTypes",
931
- "quotedEventTypes",
932
- "r",
933
- "R",
934
- "ragged-bottom",
935
- "ragged-last",
936
- "ragged-last-bottom",
937
- "ragged-right",
938
- "remove-empty",
939
- "remove-first",
940
- "remove-grace-property",
941
- "remove-layer",
942
- "repeatCommands",
943
- "repeatCountVisibility",
944
- "reset-footnotes-on-new-page",
945
- "rest-event",
946
- "restNumberThreshold",
947
- "restrainOpenStrings",
948
- "rgb-color",
949
- "RhythmicStaff",
950
- "right-margin",
951
- "s",
952
- "score-markup-spacing",
953
- "score-system-spacing",
954
- "scoreTitleMarkup",
955
- "Score_engraver",
956
- "Score_performer",
957
- "self-alignment-X",
958
- "set-global-fonts",
959
- "set-global-staff-size",
960
- "short-indent",
961
- "show-available-fonts",
962
- "showFirstLength",
963
- "showLastLength",
964
- "skipBars",
965
- "skipTypesetting",
966
- "slashChordSeparator",
967
- "slur-event",
968
- "space-alist",
969
- "spacing",
970
- "Span_stem_engraver",
971
- "staff-affinity",
972
- "staff-padding",
973
- "staff-staff-spacing",
974
- "Staff.midiInstrument",
975
- "staffgroup-staff-spacing",
976
- "Staff_collecting_engraver",
977
- "Staff_symbol_engraver",
978
- "start-repeat",
979
- "startAcciaccaturaMusic",
980
- "startAppoggiaturaMusic",
981
- "startGraceMusic",
982
- "stem-spacing-correction",
983
- "stemLeftBeamCount",
984
- "stemRightBeamCount",
985
- "stopAcciaccaturaMusic",
986
- "stopAppoggiaturaMusic",
987
- "stopGraceMusic",
988
- "strictBeatBeaming",
989
- "stringNumberOrientations",
990
- "stringTunings",
991
- "strokeFingerOrientations",
992
- "subdivideBeams",
993
- "suggestAccidentals",
994
- "sus",
995
- "system-count",
996
- "system-separator-markup",
997
- "system-system-spacing",
998
- "systems-per-page",
999
- "TabStaff",
1000
- "TabVoice",
1001
- "teaching",
1002
- "text",
1003
- "Text_mark_engraver",
1004
- "TieColumn",
1005
- "tieWaitForNote",
1006
- "timeSignatureFraction",
1007
- "Timing",
1008
- "tocFormatMarkup",
1009
- "tocIndentMarkup",
1010
- "tocItemMarkup",
1011
- "tocTitleMarkup",
1012
- "top-margin",
1013
- "top-markup-spacing",
1014
- "top-system-spacing",
1015
- "toplevel-bookparts",
1016
- "toplevel-scores",
1017
- "tremolo",
1018
- "tuplet-slur",
1019
- "TupletNumber",
1020
- "tupletSpannerDuration",
1021
- "two-sided",
1022
- "unfold",
1023
- "universal-color",
1024
- "VaticanaStaff",
1025
- "VaticanaVoice",
1026
- "VerticalAxisGroup",
1027
- "voice",
1028
- "Voice",
1029
- "volta",
1030
- "Volta_engraver",
1031
- "X-offset",
1032
- "x11-color"
661
+ "\\xNotesOn"
1033
662
  ]
@@ -135,8 +135,8 @@ attributes_1.AttributesToken.prototype.setAttr =
135
135
  /** @implements */
136
136
  function (keyOrProp, value) {
137
137
  if (typeof keyOrProp === 'object') {
138
- for (const [key, val] of Object.entries(keyOrProp)) {
139
- this.setAttr(key, val);
138
+ for (const key in keyOrProp) {
139
+ this.setAttr(key, keyOrProp[key]);
140
140
  }
141
141
  return;
142
142
  }
@@ -509,7 +509,7 @@ index_2.TableToken.prototype.moveTableRowBefore =
509
509
  }
510
510
  catch (e) {
511
511
  if (e instanceof strict_1.default.AssertionError) {
512
- throw new RangeError(`The structure of row ${y} is different from that of row ${before}, so it cannot be moved!`);
512
+ throw new RangeError(`The structure of row ${y} is different from that of row ${before}, so it cannot be moved!`, { cause: e });
513
513
  }
514
514
  throw e;
515
515
  }
@@ -535,7 +535,7 @@ index_2.TableToken.prototype.moveTableRowAfter =
535
535
  }
536
536
  catch (e) {
537
537
  if (e instanceof strict_1.default.AssertionError) {
538
- throw new RangeError(`The structure of row ${y} is different from that of row ${after}, so it cannot be moved!`);
538
+ throw new RangeError(`The structure of row ${y} is different from that of row ${after}, so it cannot be moved!`, { cause: e });
539
539
  }
540
540
  throw e;
541
541
  }
package/dist/base.d.mts CHANGED
@@ -47,7 +47,7 @@ export declare const stages: {
47
47
  'list-range': number;
48
48
  };
49
49
  export type Stage = keyof typeof stages;
50
- export declare const rules: readonly ["arg-in-ext", "bold-header", "format-leakage", "fostered-content", "h1", "illegal-attr", "insecure-style", "invalid-gallery", "invalid-imagemap", "invalid-invoke", "invalid-isbn", "invalid-json", "invalid-url", "lonely-apos", "lonely-bracket", "lonely-http", "nested-link", "no-arg", "no-duplicate", "no-ignored", "obsolete-attr", "obsolete-tag", "parsing-order", "pipe-like", "syntax-like", "table-layout", "tag-like", "unbalanced-header", "unclosed-comment", "unclosed-quote", "unclosed-table", "unescaped", "unknown-page", "unmatched-tag", "unterminated-url", "url-encoding", "var-anchor", "void-ext", "invalid-css", "invalid-math"];
50
+ export declare const rules: readonly ["arg-in-ext", "blank-alt", "bold-header", "format-leakage", "fostered-content", "h1", "illegal-attr", "insecure-style", "invalid-gallery", "invalid-imagemap", "invalid-invoke", "invalid-isbn", "invalid-json", "invalid-url", "lonely-apos", "lonely-bracket", "lonely-http", "nested-link", "no-arg", "no-duplicate", "no-ignored", "obsolete-attr", "obsolete-tag", "parsing-order", "pipe-like", "syntax-like", "table-layout", "tag-like", "unbalanced-header", "unclosed-comment", "unclosed-quote", "unclosed-table", "unescaped", "unknown-page", "unmatched-tag", "unterminated-url", "url-encoding", "var-anchor", "void-ext", "invalid-css", "invalid-math"];
51
51
  export declare namespace LintError {
52
52
  type Severity = 'error' | 'warning';
53
53
  type Rule = typeof rules[number];
@@ -155,7 +155,7 @@ export interface LanguageService {
155
155
  *
156
156
  * 销毁实例
157
157
  */
158
- destroy(): void;
158
+ destroy(): Promise<void>;
159
159
  /**
160
160
  * Provide color decorators
161
161
  *
@@ -295,6 +295,7 @@ export interface LanguageService {
295
295
  * @param user URI for wiki userpage or email address of the user / 维基用户页面地址或用户的电子邮件地址
296
296
  */
297
297
  setTargetWikipedia(wiki: string, user: string): Promise<void>;
298
+ [Symbol.dispose](): void;
298
299
  }
299
300
  export type SeverityLevel = 0 | 1 | 2 | false | 'off' | 'warning' | 'error';
300
301
  export type LintConfigValue = SeverityLevel | [SeverityLevel, Record<string, SeverityLevel>?];