@shijiu/jsview-vue-samples 2.3.151-test.0 → 3.0.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 (228) hide show
  1. package/ABImageAlt/App.vue +114 -0
  2. package/ABImageAlt/Item.vue +133 -0
  3. package/{MetroWidgetDemos/SkeletonDiagram/assets/imageList.json → ABImageAlt/assets/imageList.js} +9 -1
  4. package/ABImageAlt/data.js +17 -0
  5. package/AI_Check_Rules.txt +5 -0
  6. package/AnimPicture/App.vue +20 -10
  7. package/ApicSwitch/App.vue +90 -0
  8. package/ApicSwitch/TabItem.vue +65 -0
  9. package/ApicSwitch/WebpShow.vue +24 -0
  10. package/ApicSwitch/data.js +50 -0
  11. package/Basic/AI_skills_update.md +1 -0
  12. package/Basic/components/div/ColorFormatTest.vue +93 -0
  13. package/Basic/components/div/DivRadius.vue +97 -15
  14. package/Basic/components/div/DivTag3Group.vue +30 -0
  15. package/Basic/components/img/ImageType.vue +65 -0
  16. package/Basic/components/panel/Panel2.vue +13 -1
  17. package/Basic/components/text/TextAlign.vue +7 -1
  18. package/BlobLoadTest/App.vue +201 -0
  19. package/BreakLinesApi/App.vue +82 -0
  20. package/CanvasDrawChart/App.vue +11 -0
  21. package/CanvasDrawChart/Graph1.vue +104 -0
  22. package/CanvasDrawChart/Graph2.vue +115 -0
  23. package/CssPreprocessor/Scss/PanelData.js +1 -1
  24. package/CssPreprocessor/Scss/components/scss-group4/ScssMaps.vue +4 -3
  25. package/CssPreprocessor/Scss/components/scss-group5/ScssImporting.vue +2 -2
  26. package/DemoForOperator/Bounce/FreeMoveBuilder.js +1 -1
  27. package/DemoForOperator/Firework1/App.vue +12 -1
  28. package/DemoForOperator/Firework1/Fireworks.vue +18 -0
  29. package/DemoForOperator/FlipPage/FlipPage/FlipPage.vue +1 -0
  30. package/DemoForOperator/Focus/Alpha/Item.vue +1 -0
  31. package/DemoForOperator/Focus/Light/Item.vue +1 -0
  32. package/DemoForOperator/Focus/Normal/Item.vue +1 -0
  33. package/DemoForOperator/FrameShadow/FrameShadow.vue +1 -1
  34. package/DemoForOperator/Genie/App.vue +20 -6
  35. package/DemoForOperator/Genie/App2.vue +61 -0
  36. package/DemoForOperator/Genie/geniePakcer/GenieImage.vue +298 -0
  37. package/DemoForOperator/Genie/geniePakcer/GenieSlot.vue +292 -0
  38. package/DemoForOperator/Genie/geniePakcer/GenieTools.ts +463 -0
  39. package/DemoForOperator/Jigsaw/JigsawFull.vue +12 -7
  40. package/DemoForOperator/Jigsaw/JigsawSingle.vue +13 -7
  41. package/DemoForOperator/LongChatBox/App.vue +13 -13
  42. package/DemoForOperator/LongChatBox/Bubble.vue +78 -66
  43. package/DemoForOperator/LongChatBox/LongChat.vue +68 -36
  44. package/DemoForOperator/LongChatBox/testData.js +7 -44
  45. package/DemoForOperator/Sound/Bounce/FreeMoveBuilder.js +1 -1
  46. package/DemoForOperator/routeList.js +8 -2
  47. package/DemoHomepage/App.vue +74 -1
  48. package/DemoHomepage/components/BodyFrame.vue +1 -0
  49. package/DemoHomepage/components/TabFrame.vue +1 -1
  50. package/DemoHomepage/router.js +723 -160
  51. package/DemoHomepage/views/Homepage.vue +60 -2
  52. package/DemoHomepage/watchTest.vue +50 -0
  53. package/FilterDemo/AnimatePic.vue +63 -17
  54. package/FilterDemo/App.vue +3 -3
  55. package/FlexCellDemo/AI_skills_update.md +4 -0
  56. package/FlexCellDemo/TestFrame1.vue +12 -2
  57. package/FlexCellDemo/TestFrame2.vue +10 -1
  58. package/FlexCellDemo/TestFrame3.vue +114 -59
  59. package/FpsLimit/App.vue +102 -0
  60. package/FreeMoveChildAttract/App.vue +18 -8
  61. package/FreeMoveLink/App.vue +49 -20
  62. package/Hover/App.vue +144 -0
  63. package/HttpRequestSSE/SSEReader.js +200 -0
  64. package/ImpactStop/App.vue +2 -2
  65. package/Input/FullKeyboard.vue +3 -3
  66. package/Input/InputPanel.vue +63 -3
  67. package/JsvLine/App.vue +53 -38
  68. package/LatexDemo/App.vue +3 -1
  69. package/LatexFormula/App.vue +196 -0
  70. package/LongImage/App.vue +1 -1
  71. package/LongImage/LongImageScroll.vue +100 -47
  72. package/LongImage/Scroll.vue +28 -9
  73. package/LongText/LongTextScroll.vue +1 -0
  74. package/Markdown/App.vue +36 -0
  75. package/Markdown/Bubble.vue +109 -0
  76. package/Markdown/LongChat.vue +206 -0
  77. package/Markdown/Markdown/Markdown.vue +156 -0
  78. package/Markdown/Markdown/index.ts +1 -0
  79. package/Markdown/Markdown/marked/LICENSE.md +45 -0
  80. package/Markdown/Markdown/marked/index.ts +2 -0
  81. package/Markdown/Markdown/marked/marked.d.ts +756 -0
  82. package/Markdown/Markdown/marked/marked.js +71 -0
  83. package/Markdown/Markdown/parser.ts +1365 -0
  84. package/Markdown/data.js +581 -0
  85. package/MetroWidgetDemos/AI_skills_update.md +2 -0
  86. package/MetroWidgetDemos/ListExpand/ChildItem.vue +130 -0
  87. package/MetroWidgetDemos/ListExpand/ExpandItem.vue +375 -0
  88. package/MetroWidgetDemos/ListExpand/ExpandItem1.vue +403 -0
  89. package/MetroWidgetDemos/ListExpand/assets/arrow-down.png +0 -0
  90. package/MetroWidgetDemos/ListExpand/assets/up-arrow.png +0 -0
  91. package/MetroWidgetDemos/ListExpand/components/WidgetListHandler.vue +150 -0
  92. package/MetroWidgetDemos/ListExpand/index.vue +88 -0
  93. package/MetroWidgetDemos/ListExpand/list.js +2421 -0
  94. package/MetroWidgetDemos/RefreshDemo/App.vue +14 -1
  95. package/MetroWidgetDemos/RenderAccelerate/App.vue +142 -0
  96. package/MetroWidgetDemos/RenderAccelerate/AppPage.vue +78 -0
  97. package/MetroWidgetDemos/RenderAccelerate/AppTab.vue +62 -0
  98. package/MetroWidgetDemos/RenderAccelerate/ContentItem.vue +409 -0
  99. package/MetroWidgetDemos/RenderAccelerate/Item.vue +67 -0
  100. package/MetroWidgetDemos/RenderAccelerate/TabItem.vue +100 -0
  101. package/MetroWidgetDemos/RenderAccelerate/ViewSwiper.vue +215 -0
  102. package/MetroWidgetDemos/RenderAccelerate/WidgetItem.vue +107 -0
  103. package/MetroWidgetDemos/SkeletonDiagram/App.vue +35 -8
  104. package/MetroWidgetDemos/SkeletonDiagram/Item.vue +11 -2
  105. package/MetroWidgetDemos/SkeletonDiagram/assets/imageList.js +245 -0
  106. package/MetroWidgetDemos/SkeletonDiagram/data.js +3 -3
  107. package/MetroWidgetDemos/SpatialNav/App.vue +177 -0
  108. package/MetroWidgetDemos/SpatialNav/Buttons.vue +83 -0
  109. package/MetroWidgetDemos/SpatialNav/CustomFocus.vue +57 -0
  110. package/MetroWidgetDemos/{TripleWidget → SpatialNav}/Item.vue +1 -8
  111. package/MetroWidgetDemos/{TripleWidget/WidgetItem.vue → SpatialNav/SimpleFloor.vue} +14 -45
  112. package/MetroWidgetDemos/SpatialNav/StepMw.vue +113 -0
  113. package/MetroWidgetDemos/SpatialNav/TabContent/TabContent.vue +185 -0
  114. package/MetroWidgetDemos/SpatialNav/TripleSection/TripleSection.vue +69 -0
  115. package/MetroWidgetDemos/SpatialNav/TripleSection/WidgetItem.vue +100 -0
  116. package/MetroWidgetDemos/SpatialNav/TvSection/List.vue +75 -0
  117. package/MetroWidgetDemos/SpatialNav/TvSection/TvSection.vue +91 -0
  118. package/MetroWidgetDemos/basic2/App.vue +407 -0
  119. package/MetroWidgetDemos/basic2/Item.vue +68 -0
  120. package/MetroWidgetDemos/direction/App.vue +22 -0
  121. package/MetroWidgetDemos/gazeFocusDiff/App.vue +126 -0
  122. package/MetroWidgetDemos/gazeFocusDiff/Item.vue +87 -0
  123. package/MetroWidgetDemos/minimalUsage/App.vue +66 -0
  124. package/MetroWidgetDemos/minimalUsage/Item.vue +54 -0
  125. package/MetroWidgetDemos/ninePatchFocusPage/App.vue +22 -7
  126. package/MetroWidgetDemos/ninePatchFocusPage/Item.vue +7 -5
  127. package/MetroWidgetDemos/ninePatchFocusPage/focusConstants.js +2 -0
  128. package/MetroWidgetDemos/routeList.js +203 -12
  129. package/MetroWidgetDemos/slideSetting/App.vue +288 -99
  130. package/MetroWidgetDemos/zIndex/App.vue +117 -0
  131. package/MetroWidgetDemos/zIndex/Item.vue +61 -0
  132. package/NinePatchTester/App.vue +24 -31
  133. package/PreDecode/App.vue +140 -0
  134. package/ReactiveTest/App.vue +115 -0
  135. package/ReactiveTest/Item.vue +92 -0
  136. package/ReactiveTest/assets/imageList.js +245 -0
  137. package/ReactiveTest/component/TestSmartDiv.vue +50 -0
  138. package/ReactiveTest/component/TestSmartDivSrcList.vue +74 -0
  139. package/ReactiveTest/component/TestSmartImage.vue +46 -0
  140. package/ReactiveTest/component/TestSmartImageSrcList.vue +90 -0
  141. package/ReactiveTest/component/TestSmartImageStyle.vue +41 -0
  142. package/ReactiveTest/data.js +49 -0
  143. package/ScreenToBlob/App.vue +250 -0
  144. package/SecTorTest/App.vue +9 -3
  145. package/SpringFestival/SpringFestivalScene/FreeMoveBuilder.js +3 -3
  146. package/SyncDecode/App.vue +137 -0
  147. package/TextSizeLimit/App.vue +211 -0
  148. package/TransitPage/App.vue +2 -0
  149. package/assets/logo.png +0 -0
  150. package/package.json +5 -5
  151. package/DemoForOperator/Genie/geniePakcer/Genie.vue +0 -741
  152. package/DemoForOperator/LongChatBox/TextManager.ts +0 -147
  153. package/DemoForOperator/LongChatBox/VirtualList.vue +0 -298
  154. package/DemoForOperator/LongChatBox/utile.js +0 -331
  155. package/DivMetroPerformance/App.vue +0 -157
  156. package/DivMetroPerformance/Item.vue +0 -58
  157. package/DivMetroPerformance/assets/bg.jpg +0 -0
  158. package/DivMetroPerformance/assets/coupon_content.png +0 -0
  159. package/DivMetroPerformance/assets/coupon_left.png +0 -0
  160. package/DivMetroPerformance/assets/coupon_mid.png +0 -0
  161. package/DivMetroPerformance/assets/coupon_right.png +0 -0
  162. package/DivMetroPerformance/assets/focus_border.png +0 -0
  163. package/DivMetroPerformance/assets/holder_logo.png +0 -0
  164. package/DivMetroPerformance/assets/jrbm.png +0 -0
  165. package/DivMetroPerformance/assets/line_left.png +0 -0
  166. package/DivMetroPerformance/assets/line_mid.png +0 -0
  167. package/DivMetroPerformance/assets/line_right.png +0 -0
  168. package/DivMetroPerformance/assets/loading.png +0 -0
  169. package/DivMetroPerformance/assets/logo.png +0 -0
  170. package/DivMetroPerformance/assets/mcjx.png +0 -0
  171. package/DivMetroPerformance/assets/tao.png +0 -0
  172. package/DivMetroPerformance/assets/tmall.png +0 -0
  173. package/DivMetroPerformance/border.png +0 -0
  174. package/DivMetroPerformance/components/ContentItem.vue +0 -384
  175. package/DivMetroPerformance/components/MyTab.vue +0 -129
  176. package/DivMetroPerformance/data.js +0 -124
  177. package/DivMetroPerformance/utils/GridItem.vue +0 -28
  178. package/DivMetroPerformance/utils/GridPlate.vue +0 -85
  179. package/MediaDemo/App.vue +0 -127
  180. package/MediaDemo/assets/audio-poster.png +0 -0
  181. package/MediaDemo/components/Button.vue +0 -69
  182. package/MediaDemo/components/Controllor.vue +0 -286
  183. package/MediaDemo/components/StatusBar.vue +0 -100
  184. package/MediaDemo/components/frames/AudioFrame.vue +0 -39
  185. package/MediaDemo/components/frames/AudioPoster.vue +0 -48
  186. package/MediaDemo/components/frames/MediaFrame.vue +0 -153
  187. package/MediaDemo/components/frames/VideoFrame.vue +0 -39
  188. package/MetroWidgetDemos/TripleWidget/App.vue +0 -87
  189. package/MetroWidgetDemos/TripleWidget/SWidgetItem.vue +0 -99
  190. package/Parkour/App.vue +0 -13
  191. package/Parkour/Common/Context.js +0 -21
  192. package/Parkour/Common/MatchmanInfo.js +0 -62
  193. package/Parkour/Common/Random.js +0 -61
  194. package/Parkour/Common/Sound.js +0 -50
  195. package/Parkour/appConfig/HOW_TO_CONFIG.md +0 -20
  196. package/Parkour/appConfig/app.config.mjs +0 -5
  197. package/Parkour/appConfig/app_sign_private_key_sample.crt +0 -28
  198. package/Parkour/appConfig/app_sign_public_key_sample.pem +0 -9
  199. package/Parkour/appConfig/jsview.config.mjs +0 -39
  200. package/Parkour/assets/Bgimages/bg1.png +0 -0
  201. package/Parkour/assets/Bgimages/bg2.png +0 -0
  202. package/Parkour/assets/Bgimages/bg3.png +0 -0
  203. package/Parkour/assets/Bgimages/bg4.png +0 -0
  204. package/Parkour/assets/Bgimages/bg5.png +0 -0
  205. package/Parkour/assets/audio/jump.mp3 +0 -0
  206. package/Parkour/assets/audio/lose.mp3 +0 -0
  207. package/Parkour/assets/role_skin1/fail.json +0 -44
  208. package/Parkour/assets/role_skin1/fail.png +0 -0
  209. package/Parkour/assets/role_skin1/jump_down.json +0 -20
  210. package/Parkour/assets/role_skin1/jump_down.png +0 -0
  211. package/Parkour/assets/role_skin1/jump_up.json +0 -44
  212. package/Parkour/assets/role_skin1/jump_up.png +0 -0
  213. package/Parkour/assets/role_skin1/roll.json +0 -44
  214. package/Parkour/assets/role_skin1/roll.png +0 -0
  215. package/Parkour/assets/role_skin1/run.json +0 -52
  216. package/Parkour/assets/role_skin1/run.png +0 -0
  217. package/Parkour/components/Backdrop.vue +0 -61
  218. package/Parkour/components/GameSence.vue +0 -602
  219. package/Parkour/components/Matchman.vue +0 -85
  220. package/ThrowMoveDemo/AccelerateDemo.vue +0 -85
  221. package/ThrowMoveDemo/App.vue +0 -104
  222. package/ThrowMoveDemo/LRParabolicDemo.vue +0 -101
  223. package/ThrowMoveDemo/TargetDemo.vue +0 -87
  224. package/ThrowMoveDemo/UDParabolicDemo.vue +0 -92
  225. /package/{AnimPicture/assets → assets}/animated_webp.webp +0 -0
  226. /package/{AnimPicture/assets → assets}/ball_3.webp +0 -0
  227. /package/{AnimPicture/assets → assets}/girl_run.gif +0 -0
  228. /package/{AnimPicture/assets → assets}/quan.webp +0 -0
@@ -0,0 +1,756 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ export type MarkedToken = (Tokens.Blockquote | Tokens.Br | Tokens.Checkbox | Tokens.Code | Tokens.Codespan | Tokens.Def | Tokens.Del | Tokens.Em | Tokens.Escape | Tokens.Heading | Tokens.Hr | Tokens.HTML | Tokens.Image | Tokens.Link | Tokens.List | Tokens.ListItem | Tokens.Paragraph | Tokens.Space | Tokens.Strong | Tokens.Table | Tokens.Tag | Tokens.Text);
4
+ export type Token = (MarkedToken | Tokens.Generic);
5
+ export declare namespace Tokens {
6
+ interface Blockquote {
7
+ type: "blockquote";
8
+ raw: string;
9
+ text: string;
10
+ tokens: Token[];
11
+ }
12
+ interface Br {
13
+ type: "br";
14
+ raw: string;
15
+ }
16
+ interface Checkbox {
17
+ type: "checkbox";
18
+ raw: string;
19
+ checked: boolean;
20
+ }
21
+ interface Code {
22
+ type: "code";
23
+ raw: string;
24
+ codeBlockStyle?: "indented";
25
+ lang?: string;
26
+ text: string;
27
+ escaped?: boolean;
28
+ }
29
+ interface Codespan {
30
+ type: "codespan";
31
+ raw: string;
32
+ text: string;
33
+ }
34
+ interface Def {
35
+ type: "def";
36
+ raw: string;
37
+ tag: string;
38
+ href: string;
39
+ title: string;
40
+ }
41
+ interface Del {
42
+ type: "del";
43
+ raw: string;
44
+ text: string;
45
+ tokens: Token[];
46
+ }
47
+ interface Em {
48
+ type: "em";
49
+ raw: string;
50
+ text: string;
51
+ tokens: Token[];
52
+ }
53
+ interface Escape {
54
+ type: "escape";
55
+ raw: string;
56
+ text: string;
57
+ }
58
+ interface Generic {
59
+ [index: string]: any;
60
+ type: string;
61
+ raw: string;
62
+ tokens?: Token[];
63
+ }
64
+ interface Heading {
65
+ type: "heading";
66
+ raw: string;
67
+ depth: number;
68
+ text: string;
69
+ tokens: Token[];
70
+ }
71
+ interface Hr {
72
+ type: "hr";
73
+ raw: string;
74
+ }
75
+ interface HTML {
76
+ type: "html";
77
+ raw: string;
78
+ pre: boolean;
79
+ text: string;
80
+ block: boolean;
81
+ }
82
+ interface Image {
83
+ type: "image";
84
+ raw: string;
85
+ href: string;
86
+ title: string | null;
87
+ text: string;
88
+ tokens: Token[];
89
+ }
90
+ interface Link {
91
+ type: "link";
92
+ raw: string;
93
+ href: string;
94
+ title?: string | null;
95
+ text: string;
96
+ tokens: Token[];
97
+ }
98
+ interface List {
99
+ type: "list";
100
+ raw: string;
101
+ ordered: boolean;
102
+ start: number | "";
103
+ loose: boolean;
104
+ items: ListItem[];
105
+ }
106
+ interface ListItem {
107
+ type: "list_item";
108
+ raw: string;
109
+ task: boolean;
110
+ checked?: boolean;
111
+ loose: boolean;
112
+ text: string;
113
+ tokens: Token[];
114
+ }
115
+ interface Paragraph {
116
+ type: "paragraph";
117
+ raw: string;
118
+ pre?: boolean;
119
+ text: string;
120
+ tokens: Token[];
121
+ }
122
+ interface Space {
123
+ type: "space";
124
+ raw: string;
125
+ }
126
+ interface Strong {
127
+ type: "strong";
128
+ raw: string;
129
+ text: string;
130
+ tokens: Token[];
131
+ }
132
+ interface Table {
133
+ type: "table";
134
+ raw: string;
135
+ align: Array<"center" | "left" | "right" | null>;
136
+ header: TableCell[];
137
+ rows: TableCell[][];
138
+ }
139
+ interface TableCell {
140
+ text: string;
141
+ tokens: Token[];
142
+ header: boolean;
143
+ align: "center" | "left" | "right" | null;
144
+ }
145
+ interface TableRow<P = string> {
146
+ text: P;
147
+ }
148
+ interface Tag {
149
+ type: "html";
150
+ raw: string;
151
+ inLink: boolean;
152
+ inRawBlock: boolean;
153
+ text: string;
154
+ block: boolean;
155
+ }
156
+ interface Text {
157
+ type: "text";
158
+ raw: string;
159
+ text: string;
160
+ tokens?: Token[];
161
+ escaped?: boolean;
162
+ }
163
+ }
164
+ export type Links = Record<string, Pick<Tokens.Link | Tokens.Image, "href" | "title">>;
165
+ export type TokensList = Token[] & {
166
+ links: Links;
167
+ };
168
+ /**
169
+ * Renderer
170
+ */
171
+ declare class _Renderer<ParserOutput = string, RendererOutput = string> {
172
+ options: MarkedOptions<ParserOutput, RendererOutput>;
173
+ parser: _Parser<ParserOutput, RendererOutput>;
174
+ constructor(options?: MarkedOptions<ParserOutput, RendererOutput>);
175
+ space(token: Tokens.Space): RendererOutput;
176
+ code({ text, lang, escaped }: Tokens.Code): RendererOutput;
177
+ blockquote({ tokens }: Tokens.Blockquote): RendererOutput;
178
+ html({ text }: Tokens.HTML | Tokens.Tag): RendererOutput;
179
+ def(token: Tokens.Def): RendererOutput;
180
+ heading({ tokens, depth }: Tokens.Heading): RendererOutput;
181
+ hr(token: Tokens.Hr): RendererOutput;
182
+ list(token: Tokens.List): RendererOutput;
183
+ listitem(item: Tokens.ListItem): RendererOutput;
184
+ checkbox({ checked }: Tokens.Checkbox): RendererOutput;
185
+ paragraph({ tokens }: Tokens.Paragraph): RendererOutput;
186
+ table(token: Tokens.Table): RendererOutput;
187
+ tablerow({ text }: Tokens.TableRow<ParserOutput>): RendererOutput;
188
+ tablecell(token: Tokens.TableCell): RendererOutput;
189
+ /**
190
+ * span level renderer
191
+ */
192
+ strong({ tokens }: Tokens.Strong): RendererOutput;
193
+ em({ tokens }: Tokens.Em): RendererOutput;
194
+ codespan({ text }: Tokens.Codespan): RendererOutput;
195
+ br(token: Tokens.Br): RendererOutput;
196
+ del({ tokens }: Tokens.Del): RendererOutput;
197
+ link({ href, title, tokens }: Tokens.Link): RendererOutput;
198
+ image({ href, title, text, tokens }: Tokens.Image): RendererOutput;
199
+ text(token: Tokens.Text | Tokens.Escape): RendererOutput;
200
+ }
201
+ /**
202
+ * TextRenderer
203
+ * returns only the textual part of the token
204
+ */
205
+ declare class _TextRenderer<RendererOutput = string> {
206
+ strong({ text }: Tokens.Strong): RendererOutput;
207
+ em({ text }: Tokens.Em): RendererOutput;
208
+ codespan({ text }: Tokens.Codespan): RendererOutput;
209
+ del({ text }: Tokens.Del): RendererOutput;
210
+ html({ text }: Tokens.HTML | Tokens.Tag): RendererOutput;
211
+ text({ text }: Tokens.Text | Tokens.Escape | Tokens.Tag): RendererOutput;
212
+ link({ text }: Tokens.Link): RendererOutput;
213
+ image({ text }: Tokens.Image): RendererOutput;
214
+ br(): RendererOutput;
215
+ checkbox({ raw }: Tokens.Checkbox): RendererOutput;
216
+ }
217
+ /**
218
+ * Parsing & Compiling
219
+ */
220
+ declare class _Parser<ParserOutput = string, RendererOutput = string> {
221
+ options: MarkedOptions<ParserOutput, RendererOutput>;
222
+ renderer: _Renderer<ParserOutput, RendererOutput>;
223
+ textRenderer: _TextRenderer<RendererOutput>;
224
+ constructor(options?: MarkedOptions<ParserOutput, RendererOutput>);
225
+ /**
226
+ * Static Parse Method
227
+ */
228
+ static parse<ParserOutput = string, RendererOutput = string>(tokens: Token[], options?: MarkedOptions<ParserOutput, RendererOutput>): ParserOutput;
229
+ /**
230
+ * Static Parse Inline Method
231
+ */
232
+ static parseInline<ParserOutput = string, RendererOutput = string>(tokens: Token[], options?: MarkedOptions<ParserOutput, RendererOutput>): ParserOutput;
233
+ /**
234
+ * Parse Loop
235
+ */
236
+ parse(tokens: Token[]): ParserOutput;
237
+ /**
238
+ * Parse Inline Tokens
239
+ */
240
+ parseInline(tokens: Token[], renderer?: _Renderer<ParserOutput, RendererOutput> | _TextRenderer<RendererOutput>): ParserOutput;
241
+ }
242
+ declare const other: {
243
+ codeRemoveIndent: RegExp;
244
+ outputLinkReplace: RegExp;
245
+ indentCodeCompensation: RegExp;
246
+ beginningSpace: RegExp;
247
+ endingHash: RegExp;
248
+ startingSpaceChar: RegExp;
249
+ endingSpaceChar: RegExp;
250
+ nonSpaceChar: RegExp;
251
+ newLineCharGlobal: RegExp;
252
+ tabCharGlobal: RegExp;
253
+ multipleSpaceGlobal: RegExp;
254
+ blankLine: RegExp;
255
+ doubleBlankLine: RegExp;
256
+ blockquoteStart: RegExp;
257
+ blockquoteSetextReplace: RegExp;
258
+ blockquoteSetextReplace2: RegExp;
259
+ listReplaceTabs: RegExp;
260
+ listReplaceNesting: RegExp;
261
+ listIsTask: RegExp;
262
+ listReplaceTask: RegExp;
263
+ listTaskCheckbox: RegExp;
264
+ anyLine: RegExp;
265
+ hrefBrackets: RegExp;
266
+ tableDelimiter: RegExp;
267
+ tableAlignChars: RegExp;
268
+ tableRowBlankLine: RegExp;
269
+ tableAlignRight: RegExp;
270
+ tableAlignCenter: RegExp;
271
+ tableAlignLeft: RegExp;
272
+ startATag: RegExp;
273
+ endATag: RegExp;
274
+ startPreScriptTag: RegExp;
275
+ endPreScriptTag: RegExp;
276
+ startAngleBracket: RegExp;
277
+ endAngleBracket: RegExp;
278
+ pedanticHrefTitle: RegExp;
279
+ unicodeAlphaNumeric: RegExp;
280
+ escapeTest: RegExp;
281
+ escapeReplace: RegExp;
282
+ escapeTestNoEncode: RegExp;
283
+ escapeReplaceNoEncode: RegExp;
284
+ unescapeTest: RegExp;
285
+ caret: RegExp;
286
+ percentDecode: RegExp;
287
+ findPipe: RegExp;
288
+ splitPipe: RegExp;
289
+ slashPipe: RegExp;
290
+ carriageReturn: RegExp;
291
+ spaceLine: RegExp;
292
+ notSpaceStart: RegExp;
293
+ endingNewline: RegExp;
294
+ listItemRegex: (bull: string) => RegExp;
295
+ nextBulletRegex: (indent: number) => RegExp;
296
+ hrRegex: (indent: number) => RegExp;
297
+ fencesBeginRegex: (indent: number) => RegExp;
298
+ headingBeginRegex: (indent: number) => RegExp;
299
+ htmlBeginRegex: (indent: number) => RegExp;
300
+ };
301
+ declare const blockNormal: {
302
+ blockquote: RegExp;
303
+ code: RegExp;
304
+ def: RegExp;
305
+ fences: RegExp;
306
+ heading: RegExp;
307
+ hr: RegExp;
308
+ html: RegExp;
309
+ lheading: RegExp;
310
+ list: RegExp;
311
+ newline: RegExp;
312
+ paragraph: RegExp;
313
+ table: RegExp;
314
+ text: RegExp;
315
+ };
316
+ export type BlockKeys = keyof typeof blockNormal;
317
+ declare const inlineNormal: {
318
+ _backpedal: RegExp;
319
+ anyPunctuation: RegExp;
320
+ autolink: RegExp;
321
+ blockSkip: RegExp;
322
+ br: RegExp;
323
+ code: RegExp;
324
+ del: RegExp;
325
+ emStrongLDelim: RegExp;
326
+ emStrongRDelimAst: RegExp;
327
+ emStrongRDelimUnd: RegExp;
328
+ escape: RegExp;
329
+ link: RegExp;
330
+ nolink: RegExp;
331
+ punctuation: RegExp;
332
+ reflink: RegExp;
333
+ reflinkSearch: RegExp;
334
+ tag: RegExp;
335
+ text: RegExp;
336
+ url: RegExp;
337
+ };
338
+ export type InlineKeys = keyof typeof inlineNormal;
339
+ export interface Rules {
340
+ other: typeof other;
341
+ block: Record<BlockKeys, RegExp>;
342
+ inline: Record<InlineKeys, RegExp>;
343
+ }
344
+ /**
345
+ * Tokenizer
346
+ */
347
+ declare class _Tokenizer<ParserOutput = string, RendererOutput = string> {
348
+ options: MarkedOptions<ParserOutput, RendererOutput>;
349
+ rules: Rules;
350
+ lexer: _Lexer<ParserOutput, RendererOutput>;
351
+ constructor(options?: MarkedOptions<ParserOutput, RendererOutput>);
352
+ space(src: string): Tokens.Space | undefined;
353
+ code(src: string): Tokens.Code | undefined;
354
+ fences(src: string): Tokens.Code | undefined;
355
+ heading(src: string): Tokens.Heading | undefined;
356
+ hr(src: string): Tokens.Hr | undefined;
357
+ blockquote(src: string): Tokens.Blockquote | undefined;
358
+ list(src: string): Tokens.List | undefined;
359
+ html(src: string): Tokens.HTML | undefined;
360
+ def(src: string): Tokens.Def | undefined;
361
+ table(src: string): Tokens.Table | undefined;
362
+ lheading(src: string): Tokens.Heading | undefined;
363
+ paragraph(src: string): Tokens.Paragraph | undefined;
364
+ text(src: string): Tokens.Text | undefined;
365
+ escape(src: string): Tokens.Escape | undefined;
366
+ tag(src: string): Tokens.Tag | undefined;
367
+ link(src: string): Tokens.Link | Tokens.Image | undefined;
368
+ reflink(src: string, links: Links): Tokens.Link | Tokens.Image | Tokens.Text | undefined;
369
+ emStrong(src: string, maskedSrc: string, prevChar?: string): Tokens.Em | Tokens.Strong | undefined;
370
+ codespan(src: string): Tokens.Codespan | undefined;
371
+ br(src: string): Tokens.Br | undefined;
372
+ del(src: string): Tokens.Del | undefined;
373
+ autolink(src: string): Tokens.Link | undefined;
374
+ url(src: string): Tokens.Link | undefined;
375
+ inlineText(src: string): Tokens.Text | undefined;
376
+ }
377
+ declare class _Hooks<ParserOutput = string, RendererOutput = string> {
378
+ options: MarkedOptions<ParserOutput, RendererOutput>;
379
+ block?: boolean;
380
+ constructor(options?: MarkedOptions<ParserOutput, RendererOutput>);
381
+ static passThroughHooks: Set<string>;
382
+ static passThroughHooksRespectAsync: Set<string>;
383
+ /**
384
+ * Process markdown before marked
385
+ */
386
+ preprocess(markdown: string): string;
387
+ /**
388
+ * Process HTML after marked is finished
389
+ */
390
+ postprocess(html: ParserOutput): ParserOutput;
391
+ /**
392
+ * Process all tokens before walk tokens
393
+ */
394
+ processAllTokens(tokens: Token[] | TokensList): Token[] | TokensList;
395
+ /**
396
+ * Mask contents that should not be interpreted as em/strong delimiters
397
+ */
398
+ emStrongMask(src: string): string;
399
+ /**
400
+ * Provide function to tokenize markdown
401
+ */
402
+ provideLexer(): typeof _Lexer.lexInline;
403
+ /**
404
+ * Provide function to parse tokens
405
+ */
406
+ provideParser(): (tokens: Token[], options?: MarkedOptions<ParserOutput, RendererOutput> | undefined) => ParserOutput;
407
+ }
408
+ export interface TokenizerThis {
409
+ lexer: _Lexer;
410
+ }
411
+ export type TokenizerExtensionFunction = (this: TokenizerThis, src: string, tokens: Token[] | TokensList) => Tokens.Generic | undefined;
412
+ export type TokenizerStartFunction = (this: TokenizerThis, src: string) => number | void;
413
+ export interface TokenizerExtension {
414
+ name: string;
415
+ level: "block" | "inline";
416
+ start?: TokenizerStartFunction;
417
+ tokenizer: TokenizerExtensionFunction;
418
+ childTokens?: string[];
419
+ }
420
+ export interface RendererThis<ParserOutput = string, RendererOutput = string> {
421
+ parser: _Parser<ParserOutput, RendererOutput>;
422
+ }
423
+ export type RendererExtensionFunction<ParserOutput = string, RendererOutput = string> = (this: RendererThis<ParserOutput, RendererOutput>, token: Tokens.Generic) => RendererOutput | false | undefined;
424
+ export interface RendererExtension<ParserOutput = string, RendererOutput = string> {
425
+ name: string;
426
+ renderer: RendererExtensionFunction<ParserOutput, RendererOutput>;
427
+ }
428
+ export type TokenizerAndRendererExtension<ParserOutput = string, RendererOutput = string> = TokenizerExtension | RendererExtension<ParserOutput, RendererOutput> | (TokenizerExtension & RendererExtension<ParserOutput, RendererOutput>);
429
+ export type HooksApi<ParserOutput = string, RendererOutput = string> = Omit<_Hooks<ParserOutput, RendererOutput>, "constructor" | "options" | "block">;
430
+ export type HooksObject<ParserOutput = string, RendererOutput = string> = {
431
+ [K in keyof HooksApi<ParserOutput, RendererOutput>]?: (this: _Hooks<ParserOutput, RendererOutput>, ...args: Parameters<HooksApi<ParserOutput, RendererOutput>[K]>) => ReturnType<HooksApi<ParserOutput, RendererOutput>[K]> | Promise<ReturnType<HooksApi<ParserOutput, RendererOutput>[K]>>;
432
+ };
433
+ export type RendererApi<ParserOutput = string, RendererOutput = string> = Omit<_Renderer<ParserOutput, RendererOutput>, "constructor" | "options" | "parser">;
434
+ export type RendererObject<ParserOutput = string, RendererOutput = string> = {
435
+ [K in keyof RendererApi<ParserOutput, RendererOutput>]?: (this: _Renderer<ParserOutput, RendererOutput>, ...args: Parameters<RendererApi<ParserOutput, RendererOutput>[K]>) => ReturnType<RendererApi<ParserOutput, RendererOutput>[K]> | false;
436
+ };
437
+ export type TokenizerApi<ParserOutput = string, RendererOutput = string> = Omit<_Tokenizer<ParserOutput, RendererOutput>, "constructor" | "options" | "rules" | "lexer">;
438
+ export type TokenizerObject<ParserOutput = string, RendererOutput = string> = {
439
+ [K in keyof TokenizerApi<ParserOutput, RendererOutput>]?: (this: _Tokenizer<ParserOutput, RendererOutput>, ...args: Parameters<TokenizerApi<ParserOutput, RendererOutput>[K]>) => ReturnType<TokenizerApi<ParserOutput, RendererOutput>[K]> | false;
440
+ };
441
+ export interface MarkedExtension<ParserOutput = string, RendererOutput = string> {
442
+ /**
443
+ * True will tell marked to await any walkTokens functions before parsing the tokens and returning an HTML string.
444
+ */
445
+ async?: boolean;
446
+ /**
447
+ * Enable GFM line breaks. This option requires the gfm option to be true.
448
+ */
449
+ breaks?: boolean;
450
+ /**
451
+ * Add tokenizers and renderers to marked
452
+ */
453
+ extensions?: TokenizerAndRendererExtension<ParserOutput, RendererOutput>[] | null;
454
+ /**
455
+ * Enable GitHub flavored markdown.
456
+ */
457
+ gfm?: boolean;
458
+ /**
459
+ * Hooks are methods that hook into some part of marked.
460
+ * preprocess is called to process markdown before sending it to marked.
461
+ * processAllTokens is called with the TokensList before walkTokens.
462
+ * postprocess is called to process html after marked has finished parsing.
463
+ * emStrongMask is called to mask contents that should not be interpreted as em/strong delimiters.
464
+ * provideLexer is called to provide a function to tokenize markdown.
465
+ * provideParser is called to provide a function to parse tokens.
466
+ */
467
+ hooks?: HooksObject<ParserOutput, RendererOutput> | null;
468
+ /**
469
+ * Conform to obscure parts of markdown.pl as much as possible. Don't fix any of the original markdown bugs or poor behavior.
470
+ */
471
+ pedantic?: boolean;
472
+ /**
473
+ * Type: object Default: new Renderer()
474
+ *
475
+ * An object containing functions to render tokens to HTML.
476
+ */
477
+ renderer?: RendererObject<ParserOutput, RendererOutput> | null;
478
+ /**
479
+ * Shows an HTML error message when rendering fails.
480
+ */
481
+ silent?: boolean;
482
+ /**
483
+ * The tokenizer defines how to turn markdown text into tokens.
484
+ */
485
+ tokenizer?: TokenizerObject | null;
486
+ /**
487
+ * The walkTokens function gets called with every token.
488
+ * Child tokens are called before moving on to sibling tokens.
489
+ * Each token is passed by reference so updates are persisted when passed to the parser.
490
+ * The return value of the function is ignored.
491
+ */
492
+ walkTokens?: ((token: Token) => void | Promise<void>) | null;
493
+ }
494
+ export interface MarkedOptions<ParserOutput = string, RendererOutput = string> extends Omit<MarkedExtension<ParserOutput, RendererOutput>, "hooks" | "renderer" | "tokenizer" | "extensions" | "walkTokens"> {
495
+ /**
496
+ * Hooks are methods that hook into some part of marked.
497
+ */
498
+ hooks?: _Hooks<ParserOutput, RendererOutput> | null;
499
+ /**
500
+ * Type: object Default: new Renderer()
501
+ *
502
+ * An object containing functions to render tokens to HTML.
503
+ */
504
+ renderer?: _Renderer<ParserOutput, RendererOutput> | null;
505
+ /**
506
+ * The tokenizer defines how to turn markdown text into tokens.
507
+ */
508
+ tokenizer?: _Tokenizer<ParserOutput, RendererOutput> | null;
509
+ /**
510
+ * Custom extensions
511
+ */
512
+ extensions?: null | {
513
+ renderers: {
514
+ [name: string]: RendererExtensionFunction<ParserOutput, RendererOutput>;
515
+ };
516
+ childTokens: {
517
+ [name: string]: string[];
518
+ };
519
+ inline?: TokenizerExtensionFunction[];
520
+ block?: TokenizerExtensionFunction[];
521
+ startInline?: TokenizerStartFunction[];
522
+ startBlock?: TokenizerStartFunction[];
523
+ };
524
+ /**
525
+ * walkTokens function returns array of values for Promise.all
526
+ */
527
+ walkTokens?: null | ((token: Token) => void | Promise<void> | (void | Promise<void>)[]);
528
+ }
529
+ /**
530
+ * Block Lexer
531
+ */
532
+ declare class _Lexer<ParserOutput = string, RendererOutput = string> {
533
+ tokens: TokensList;
534
+ options: MarkedOptions<ParserOutput, RendererOutput>;
535
+ state: {
536
+ inLink: boolean;
537
+ inRawBlock: boolean;
538
+ top: boolean;
539
+ };
540
+ inlineQueue: {
541
+ src: string;
542
+ tokens: Token[];
543
+ }[];
544
+ private tokenizer;
545
+ constructor(options?: MarkedOptions<ParserOutput, RendererOutput>);
546
+ /**
547
+ * Expose Rules
548
+ */
549
+ static get rules(): {
550
+ block: {
551
+ normal: {
552
+ blockquote: RegExp;
553
+ code: RegExp;
554
+ def: RegExp;
555
+ fences: RegExp;
556
+ heading: RegExp;
557
+ hr: RegExp;
558
+ html: RegExp;
559
+ lheading: RegExp;
560
+ list: RegExp;
561
+ newline: RegExp;
562
+ paragraph: RegExp;
563
+ table: RegExp;
564
+ text: RegExp;
565
+ };
566
+ gfm: Record<"code" | "blockquote" | "hr" | "html" | "table" | "text" | "def" | "heading" | "list" | "paragraph" | "fences" | "lheading" | "newline", RegExp>;
567
+ pedantic: Record<"code" | "blockquote" | "hr" | "html" | "table" | "text" | "def" | "heading" | "list" | "paragraph" | "fences" | "lheading" | "newline", RegExp>;
568
+ };
569
+ inline: {
570
+ normal: {
571
+ _backpedal: RegExp;
572
+ anyPunctuation: RegExp;
573
+ autolink: RegExp;
574
+ blockSkip: RegExp;
575
+ br: RegExp;
576
+ code: RegExp;
577
+ del: RegExp;
578
+ emStrongLDelim: RegExp;
579
+ emStrongRDelimAst: RegExp;
580
+ emStrongRDelimUnd: RegExp;
581
+ escape: RegExp;
582
+ link: RegExp;
583
+ nolink: RegExp;
584
+ punctuation: RegExp;
585
+ reflink: RegExp;
586
+ reflinkSearch: RegExp;
587
+ tag: RegExp;
588
+ text: RegExp;
589
+ url: RegExp;
590
+ };
591
+ gfm: Record<"link" | "code" | "url" | "br" | "del" | "text" | "escape" | "tag" | "reflink" | "nolink" | "_backpedal" | "anyPunctuation" | "autolink" | "blockSkip" | "emStrongLDelim" | "emStrongRDelimAst" | "emStrongRDelimUnd" | "punctuation" | "reflinkSearch", RegExp>;
592
+ breaks: Record<"link" | "code" | "url" | "br" | "del" | "text" | "escape" | "tag" | "reflink" | "nolink" | "_backpedal" | "anyPunctuation" | "autolink" | "blockSkip" | "emStrongLDelim" | "emStrongRDelimAst" | "emStrongRDelimUnd" | "punctuation" | "reflinkSearch", RegExp>;
593
+ pedantic: Record<"link" | "code" | "url" | "br" | "del" | "text" | "escape" | "tag" | "reflink" | "nolink" | "_backpedal" | "anyPunctuation" | "autolink" | "blockSkip" | "emStrongLDelim" | "emStrongRDelimAst" | "emStrongRDelimUnd" | "punctuation" | "reflinkSearch", RegExp>;
594
+ };
595
+ };
596
+ /**
597
+ * Static Lex Method
598
+ */
599
+ static lex<ParserOutput = string, RendererOutput = string>(src: string, options?: MarkedOptions<ParserOutput, RendererOutput>): TokensList;
600
+ /**
601
+ * Static Lex Inline Method
602
+ */
603
+ static lexInline<ParserOutput = string, RendererOutput = string>(src: string, options?: MarkedOptions<ParserOutput, RendererOutput>): Token[];
604
+ /**
605
+ * Preprocessing
606
+ */
607
+ lex(src: string): TokensList;
608
+ /**
609
+ * Lexing
610
+ */
611
+ blockTokens(src: string, tokens?: Token[], lastParagraphClipped?: boolean): Token[];
612
+ blockTokens(src: string, tokens?: TokensList, lastParagraphClipped?: boolean): TokensList;
613
+ inline(src: string, tokens?: Token[]): Token[];
614
+ /**
615
+ * Lexing/Compiling
616
+ */
617
+ inlineTokens(src: string, tokens?: Token[]): Token[];
618
+ }
619
+ /**
620
+ * Gets the original marked default options.
621
+ */
622
+ declare function _getDefaults<ParserOutput = string, RendererOutput = string>(): MarkedOptions<ParserOutput, RendererOutput>;
623
+ declare let _defaults: MarkedOptions<any, any>;
624
+ export type MaybePromise = void | Promise<void>;
625
+ export declare class Marked<ParserOutput = string, RendererOutput = string> {
626
+ defaults: MarkedOptions<ParserOutput, RendererOutput>;
627
+ options: (opt: MarkedOptions<ParserOutput, RendererOutput>) => this;
628
+ parse: {
629
+ (src: string, options: MarkedOptions<ParserOutput, RendererOutput> & {
630
+ async: true;
631
+ }): Promise<ParserOutput>;
632
+ (src: string, options: MarkedOptions<ParserOutput, RendererOutput> & {
633
+ async: false;
634
+ }): ParserOutput;
635
+ (src: string, options?: MarkedOptions<ParserOutput, RendererOutput> | null): ParserOutput | Promise<ParserOutput>;
636
+ };
637
+ parseInline: {
638
+ (src: string, options: MarkedOptions<ParserOutput, RendererOutput> & {
639
+ async: true;
640
+ }): Promise<ParserOutput>;
641
+ (src: string, options: MarkedOptions<ParserOutput, RendererOutput> & {
642
+ async: false;
643
+ }): ParserOutput;
644
+ (src: string, options?: MarkedOptions<ParserOutput, RendererOutput> | null): ParserOutput | Promise<ParserOutput>;
645
+ };
646
+ Parser: {
647
+ new (options?: MarkedOptions<ParserOutput, RendererOutput> | undefined): _Parser<ParserOutput, RendererOutput>;
648
+ parse<ParserOutput_1 = string, RendererOutput_1 = string>(tokens: Token[], options?: MarkedOptions<ParserOutput_1, RendererOutput_1>): ParserOutput_1;
649
+ parseInline<ParserOutput_1 = string, RendererOutput_1 = string>(tokens: Token[], options?: MarkedOptions<ParserOutput_1, RendererOutput_1>): ParserOutput_1;
650
+ };
651
+ Renderer: {
652
+ new (options?: MarkedOptions<ParserOutput, RendererOutput> | undefined): _Renderer<ParserOutput, RendererOutput>;
653
+ };
654
+ TextRenderer: {
655
+ new (): _TextRenderer<RendererOutput>;
656
+ };
657
+ Lexer: typeof _Lexer;
658
+ Tokenizer: {
659
+ new (options?: MarkedOptions<ParserOutput, RendererOutput> | undefined): _Tokenizer<ParserOutput, RendererOutput>;
660
+ };
661
+ Hooks: {
662
+ new (options?: MarkedOptions<ParserOutput, RendererOutput> | undefined): _Hooks<ParserOutput, RendererOutput>;
663
+ passThroughHooks: Set<string>;
664
+ passThroughHooksRespectAsync: Set<string>;
665
+ };
666
+ constructor(...args: MarkedExtension<ParserOutput, RendererOutput>[]);
667
+ /**
668
+ * Run callback for every token
669
+ */
670
+ walkTokens(tokens: Token[] | TokensList, callback: (token: Token) => MaybePromise | MaybePromise[]): MaybePromise[];
671
+ use(...args: MarkedExtension<ParserOutput, RendererOutput>[]): this;
672
+ setOptions(opt: MarkedOptions<ParserOutput, RendererOutput>): this;
673
+ lexer(src: string, options?: MarkedOptions<ParserOutput, RendererOutput>): TokensList;
674
+ parser(tokens: Token[], options?: MarkedOptions<ParserOutput, RendererOutput>): ParserOutput;
675
+ private parseMarkdown;
676
+ private onError;
677
+ }
678
+ /**
679
+ * Compiles markdown to HTML asynchronously.
680
+ *
681
+ * @param src String of markdown source to be compiled
682
+ * @param options Hash of options, having async: true
683
+ * @return Promise of string of compiled HTML
684
+ */
685
+ export declare function marked(src: string, options: MarkedOptions & {
686
+ async: true;
687
+ }): Promise<string>;
688
+ /**
689
+ * Compiles markdown to HTML.
690
+ *
691
+ * @param src String of markdown source to be compiled
692
+ * @param options Optional hash of options
693
+ * @return String of compiled HTML. Will be a Promise of string if async is set to true by any extensions.
694
+ */
695
+ export declare function marked(src: string, options: MarkedOptions & {
696
+ async: false;
697
+ }): string;
698
+ export declare function marked(src: string, options: MarkedOptions & {
699
+ async: true;
700
+ }): Promise<string>;
701
+ export declare function marked(src: string, options?: MarkedOptions | null): string | Promise<string>;
702
+ export declare namespace marked {
703
+ var options: (options: MarkedOptions) => typeof marked;
704
+ var setOptions: (options: MarkedOptions) => typeof marked;
705
+ var getDefaults: typeof _getDefaults;
706
+ var defaults: MarkedOptions<any, any>;
707
+ var use: (...args: MarkedExtension[]) => typeof marked;
708
+ var walkTokens: (tokens: Token[] | TokensList, callback: (token: Token) => MaybePromise | MaybePromise[]) => MaybePromise[];
709
+ var parseInline: {
710
+ (src: string, options: MarkedOptions<string, string> & {
711
+ async: true;
712
+ }): Promise<string>;
713
+ (src: string, options: MarkedOptions<string, string> & {
714
+ async: false;
715
+ }): string;
716
+ (src: string, options?: MarkedOptions<string, string> | null | undefined): string | Promise<string>;
717
+ };
718
+ var Parser: typeof _Parser;
719
+ var parser: typeof _Parser.parse;
720
+ var Renderer: typeof _Renderer;
721
+ var TextRenderer: typeof _TextRenderer;
722
+ var Lexer: typeof _Lexer;
723
+ var lexer: typeof _Lexer.lex;
724
+ var Tokenizer: typeof _Tokenizer;
725
+ var Hooks: typeof _Hooks;
726
+ var parse: typeof marked;
727
+ }
728
+ export declare const options: (options: MarkedOptions) => typeof marked;
729
+ export declare const setOptions: (options: MarkedOptions) => typeof marked;
730
+ export declare const use: (...args: MarkedExtension[]) => typeof marked;
731
+ export declare const walkTokens: (tokens: Token[] | TokensList, callback: (token: Token) => MaybePromise | MaybePromise[]) => MaybePromise[];
732
+ export declare const parseInline: {
733
+ (src: string, options: MarkedOptions<string, string> & {
734
+ async: true;
735
+ }): Promise<string>;
736
+ (src: string, options: MarkedOptions<string, string> & {
737
+ async: false;
738
+ }): string;
739
+ (src: string, options?: MarkedOptions<string, string> | null | undefined): string | Promise<string>;
740
+ };
741
+ export declare const parse: typeof marked;
742
+ export declare const parser: typeof _Parser.parse;
743
+ export declare const lexer: typeof _Lexer.lex;
744
+
745
+ export {
746
+ _Hooks as Hooks,
747
+ _Lexer as Lexer,
748
+ _Parser as Parser,
749
+ _Renderer as Renderer,
750
+ _TextRenderer as TextRenderer,
751
+ _Tokenizer as Tokenizer,
752
+ _defaults as defaults,
753
+ _getDefaults as getDefaults,
754
+ };
755
+
756
+ export {};