markstream-vue2 0.0.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.
@@ -0,0 +1,1742 @@
1
+ import * as vue from 'vue';
2
+ import { BaseNode, ParseOptions, MarkdownIt } from 'stream-markdown-parser';
3
+ export * from 'stream-markdown-parser';
4
+ export { KATEX_COMMANDS, MathOptions, normalizeStandaloneBackslashT, setDefaultMathOptions } from 'stream-markdown-parser';
5
+
6
+ type LanguageIconResolver = (lang: string) => string | undefined | null;
7
+ declare function setLanguageIconResolver(resolver?: LanguageIconResolver | null): void;
8
+ declare function normalizeLanguageIdentifier(lang?: string | null): string;
9
+ declare function resolveMonacoLanguageId(lang?: string | null): string;
10
+ declare function getLanguageIcon(lang: string): string;
11
+ declare const languageMap: Record<string, string>;
12
+
13
+ type AdmonitionKind = 'note' | 'info' | 'tip' | 'warning' | 'danger' | 'caution' | 'error';
14
+ interface AdmonitionNode {
15
+ type: 'admonition';
16
+ kind: AdmonitionKind;
17
+ title?: string;
18
+ children: {
19
+ type: string;
20
+ raw: string;
21
+ }[];
22
+ raw: string;
23
+ collapsible?: boolean;
24
+ open?: boolean;
25
+ }
26
+ type __VLS_Props$n = {
27
+ node: AdmonitionNode;
28
+ indexKey: number | string;
29
+ isDark?: boolean;
30
+ typewriter?: boolean;
31
+ customId?: string;
32
+ };
33
+ declare const _default$x: vue.DefineComponent<__VLS_TypePropsToOption$u<__VLS_Props$n>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
34
+ copy: (...args: any[]) => void;
35
+ }, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$u<__VLS_Props$n>>>, {}>;
36
+
37
+ type __VLS_NonUndefinedable$u<T> = T extends undefined ? never : T;
38
+ type __VLS_TypePropsToOption$u<T> = {
39
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
40
+ type: vue.PropType<__VLS_NonUndefinedable$u<T[K]>>;
41
+ } : {
42
+ type: vue.PropType<T[K]>;
43
+ required: true;
44
+ };
45
+ };
46
+
47
+ interface NodeChild$a {
48
+ type: string;
49
+ raw: string;
50
+ [key: string]: unknown;
51
+ }
52
+ interface BlockquoteNode {
53
+ type: 'blockquote';
54
+ children: NodeChild$a[];
55
+ raw: string;
56
+ cite?: string;
57
+ }
58
+ type __VLS_Props$m = {
59
+ node: BlockquoteNode;
60
+ indexKey: string | number;
61
+ typewriter?: boolean;
62
+ customId?: string;
63
+ };
64
+ declare const _default$w: vue.DefineComponent<__VLS_TypePropsToOption$t<__VLS_Props$m>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$t<__VLS_Props$m>>>, {}>;
65
+
66
+ type __VLS_NonUndefinedable$t<T> = T extends undefined ? never : T;
67
+ type __VLS_TypePropsToOption$t<T> = {
68
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
69
+ type: vue.PropType<__VLS_NonUndefinedable$t<T[K]>>;
70
+ } : {
71
+ type: vue.PropType<T[K]>;
72
+ required: true;
73
+ };
74
+ };
75
+
76
+ type __VLS_Props$l = {
77
+ node: {
78
+ type: 'checkbox';
79
+ checked: boolean;
80
+ raw: string;
81
+ };
82
+ };
83
+ declare const _default$v: vue.DefineComponent<__VLS_TypePropsToOption$s<__VLS_Props$l>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$s<__VLS_Props$l>>>, {}>;
84
+
85
+ type __VLS_NonUndefinedable$s<T> = T extends undefined ? never : T;
86
+ type __VLS_TypePropsToOption$s<T> = {
87
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
88
+ type: vue.PropType<__VLS_NonUndefinedable$s<T[K]>>;
89
+ } : {
90
+ type: vue.PropType<T[K]>;
91
+ required: true;
92
+ };
93
+ };
94
+
95
+ declare function __VLS_template$5(): {
96
+ attrs: Partial<{}>;
97
+ slots: {
98
+ 'header-left'?(_: {}): any;
99
+ 'header-right'?(_: {}): any;
100
+ loading?(_: {
101
+ loading: boolean;
102
+ stream: boolean;
103
+ }): any;
104
+ };
105
+ refs: {
106
+ container: HTMLDivElement;
107
+ codeEditor: HTMLDivElement;
108
+ };
109
+ rootEl: any;
110
+ };
111
+ type __VLS_TemplateResult$5 = ReturnType<typeof __VLS_template$5>;
112
+ declare const __VLS_component$5: vue.DefineComponent<{
113
+ node: {
114
+ type: ObjectConstructor;
115
+ required: true;
116
+ };
117
+ isDark: {
118
+ type: BooleanConstructor;
119
+ default: boolean;
120
+ };
121
+ loading: {
122
+ type: BooleanConstructor;
123
+ default: boolean;
124
+ };
125
+ stream: {
126
+ type: BooleanConstructor;
127
+ default: boolean;
128
+ };
129
+ darkTheme: {
130
+ type: (ObjectConstructor | StringConstructor)[];
131
+ default: any;
132
+ };
133
+ lightTheme: {
134
+ type: (ObjectConstructor | StringConstructor)[];
135
+ default: any;
136
+ };
137
+ isShowPreview: {
138
+ type: BooleanConstructor;
139
+ default: boolean;
140
+ };
141
+ monacoOptions: {
142
+ type: ObjectConstructor;
143
+ default: any;
144
+ };
145
+ enableFontSizeControl: {
146
+ type: BooleanConstructor;
147
+ default: boolean;
148
+ };
149
+ minWidth: {
150
+ type: (NumberConstructor | StringConstructor)[];
151
+ default: any;
152
+ };
153
+ maxWidth: {
154
+ type: (NumberConstructor | StringConstructor)[];
155
+ default: any;
156
+ };
157
+ themes: {
158
+ type: ArrayConstructor;
159
+ default: any;
160
+ };
161
+ showHeader: {
162
+ type: BooleanConstructor;
163
+ default: boolean;
164
+ };
165
+ showCopyButton: {
166
+ type: BooleanConstructor;
167
+ default: boolean;
168
+ };
169
+ showExpandButton: {
170
+ type: BooleanConstructor;
171
+ default: boolean;
172
+ };
173
+ showPreviewButton: {
174
+ type: BooleanConstructor;
175
+ default: boolean;
176
+ };
177
+ showFontSizeButtons: {
178
+ type: BooleanConstructor;
179
+ default: boolean;
180
+ };
181
+ customId: {
182
+ type: StringConstructor;
183
+ default: any;
184
+ };
185
+ }, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
186
+ copy: (...args: any[]) => void;
187
+ previewCode: (...args: any[]) => void;
188
+ }, string, Readonly<vue.ExtractPropTypes<{
189
+ node: {
190
+ type: ObjectConstructor;
191
+ required: true;
192
+ };
193
+ isDark: {
194
+ type: BooleanConstructor;
195
+ default: boolean;
196
+ };
197
+ loading: {
198
+ type: BooleanConstructor;
199
+ default: boolean;
200
+ };
201
+ stream: {
202
+ type: BooleanConstructor;
203
+ default: boolean;
204
+ };
205
+ darkTheme: {
206
+ type: (ObjectConstructor | StringConstructor)[];
207
+ default: any;
208
+ };
209
+ lightTheme: {
210
+ type: (ObjectConstructor | StringConstructor)[];
211
+ default: any;
212
+ };
213
+ isShowPreview: {
214
+ type: BooleanConstructor;
215
+ default: boolean;
216
+ };
217
+ monacoOptions: {
218
+ type: ObjectConstructor;
219
+ default: any;
220
+ };
221
+ enableFontSizeControl: {
222
+ type: BooleanConstructor;
223
+ default: boolean;
224
+ };
225
+ minWidth: {
226
+ type: (NumberConstructor | StringConstructor)[];
227
+ default: any;
228
+ };
229
+ maxWidth: {
230
+ type: (NumberConstructor | StringConstructor)[];
231
+ default: any;
232
+ };
233
+ themes: {
234
+ type: ArrayConstructor;
235
+ default: any;
236
+ };
237
+ showHeader: {
238
+ type: BooleanConstructor;
239
+ default: boolean;
240
+ };
241
+ showCopyButton: {
242
+ type: BooleanConstructor;
243
+ default: boolean;
244
+ };
245
+ showExpandButton: {
246
+ type: BooleanConstructor;
247
+ default: boolean;
248
+ };
249
+ showPreviewButton: {
250
+ type: BooleanConstructor;
251
+ default: boolean;
252
+ };
253
+ showFontSizeButtons: {
254
+ type: BooleanConstructor;
255
+ default: boolean;
256
+ };
257
+ customId: {
258
+ type: StringConstructor;
259
+ default: any;
260
+ };
261
+ }>>, {
262
+ customId: string;
263
+ themes: unknown[];
264
+ isDark: boolean;
265
+ maxWidth: string | number;
266
+ minWidth: string | number;
267
+ loading: boolean;
268
+ stream: boolean;
269
+ darkTheme: string | Record<string, any>;
270
+ lightTheme: string | Record<string, any>;
271
+ isShowPreview: boolean;
272
+ monacoOptions: Record<string, any>;
273
+ enableFontSizeControl: boolean;
274
+ showHeader: boolean;
275
+ showCopyButton: boolean;
276
+ showExpandButton: boolean;
277
+ showPreviewButton: boolean;
278
+ showFontSizeButtons: boolean;
279
+ }>;
280
+ declare const _default$u: __VLS_WithTemplateSlots$5<typeof __VLS_component$5, __VLS_TemplateResult$5["slots"]>;
281
+
282
+ type __VLS_WithTemplateSlots$5<T, S> = T & {
283
+ new (): {
284
+ $scopedSlots: S;
285
+ };
286
+ };
287
+
288
+ interface DefinitionItemNode {
289
+ type: 'definition_item';
290
+ term: {
291
+ type: string;
292
+ raw: string;
293
+ }[];
294
+ definition: {
295
+ type: string;
296
+ raw: string;
297
+ }[];
298
+ raw: string;
299
+ }
300
+ interface DefinitionListNode {
301
+ type: 'definition_list';
302
+ items: DefinitionItemNode[];
303
+ raw: string;
304
+ }
305
+ type __VLS_Props$k = {
306
+ node: DefinitionListNode;
307
+ indexKey: string | number;
308
+ typewriter?: boolean;
309
+ customId?: string;
310
+ };
311
+ declare const _default$t: vue.DefineComponent<__VLS_TypePropsToOption$r<__VLS_Props$k>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
312
+ copy: (...args: any[]) => void;
313
+ }, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$r<__VLS_Props$k>>>, {}>;
314
+
315
+ type __VLS_NonUndefinedable$r<T> = T extends undefined ? never : T;
316
+ type __VLS_TypePropsToOption$r<T> = {
317
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
318
+ type: vue.PropType<__VLS_NonUndefinedable$r<T[K]>>;
319
+ } : {
320
+ type: vue.PropType<T[K]>;
321
+ required: true;
322
+ };
323
+ };
324
+
325
+ type __VLS_Props$j = {
326
+ node: {
327
+ type: 'emoji';
328
+ name: string;
329
+ markup: string;
330
+ raw: string;
331
+ };
332
+ };
333
+ declare const _default$s: vue.DefineComponent<__VLS_TypePropsToOption$q<__VLS_Props$j>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$q<__VLS_Props$j>>>, {}>;
334
+
335
+ type __VLS_NonUndefinedable$q<T> = T extends undefined ? never : T;
336
+ type __VLS_TypePropsToOption$q<T> = {
337
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
338
+ type: vue.PropType<__VLS_NonUndefinedable$q<T[K]>>;
339
+ } : {
340
+ type: vue.PropType<T[K]>;
341
+ required: true;
342
+ };
343
+ };
344
+
345
+ type __VLS_Props$i = {
346
+ node: {
347
+ type: 'footnote_anchor';
348
+ id: string;
349
+ raw?: string;
350
+ };
351
+ };
352
+ declare const _default$r: vue.DefineComponent<__VLS_TypePropsToOption$p<__VLS_Props$i>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$p<__VLS_Props$i>>>, {}>;
353
+
354
+ type __VLS_NonUndefinedable$p<T> = T extends undefined ? never : T;
355
+ type __VLS_TypePropsToOption$p<T> = {
356
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
357
+ type: vue.PropType<__VLS_NonUndefinedable$p<T[K]>>;
358
+ } : {
359
+ type: vue.PropType<T[K]>;
360
+ required: true;
361
+ };
362
+ };
363
+
364
+ interface FootnoteNode {
365
+ type: 'footnote';
366
+ id: string;
367
+ children: {
368
+ type: string;
369
+ raw: string;
370
+ }[];
371
+ raw: string;
372
+ }
373
+ type __VLS_Props$h = {
374
+ node: FootnoteNode;
375
+ indexKey: string | number;
376
+ typewriter?: boolean;
377
+ customId?: string;
378
+ };
379
+ declare const _default$q: vue.DefineComponent<__VLS_TypePropsToOption$o<__VLS_Props$h>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
380
+ copy: (...args: any[]) => void;
381
+ }, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$o<__VLS_Props$h>>>, {}>;
382
+
383
+ type __VLS_NonUndefinedable$o<T> = T extends undefined ? never : T;
384
+ type __VLS_TypePropsToOption$o<T> = {
385
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
386
+ type: vue.PropType<__VLS_NonUndefinedable$o<T[K]>>;
387
+ } : {
388
+ type: vue.PropType<T[K]>;
389
+ required: true;
390
+ };
391
+ };
392
+
393
+ interface FootnoteReferenceNode {
394
+ type: 'footnote_reference';
395
+ id: string;
396
+ raw: string;
397
+ }
398
+ type __VLS_Props$g = {
399
+ node: FootnoteReferenceNode;
400
+ };
401
+ declare const _default$p: vue.DefineComponent<__VLS_TypePropsToOption$n<__VLS_Props$g>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$n<__VLS_Props$g>>>, {}>;
402
+
403
+ type __VLS_NonUndefinedable$n<T> = T extends undefined ? never : T;
404
+ type __VLS_TypePropsToOption$n<T> = {
405
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
406
+ type: vue.PropType<__VLS_NonUndefinedable$n<T[K]>>;
407
+ } : {
408
+ type: vue.PropType<T[K]>;
409
+ required: true;
410
+ };
411
+ };
412
+
413
+ interface HardBreakNode {
414
+ type: 'hardbreak';
415
+ raw: string;
416
+ }
417
+ type __VLS_Props$f = {
418
+ node: HardBreakNode;
419
+ };
420
+ declare const _default$o: vue.DefineComponent<__VLS_TypePropsToOption$m<__VLS_Props$f>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$m<__VLS_Props$f>>>, {}>;
421
+
422
+ type __VLS_NonUndefinedable$m<T> = T extends undefined ? never : T;
423
+ type __VLS_TypePropsToOption$m<T> = {
424
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
425
+ type: vue.PropType<__VLS_NonUndefinedable$m<T[K]>>;
426
+ } : {
427
+ type: vue.PropType<T[K]>;
428
+ required: true;
429
+ };
430
+ };
431
+
432
+ interface NodeChild$9 {
433
+ type: string;
434
+ raw: string;
435
+ [key: string]: unknown;
436
+ }
437
+ type __VLS_Props$e = {
438
+ node: {
439
+ type: 'heading';
440
+ level: number;
441
+ text: string;
442
+ children: NodeChild$9[];
443
+ raw: string;
444
+ };
445
+ customId?: string;
446
+ indexKey?: number | string;
447
+ };
448
+ declare const _default$n: vue.DefineComponent<__VLS_TypePropsToOption$l<__VLS_Props$e>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$l<__VLS_Props$e>>>, {}>;
449
+
450
+ type __VLS_NonUndefinedable$l<T> = T extends undefined ? never : T;
451
+ type __VLS_TypePropsToOption$l<T> = {
452
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
453
+ type: vue.PropType<__VLS_NonUndefinedable$l<T[K]>>;
454
+ } : {
455
+ type: vue.PropType<T[K]>;
456
+ required: true;
457
+ };
458
+ };
459
+
460
+ interface NodeChild$8 {
461
+ type: string;
462
+ raw: string;
463
+ [key: string]: unknown;
464
+ }
465
+ type __VLS_Props$d = {
466
+ node: {
467
+ type: 'highlight';
468
+ children: NodeChild$8[];
469
+ raw: string;
470
+ };
471
+ customId?: string;
472
+ indexKey?: number | string;
473
+ };
474
+ declare const _default$m: vue.DefineComponent<__VLS_TypePropsToOption$k<__VLS_Props$d>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$k<__VLS_Props$d>>>, {}>;
475
+
476
+ type __VLS_NonUndefinedable$k<T> = T extends undefined ? never : T;
477
+ type __VLS_TypePropsToOption$k<T> = {
478
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
479
+ type: vue.PropType<__VLS_NonUndefinedable$k<T[K]>>;
480
+ } : {
481
+ type: vue.PropType<T[K]>;
482
+ required: true;
483
+ };
484
+ };
485
+
486
+ type __VLS_Props$c = {
487
+ node: {
488
+ type: 'html_inline';
489
+ tag?: string;
490
+ content: string;
491
+ loading?: boolean;
492
+ autoClosed?: boolean;
493
+ };
494
+ };
495
+ declare const _default$l: vue.DefineComponent<__VLS_TypePropsToOption$j<__VLS_Props$c>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$j<__VLS_Props$c>>>, {}>;
496
+
497
+ type __VLS_NonUndefinedable$j<T> = T extends undefined ? never : T;
498
+ type __VLS_TypePropsToOption$j<T> = {
499
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
500
+ type: vue.PropType<__VLS_NonUndefinedable$j<T[K]>>;
501
+ } : {
502
+ type: vue.PropType<T[K]>;
503
+ required: true;
504
+ };
505
+ };
506
+
507
+ interface ImageNodeProps {
508
+ node: {
509
+ type: 'image';
510
+ src: string;
511
+ alt: string;
512
+ title: string | null;
513
+ raw: string;
514
+ loading?: boolean;
515
+ };
516
+ fallbackSrc?: string;
517
+ showCaption?: boolean;
518
+ lazy?: boolean;
519
+ svgMinHeight?: string;
520
+ usePlaceholder?: boolean;
521
+ }
522
+ declare function __VLS_template$4(): {
523
+ attrs: Partial<{}>;
524
+ slots: {
525
+ placeholder?(_: {
526
+ node: {
527
+ type: "image";
528
+ src: string;
529
+ alt: string;
530
+ title: string | null;
531
+ raw: string;
532
+ loading?: boolean;
533
+ };
534
+ displaySrc: string;
535
+ imageLoaded: boolean;
536
+ hasError: boolean;
537
+ fallbackSrc: string;
538
+ lazy: boolean;
539
+ isSvg: boolean;
540
+ }): any;
541
+ error?(_: {
542
+ node: {
543
+ type: "image";
544
+ src: string;
545
+ alt: string;
546
+ title: string | null;
547
+ raw: string;
548
+ loading?: boolean;
549
+ };
550
+ displaySrc: string;
551
+ imageLoaded: boolean;
552
+ hasError: true;
553
+ fallbackSrc: string;
554
+ lazy: boolean;
555
+ isSvg: boolean;
556
+ }): any;
557
+ };
558
+ refs: {
559
+ figureRef: HTMLElement;
560
+ };
561
+ rootEl: HTMLElement;
562
+ };
563
+ type __VLS_TemplateResult$4 = ReturnType<typeof __VLS_template$4>;
564
+ declare const __VLS_component$4: vue.DefineComponent<__VLS_WithDefaults$3<__VLS_TypePropsToOption$i<ImageNodeProps>, {
565
+ fallbackSrc: string;
566
+ showCaption: boolean;
567
+ lazy: boolean;
568
+ svgMinHeight: string;
569
+ usePlaceholder: boolean;
570
+ }>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
571
+ load: (src: string) => void;
572
+ error: (src: string) => void;
573
+ click: (payload: [Event, string]) => void;
574
+ }, string, Readonly<vue.ExtractPropTypes<__VLS_WithDefaults$3<__VLS_TypePropsToOption$i<ImageNodeProps>, {
575
+ fallbackSrc: string;
576
+ showCaption: boolean;
577
+ lazy: boolean;
578
+ svgMinHeight: string;
579
+ usePlaceholder: boolean;
580
+ }>>>, {
581
+ fallbackSrc: string;
582
+ showCaption: boolean;
583
+ lazy: boolean;
584
+ svgMinHeight: string;
585
+ usePlaceholder: boolean;
586
+ }>;
587
+ declare const _default$k: __VLS_WithTemplateSlots$4<typeof __VLS_component$4, __VLS_TemplateResult$4["slots"]>;
588
+
589
+ type __VLS_WithDefaults$3<P, D> = {
590
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal$3<P[K] & {
591
+ default: D[K];
592
+ }> : P[K];
593
+ };
594
+ type __VLS_NonUndefinedable$i<T> = T extends undefined ? never : T;
595
+ type __VLS_TypePropsToOption$i<T> = {
596
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
597
+ type: vue.PropType<__VLS_NonUndefinedable$i<T[K]>>;
598
+ } : {
599
+ type: vue.PropType<T[K]>;
600
+ required: true;
601
+ };
602
+ };
603
+ type __VLS_WithTemplateSlots$4<T, S> = T & {
604
+ new (): {
605
+ $scopedSlots: S;
606
+ };
607
+ };
608
+ type __VLS_PrettifyLocal$3<T> = {
609
+ [K in keyof T]: T[K];
610
+ } & {};
611
+
612
+ type __VLS_Props$b = {
613
+ node: {
614
+ type: 'inline_code';
615
+ code: string;
616
+ raw: string;
617
+ };
618
+ };
619
+ declare const _default$j: vue.DefineComponent<__VLS_TypePropsToOption$h<__VLS_Props$b>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$h<__VLS_Props$b>>>, {}>;
620
+
621
+ type __VLS_NonUndefinedable$h<T> = T extends undefined ? never : T;
622
+ type __VLS_TypePropsToOption$h<T> = {
623
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
624
+ type: vue.PropType<__VLS_NonUndefinedable$h<T[K]>>;
625
+ } : {
626
+ type: vue.PropType<T[K]>;
627
+ required: true;
628
+ };
629
+ };
630
+
631
+ interface NodeChild$7 {
632
+ type: string;
633
+ raw: string;
634
+ [key: string]: unknown;
635
+ }
636
+ type __VLS_Props$a = {
637
+ node: {
638
+ type: 'insert';
639
+ children: NodeChild$7[];
640
+ raw: string;
641
+ };
642
+ customId?: string;
643
+ indexKey?: number | string;
644
+ };
645
+ declare const _default$i: vue.DefineComponent<__VLS_TypePropsToOption$g<__VLS_Props$a>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$g<__VLS_Props$a>>>, {}>;
646
+
647
+ type __VLS_NonUndefinedable$g<T> = T extends undefined ? never : T;
648
+ type __VLS_TypePropsToOption$g<T> = {
649
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
650
+ type: vue.PropType<__VLS_NonUndefinedable$g<T[K]>>;
651
+ } : {
652
+ type: vue.PropType<T[K]>;
653
+ required: true;
654
+ };
655
+ };
656
+
657
+ interface LinkNodeProps {
658
+ node: {
659
+ type: 'link';
660
+ href: string;
661
+ title: string | null;
662
+ text: string;
663
+ children: {
664
+ type: string;
665
+ raw: string;
666
+ }[];
667
+ raw: string;
668
+ loading?: boolean;
669
+ };
670
+ indexKey: number | string;
671
+ customId?: string;
672
+ showTooltip?: boolean;
673
+ color?: string;
674
+ underlineHeight?: number;
675
+ underlineBottom?: number | string;
676
+ animationDuration?: number;
677
+ animationOpacity?: number;
678
+ animationTiming?: string;
679
+ animationIteration?: string | number;
680
+ }
681
+ declare const _default$h: vue.DefineComponent<__VLS_WithDefaults$2<__VLS_TypePropsToOption$f<LinkNodeProps>, {
682
+ showTooltip: boolean;
683
+ }>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_WithDefaults$2<__VLS_TypePropsToOption$f<LinkNodeProps>, {
684
+ showTooltip: boolean;
685
+ }>>>, {
686
+ showTooltip: boolean;
687
+ }>;
688
+
689
+ type __VLS_WithDefaults$2<P, D> = {
690
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal$2<P[K] & {
691
+ default: D[K];
692
+ }> : P[K];
693
+ };
694
+ type __VLS_NonUndefinedable$f<T> = T extends undefined ? never : T;
695
+ type __VLS_TypePropsToOption$f<T> = {
696
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
697
+ type: vue.PropType<__VLS_NonUndefinedable$f<T[K]>>;
698
+ } : {
699
+ type: vue.PropType<T[K]>;
700
+ required: true;
701
+ };
702
+ };
703
+ type __VLS_PrettifyLocal$2<T> = {
704
+ [K in keyof T]: T[K];
705
+ } & {};
706
+
707
+ interface NodeChild$6 {
708
+ type: string;
709
+ raw: string;
710
+ [key: string]: unknown;
711
+ }
712
+ interface ListItem$1 {
713
+ type: 'list_item';
714
+ children: NodeChild$6[];
715
+ raw: string;
716
+ }
717
+ type __VLS_Props$9 = {
718
+ item: ListItem$1;
719
+ indexKey?: number | string;
720
+ value?: number;
721
+ customId?: string;
722
+ /** Forwarded flag to enable/disable non-code node enter transition */
723
+ typewriter?: boolean;
724
+ };
725
+ declare const _default$g: vue.DefineComponent<__VLS_TypePropsToOption$e<__VLS_Props$9>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$e<__VLS_Props$9>>>, {}>;
726
+
727
+ type __VLS_NonUndefinedable$e<T> = T extends undefined ? never : T;
728
+ type __VLS_TypePropsToOption$e<T> = {
729
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
730
+ type: vue.PropType<__VLS_NonUndefinedable$e<T[K]>>;
731
+ } : {
732
+ type: vue.PropType<T[K]>;
733
+ required: true;
734
+ };
735
+ };
736
+
737
+ interface NodeChild$5 {
738
+ type: string;
739
+ raw: string;
740
+ [key: string]: unknown;
741
+ }
742
+ interface ListItem {
743
+ type: 'list_item';
744
+ children: NodeChild$5[];
745
+ raw: string;
746
+ }
747
+ type __VLS_Props$8 = {
748
+ node: {
749
+ type: 'list';
750
+ ordered: boolean;
751
+ start?: number;
752
+ items: ListItem[];
753
+ raw: string;
754
+ };
755
+ customId?: string;
756
+ indexKey?: number | string;
757
+ typewriter?: boolean;
758
+ };
759
+ declare const _default$f: vue.DefineComponent<__VLS_TypePropsToOption$d<__VLS_Props$8>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
760
+ copy: (...args: any[]) => void;
761
+ }, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$d<__VLS_Props$8>>>, {}>;
762
+
763
+ type __VLS_NonUndefinedable$d<T> = T extends undefined ? never : T;
764
+ type __VLS_TypePropsToOption$d<T> = {
765
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
766
+ type: vue.PropType<__VLS_NonUndefinedable$d<T[K]>>;
767
+ } : {
768
+ type: vue.PropType<T[K]>;
769
+ required: true;
770
+ };
771
+ };
772
+
773
+ declare function __VLS_template$3(): {
774
+ attrs: Partial<{}>;
775
+ slots: {
776
+ 'header-left'?(_: {}): any;
777
+ 'header-right'?(_: {}): any;
778
+ loading?(_: {
779
+ loading: boolean;
780
+ stream: boolean;
781
+ }): any;
782
+ };
783
+ refs: {
784
+ codeBlockContent: HTMLDivElement;
785
+ rendererTarget: HTMLDivElement;
786
+ };
787
+ rootEl: any;
788
+ };
789
+ type __VLS_TemplateResult$3 = ReturnType<typeof __VLS_template$3>;
790
+ declare const __VLS_component$3: vue.DefineComponent<{
791
+ node: {
792
+ type: ObjectConstructor;
793
+ required: true;
794
+ };
795
+ loading: {
796
+ type: BooleanConstructor;
797
+ default: boolean;
798
+ };
799
+ stream: {
800
+ type: BooleanConstructor;
801
+ default: boolean;
802
+ };
803
+ darkTheme: {
804
+ type: StringConstructor;
805
+ default: string;
806
+ };
807
+ lightTheme: {
808
+ type: StringConstructor;
809
+ default: string;
810
+ };
811
+ isDark: {
812
+ type: BooleanConstructor;
813
+ default: boolean;
814
+ };
815
+ isShowPreview: {
816
+ type: BooleanConstructor;
817
+ default: boolean;
818
+ };
819
+ enableFontSizeControl: {
820
+ type: BooleanConstructor;
821
+ default: boolean;
822
+ };
823
+ minWidth: {
824
+ type: (NumberConstructor | StringConstructor)[];
825
+ default: any;
826
+ };
827
+ maxWidth: {
828
+ type: (NumberConstructor | StringConstructor)[];
829
+ default: any;
830
+ };
831
+ themes: {
832
+ type: ArrayConstructor;
833
+ default: any;
834
+ };
835
+ showHeader: {
836
+ type: BooleanConstructor;
837
+ default: boolean;
838
+ };
839
+ showCopyButton: {
840
+ type: BooleanConstructor;
841
+ default: boolean;
842
+ };
843
+ showExpandButton: {
844
+ type: BooleanConstructor;
845
+ default: boolean;
846
+ };
847
+ showPreviewButton: {
848
+ type: BooleanConstructor;
849
+ default: boolean;
850
+ };
851
+ showFontSizeButtons: {
852
+ type: BooleanConstructor;
853
+ default: boolean;
854
+ };
855
+ }, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
856
+ copy: (...args: any[]) => void;
857
+ previewCode: (...args: any[]) => void;
858
+ }, string, Readonly<vue.ExtractPropTypes<{
859
+ node: {
860
+ type: ObjectConstructor;
861
+ required: true;
862
+ };
863
+ loading: {
864
+ type: BooleanConstructor;
865
+ default: boolean;
866
+ };
867
+ stream: {
868
+ type: BooleanConstructor;
869
+ default: boolean;
870
+ };
871
+ darkTheme: {
872
+ type: StringConstructor;
873
+ default: string;
874
+ };
875
+ lightTheme: {
876
+ type: StringConstructor;
877
+ default: string;
878
+ };
879
+ isDark: {
880
+ type: BooleanConstructor;
881
+ default: boolean;
882
+ };
883
+ isShowPreview: {
884
+ type: BooleanConstructor;
885
+ default: boolean;
886
+ };
887
+ enableFontSizeControl: {
888
+ type: BooleanConstructor;
889
+ default: boolean;
890
+ };
891
+ minWidth: {
892
+ type: (NumberConstructor | StringConstructor)[];
893
+ default: any;
894
+ };
895
+ maxWidth: {
896
+ type: (NumberConstructor | StringConstructor)[];
897
+ default: any;
898
+ };
899
+ themes: {
900
+ type: ArrayConstructor;
901
+ default: any;
902
+ };
903
+ showHeader: {
904
+ type: BooleanConstructor;
905
+ default: boolean;
906
+ };
907
+ showCopyButton: {
908
+ type: BooleanConstructor;
909
+ default: boolean;
910
+ };
911
+ showExpandButton: {
912
+ type: BooleanConstructor;
913
+ default: boolean;
914
+ };
915
+ showPreviewButton: {
916
+ type: BooleanConstructor;
917
+ default: boolean;
918
+ };
919
+ showFontSizeButtons: {
920
+ type: BooleanConstructor;
921
+ default: boolean;
922
+ };
923
+ }>>, {
924
+ themes: unknown[];
925
+ isDark: boolean;
926
+ maxWidth: string | number;
927
+ minWidth: string | number;
928
+ loading: boolean;
929
+ stream: boolean;
930
+ darkTheme: string;
931
+ lightTheme: string;
932
+ isShowPreview: boolean;
933
+ enableFontSizeControl: boolean;
934
+ showHeader: boolean;
935
+ showCopyButton: boolean;
936
+ showExpandButton: boolean;
937
+ showPreviewButton: boolean;
938
+ showFontSizeButtons: boolean;
939
+ }>;
940
+ declare const _default$e: __VLS_WithTemplateSlots$3<typeof __VLS_component$3, __VLS_TemplateResult$3["slots"]>;
941
+
942
+ type __VLS_WithTemplateSlots$3<T, S> = T & {
943
+ new (): {
944
+ $scopedSlots: S;
945
+ };
946
+ };
947
+
948
+ interface MathBlockNodeProps {
949
+ node: {
950
+ type: 'math_block';
951
+ content: string;
952
+ raw: string;
953
+ loading?: boolean;
954
+ };
955
+ }
956
+ declare const _default$d: vue.DefineComponent<__VLS_TypePropsToOption$c<MathBlockNodeProps>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$c<MathBlockNodeProps>>>, {}>;
957
+
958
+ type __VLS_NonUndefinedable$c<T> = T extends undefined ? never : T;
959
+ type __VLS_TypePropsToOption$c<T> = {
960
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
961
+ type: vue.PropType<__VLS_NonUndefinedable$c<T[K]>>;
962
+ } : {
963
+ type: vue.PropType<T[K]>;
964
+ required: true;
965
+ };
966
+ };
967
+
968
+ interface MathInlineNodeProps {
969
+ node: {
970
+ type: 'math_inline';
971
+ content: string;
972
+ raw: string;
973
+ loading?: boolean;
974
+ };
975
+ }
976
+ declare function __VLS_template$2(): {
977
+ attrs: Partial<{}>;
978
+ slots: {
979
+ loading?(_: {
980
+ isLoading: true;
981
+ }): any;
982
+ };
983
+ refs: {
984
+ containerEl: HTMLSpanElement;
985
+ mathElement: HTMLSpanElement;
986
+ };
987
+ rootEl: HTMLSpanElement;
988
+ };
989
+ type __VLS_TemplateResult$2 = ReturnType<typeof __VLS_template$2>;
990
+ declare const __VLS_component$2: vue.DefineComponent<__VLS_TypePropsToOption$b<MathInlineNodeProps>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$b<MathInlineNodeProps>>>, {}>;
991
+ declare const _default$c: __VLS_WithTemplateSlots$2<typeof __VLS_component$2, __VLS_TemplateResult$2["slots"]>;
992
+
993
+ type __VLS_NonUndefinedable$b<T> = T extends undefined ? never : T;
994
+ type __VLS_TypePropsToOption$b<T> = {
995
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
996
+ type: vue.PropType<__VLS_NonUndefinedable$b<T[K]>>;
997
+ } : {
998
+ type: vue.PropType<T[K]>;
999
+ required: true;
1000
+ };
1001
+ };
1002
+ type __VLS_WithTemplateSlots$2<T, S> = T & {
1003
+ new (): {
1004
+ $scopedSlots: S;
1005
+ };
1006
+ };
1007
+
1008
+ type KatexLoader = () => Promise<any> | any;
1009
+ declare function setKatexLoader(loader: KatexLoader | null): void;
1010
+ declare function enableKatex(loader?: KatexLoader): void;
1011
+ declare function disableKatex(): void;
1012
+ declare function isKatexEnabled(): boolean;
1013
+
1014
+ interface MermaidBlockNodeProps {
1015
+ node: any;
1016
+ maxHeight?: string | null;
1017
+ loading?: boolean;
1018
+ isDark?: boolean;
1019
+ workerTimeoutMs?: number;
1020
+ parseTimeoutMs?: number;
1021
+ renderTimeoutMs?: number;
1022
+ fullRenderTimeoutMs?: number;
1023
+ showHeader?: boolean;
1024
+ showModeToggle?: boolean;
1025
+ showCopyButton?: boolean;
1026
+ showExportButton?: boolean;
1027
+ showFullscreenButton?: boolean;
1028
+ showCollapseButton?: boolean;
1029
+ showZoomControls?: boolean;
1030
+ enableWheelZoom?: boolean;
1031
+ isStrict?: boolean;
1032
+ }
1033
+ declare function __VLS_template$1(): {
1034
+ attrs: Partial<{}>;
1035
+ slots: {
1036
+ 'header-left'?(_: {}): any;
1037
+ 'header-center'?(_: {}): any;
1038
+ 'header-right'?(_: {}): any;
1039
+ };
1040
+ refs: {
1041
+ modeContainerRef: HTMLDivElement;
1042
+ mermaidContainer: HTMLDivElement;
1043
+ mermaidContent: HTMLDivElement;
1044
+ modalContent: HTMLDivElement;
1045
+ };
1046
+ rootEl: HTMLDivElement;
1047
+ };
1048
+ type __VLS_TemplateResult$1 = ReturnType<typeof __VLS_template$1>;
1049
+ declare const __VLS_component$1: vue.DefineComponent<__VLS_WithDefaults$1<__VLS_TypePropsToOption$a<MermaidBlockNodeProps>, {
1050
+ maxHeight: string;
1051
+ loading: boolean;
1052
+ workerTimeoutMs: number;
1053
+ parseTimeoutMs: number;
1054
+ renderTimeoutMs: number;
1055
+ fullRenderTimeoutMs: number;
1056
+ showHeader: boolean;
1057
+ showModeToggle: boolean;
1058
+ showCopyButton: boolean;
1059
+ showExportButton: boolean;
1060
+ showFullscreenButton: boolean;
1061
+ showCollapseButton: boolean;
1062
+ showZoomControls: boolean;
1063
+ enableWheelZoom: boolean;
1064
+ isStrict: boolean;
1065
+ }>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
1066
+ copy: (...args: any[]) => void;
1067
+ export: (...args: any[]) => void;
1068
+ openModal: (...args: any[]) => void;
1069
+ toggleMode: (...args: any[]) => void;
1070
+ }, string, Readonly<vue.ExtractPropTypes<__VLS_WithDefaults$1<__VLS_TypePropsToOption$a<MermaidBlockNodeProps>, {
1071
+ maxHeight: string;
1072
+ loading: boolean;
1073
+ workerTimeoutMs: number;
1074
+ parseTimeoutMs: number;
1075
+ renderTimeoutMs: number;
1076
+ fullRenderTimeoutMs: number;
1077
+ showHeader: boolean;
1078
+ showModeToggle: boolean;
1079
+ showCopyButton: boolean;
1080
+ showExportButton: boolean;
1081
+ showFullscreenButton: boolean;
1082
+ showCollapseButton: boolean;
1083
+ showZoomControls: boolean;
1084
+ enableWheelZoom: boolean;
1085
+ isStrict: boolean;
1086
+ }>>>, {
1087
+ maxHeight: string | null;
1088
+ loading: boolean;
1089
+ showHeader: boolean;
1090
+ showCopyButton: boolean;
1091
+ workerTimeoutMs: number;
1092
+ parseTimeoutMs: number;
1093
+ renderTimeoutMs: number;
1094
+ fullRenderTimeoutMs: number;
1095
+ showModeToggle: boolean;
1096
+ showExportButton: boolean;
1097
+ showFullscreenButton: boolean;
1098
+ showCollapseButton: boolean;
1099
+ showZoomControls: boolean;
1100
+ enableWheelZoom: boolean;
1101
+ isStrict: boolean;
1102
+ }>;
1103
+ declare const _default$b: __VLS_WithTemplateSlots$1<typeof __VLS_component$1, __VLS_TemplateResult$1["slots"]>;
1104
+
1105
+ type __VLS_WithDefaults$1<P, D> = {
1106
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal$1<P[K] & {
1107
+ default: D[K];
1108
+ }> : P[K];
1109
+ };
1110
+ type __VLS_NonUndefinedable$a<T> = T extends undefined ? never : T;
1111
+ type __VLS_TypePropsToOption$a<T> = {
1112
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
1113
+ type: vue.PropType<__VLS_NonUndefinedable$a<T[K]>>;
1114
+ } : {
1115
+ type: vue.PropType<T[K]>;
1116
+ required: true;
1117
+ };
1118
+ };
1119
+ type __VLS_WithTemplateSlots$1<T, S> = T & {
1120
+ new (): {
1121
+ $scopedSlots: S;
1122
+ };
1123
+ };
1124
+ type __VLS_PrettifyLocal$1<T> = {
1125
+ [K in keyof T]: T[K];
1126
+ } & {};
1127
+
1128
+ type MermaidLoader = () => Promise<any> | any;
1129
+ declare function setMermaidLoader(loader: MermaidLoader | null): void;
1130
+ declare function enableMermaid(loader?: MermaidLoader): void;
1131
+ declare function disableMermaid(): void;
1132
+ declare function isMermaidEnabled(): boolean;
1133
+
1134
+ interface NodeRendererProps {
1135
+ content?: string;
1136
+ nodes?: BaseNode[];
1137
+ /**
1138
+ * Whether the input stream is complete (end-of-stream). When true, the parser
1139
+ * will stop emitting streaming "loading" nodes for unfinished constructs.
1140
+ */
1141
+ final?: boolean;
1142
+ /** Options forwarded to parseMarkdownToStructure when content is provided */
1143
+ parseOptions?: ParseOptions;
1144
+ customMarkdownIt?: (md: MarkdownIt) => MarkdownIt;
1145
+ /** Log parse/render timing and virtualization stats (dev only) */
1146
+ debugPerformance?: boolean;
1147
+ /**
1148
+ * Custom HTML-like tags that participate in streaming mid‑state handling
1149
+ * and are emitted as custom nodes (e.g. ['thinking']). Forwarded to `getMarkdown()`.
1150
+ */
1151
+ customHtmlTags?: readonly string[];
1152
+ /** Enable priority rendering for visible viewport area */
1153
+ viewportPriority?: boolean;
1154
+ /**
1155
+ * Whether code_block renders should stream updates.
1156
+ * When false, code blocks stay in a loading state and render once when final content is ready.
1157
+ * Default: true
1158
+ */
1159
+ codeBlockStream?: boolean;
1160
+ codeBlockDarkTheme?: any;
1161
+ codeBlockLightTheme?: any;
1162
+ codeBlockMonacoOptions?: Record<string, any>;
1163
+ /** If true, render all `code_block` nodes as plain <pre><code> blocks instead of the full CodeBlockNode */
1164
+ renderCodeBlocksAsPre?: boolean;
1165
+ /** Minimum width forwarded to CodeBlockNode (px or CSS unit) */
1166
+ codeBlockMinWidth?: string | number;
1167
+ /** Maximum width forwarded to CodeBlockNode (px or CSS unit) */
1168
+ codeBlockMaxWidth?: string | number;
1169
+ /** Arbitrary props to forward to every CodeBlockNode */
1170
+ codeBlockProps?: Record<string, any>;
1171
+ themes?: string[];
1172
+ isDark?: boolean;
1173
+ customId?: string;
1174
+ indexKey?: number | string;
1175
+ /** Enable/disable the non-code-node enter transition (typewriter). Default: true */
1176
+ typewriter?: boolean;
1177
+ /** Enable incremental/batched rendering of nodes to avoid large single flush costs. Default: true */
1178
+ batchRendering?: boolean;
1179
+ /** How many nodes to render immediately before batching kicks in. Default: 40 */
1180
+ initialRenderBatchSize?: number;
1181
+ /** How many additional nodes to render per batch tick. Default: 80 */
1182
+ renderBatchSize?: number;
1183
+ /** Extra delay (ms) before each batch after rAF; helps yield to input. Default: 16 */
1184
+ renderBatchDelay?: number;
1185
+ /** Target budget (ms) for each batch before we shrink subsequent batch sizes. Default: 6 */
1186
+ renderBatchBudgetMs?: number;
1187
+ /** Timeout (ms) for requestIdleCallback slices. Default: 120 */
1188
+ renderBatchIdleTimeoutMs?: number;
1189
+ /** Defer rendering nodes until they are near the viewport */
1190
+ deferNodesUntilVisible?: boolean;
1191
+ /** Maximum number of fully rendered nodes kept in DOM. Default: 320 */
1192
+ maxLiveNodes?: number;
1193
+ /** Number of nodes to keep before/after focus. Default: 60 */
1194
+ liveNodeBuffer?: number;
1195
+ }
1196
+ declare const _default$a: vue.DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption$9<NodeRendererProps>, {
1197
+ codeBlockStream: boolean;
1198
+ typewriter: boolean;
1199
+ batchRendering: boolean;
1200
+ debugPerformance: boolean;
1201
+ initialRenderBatchSize: number;
1202
+ renderBatchSize: number;
1203
+ renderBatchDelay: number;
1204
+ renderBatchBudgetMs: number;
1205
+ renderBatchIdleTimeoutMs: number;
1206
+ deferNodesUntilVisible: boolean;
1207
+ maxLiveNodes: number;
1208
+ liveNodeBuffer: number;
1209
+ }>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
1210
+ copy: (...args: any[]) => void;
1211
+ handleArtifactClick: (...args: any[]) => void;
1212
+ click: (...args: any[]) => void;
1213
+ mouseover: (...args: any[]) => void;
1214
+ mouseout: (...args: any[]) => void;
1215
+ }, string, Readonly<vue.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption$9<NodeRendererProps>, {
1216
+ codeBlockStream: boolean;
1217
+ typewriter: boolean;
1218
+ batchRendering: boolean;
1219
+ debugPerformance: boolean;
1220
+ initialRenderBatchSize: number;
1221
+ renderBatchSize: number;
1222
+ renderBatchDelay: number;
1223
+ renderBatchBudgetMs: number;
1224
+ renderBatchIdleTimeoutMs: number;
1225
+ deferNodesUntilVisible: boolean;
1226
+ maxLiveNodes: number;
1227
+ liveNodeBuffer: number;
1228
+ }>>>, {
1229
+ typewriter: boolean;
1230
+ codeBlockStream: boolean;
1231
+ batchRendering: boolean;
1232
+ debugPerformance: boolean;
1233
+ initialRenderBatchSize: number;
1234
+ renderBatchSize: number;
1235
+ renderBatchDelay: number;
1236
+ renderBatchBudgetMs: number;
1237
+ renderBatchIdleTimeoutMs: number;
1238
+ deferNodesUntilVisible: boolean;
1239
+ maxLiveNodes: number;
1240
+ liveNodeBuffer: number;
1241
+ }>;
1242
+
1243
+ type __VLS_WithDefaults<P, D> = {
1244
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
1245
+ default: D[K];
1246
+ }> : P[K];
1247
+ };
1248
+ type __VLS_NonUndefinedable$9<T> = T extends undefined ? never : T;
1249
+ type __VLS_TypePropsToOption$9<T> = {
1250
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
1251
+ type: vue.PropType<__VLS_NonUndefinedable$9<T[K]>>;
1252
+ } : {
1253
+ type: vue.PropType<T[K]>;
1254
+ required: true;
1255
+ };
1256
+ };
1257
+ type __VLS_PrettifyLocal<T> = {
1258
+ [K in keyof T]: T[K];
1259
+ } & {};
1260
+
1261
+ interface NodeChild$4 {
1262
+ type: string;
1263
+ raw: string;
1264
+ [key: string]: unknown;
1265
+ }
1266
+ type __VLS_Props$7 = {
1267
+ node: {
1268
+ type: 'paragraph';
1269
+ children: NodeChild$4[];
1270
+ raw: string;
1271
+ };
1272
+ customId?: string;
1273
+ indexKey?: number | string;
1274
+ };
1275
+ declare const _default$9: vue.DefineComponent<__VLS_TypePropsToOption$8<__VLS_Props$7>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$8<__VLS_Props$7>>>, {}>;
1276
+
1277
+ type __VLS_NonUndefinedable$8<T> = T extends undefined ? never : T;
1278
+ type __VLS_TypePropsToOption$8<T> = {
1279
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
1280
+ type: vue.PropType<__VLS_NonUndefinedable$8<T[K]>>;
1281
+ } : {
1282
+ type: vue.PropType<T[K]>;
1283
+ required: true;
1284
+ };
1285
+ };
1286
+
1287
+ interface PreCodeNodeProps {
1288
+ node: any;
1289
+ }
1290
+ declare const _default$8: vue.DefineComponent<__VLS_TypePropsToOption$7<PreCodeNodeProps>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$7<PreCodeNodeProps>>>, {}>;
1291
+
1292
+ type __VLS_NonUndefinedable$7<T> = T extends undefined ? never : T;
1293
+ type __VLS_TypePropsToOption$7<T> = {
1294
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
1295
+ type: vue.PropType<__VLS_NonUndefinedable$7<T[K]>>;
1296
+ } : {
1297
+ type: vue.PropType<T[K]>;
1298
+ required: true;
1299
+ };
1300
+ };
1301
+
1302
+ type __VLS_Props$6 = {
1303
+ node: {
1304
+ type: 'reference';
1305
+ id: string;
1306
+ raw: string;
1307
+ };
1308
+ messageId?: string;
1309
+ threadId?: string;
1310
+ };
1311
+ declare const _default$7: vue.DefineComponent<__VLS_TypePropsToOption$6<__VLS_Props$6>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
1312
+ click: (...args: any[]) => void;
1313
+ mouseEnter: (...args: any[]) => void;
1314
+ mouseLeave: (...args: any[]) => void;
1315
+ }, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$6<__VLS_Props$6>>>, {}>;
1316
+
1317
+ type __VLS_NonUndefinedable$6<T> = T extends undefined ? never : T;
1318
+ type __VLS_TypePropsToOption$6<T> = {
1319
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
1320
+ type: vue.PropType<__VLS_NonUndefinedable$6<T[K]>>;
1321
+ } : {
1322
+ type: vue.PropType<T[K]>;
1323
+ required: true;
1324
+ };
1325
+ };
1326
+
1327
+ interface NodeChild$3 {
1328
+ type: string;
1329
+ raw: string;
1330
+ [key: string]: unknown;
1331
+ }
1332
+ type __VLS_Props$5 = {
1333
+ node: {
1334
+ type: 'strikethrough';
1335
+ children: NodeChild$3[];
1336
+ raw: string;
1337
+ };
1338
+ customId?: string;
1339
+ indexKey?: string | number;
1340
+ };
1341
+ declare const _default$6: vue.DefineComponent<__VLS_TypePropsToOption$5<__VLS_Props$5>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$5<__VLS_Props$5>>>, {}>;
1342
+
1343
+ type __VLS_NonUndefinedable$5<T> = T extends undefined ? never : T;
1344
+ type __VLS_TypePropsToOption$5<T> = {
1345
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
1346
+ type: vue.PropType<__VLS_NonUndefinedable$5<T[K]>>;
1347
+ } : {
1348
+ type: vue.PropType<T[K]>;
1349
+ required: true;
1350
+ };
1351
+ };
1352
+
1353
+ interface NodeChild$2 {
1354
+ type: string;
1355
+ raw: string;
1356
+ [key: string]: unknown;
1357
+ }
1358
+ type __VLS_Props$4 = {
1359
+ node: {
1360
+ type: 'strong';
1361
+ children: NodeChild$2[];
1362
+ raw: string;
1363
+ };
1364
+ customId?: string;
1365
+ indexKey?: number | string;
1366
+ };
1367
+ declare const _default$5: vue.DefineComponent<__VLS_TypePropsToOption$4<__VLS_Props$4>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$4<__VLS_Props$4>>>, {}>;
1368
+
1369
+ type __VLS_NonUndefinedable$4<T> = T extends undefined ? never : T;
1370
+ type __VLS_TypePropsToOption$4<T> = {
1371
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
1372
+ type: vue.PropType<__VLS_NonUndefinedable$4<T[K]>>;
1373
+ } : {
1374
+ type: vue.PropType<T[K]>;
1375
+ required: true;
1376
+ };
1377
+ };
1378
+
1379
+ interface NodeChild$1 {
1380
+ type: string;
1381
+ raw: string;
1382
+ [key: string]: unknown;
1383
+ }
1384
+ type __VLS_Props$3 = {
1385
+ node: {
1386
+ type: 'subscript';
1387
+ children: NodeChild$1[];
1388
+ raw: string;
1389
+ };
1390
+ customId?: string;
1391
+ indexKey?: number | string;
1392
+ };
1393
+ declare const _default$4: vue.DefineComponent<__VLS_TypePropsToOption$3<__VLS_Props$3>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$3<__VLS_Props$3>>>, {}>;
1394
+
1395
+ type __VLS_NonUndefinedable$3<T> = T extends undefined ? never : T;
1396
+ type __VLS_TypePropsToOption$3<T> = {
1397
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
1398
+ type: vue.PropType<__VLS_NonUndefinedable$3<T[K]>>;
1399
+ } : {
1400
+ type: vue.PropType<T[K]>;
1401
+ required: true;
1402
+ };
1403
+ };
1404
+
1405
+ interface NodeChild {
1406
+ type: string;
1407
+ raw: string;
1408
+ [key: string]: unknown;
1409
+ }
1410
+ type __VLS_Props$2 = {
1411
+ node: {
1412
+ type: 'superscript';
1413
+ children: NodeChild[];
1414
+ raw: string;
1415
+ };
1416
+ customId?: string;
1417
+ indexKey?: number | string;
1418
+ };
1419
+ declare const _default$3: vue.DefineComponent<__VLS_TypePropsToOption$2<__VLS_Props$2>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$2<__VLS_Props$2>>>, {}>;
1420
+
1421
+ type __VLS_NonUndefinedable$2<T> = T extends undefined ? never : T;
1422
+ type __VLS_TypePropsToOption$2<T> = {
1423
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
1424
+ type: vue.PropType<__VLS_NonUndefinedable$2<T[K]>>;
1425
+ } : {
1426
+ type: vue.PropType<T[K]>;
1427
+ required: true;
1428
+ };
1429
+ };
1430
+
1431
+ interface TableCellNode {
1432
+ type: 'table_cell';
1433
+ header: boolean;
1434
+ children: {
1435
+ type: string;
1436
+ raw: string;
1437
+ }[];
1438
+ raw: string;
1439
+ align?: 'left' | 'right' | 'center';
1440
+ }
1441
+ interface TableRowNode {
1442
+ type: 'table_row';
1443
+ cells: TableCellNode[];
1444
+ raw: string;
1445
+ }
1446
+ interface TableNode {
1447
+ type: 'table';
1448
+ header: TableRowNode;
1449
+ rows: TableRowNode[];
1450
+ raw: string;
1451
+ loading: boolean;
1452
+ }
1453
+ type __VLS_Props$1 = {
1454
+ node: TableNode;
1455
+ indexKey: string | number;
1456
+ isDark?: boolean;
1457
+ typewriter?: boolean;
1458
+ customId?: string;
1459
+ };
1460
+ declare function __VLS_template(): {
1461
+ attrs: Partial<{}>;
1462
+ slots: {
1463
+ loading?(_: {
1464
+ isLoading: true;
1465
+ }): any;
1466
+ };
1467
+ refs: {};
1468
+ rootEl: HTMLDivElement;
1469
+ };
1470
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
1471
+ declare const __VLS_component: vue.DefineComponent<__VLS_TypePropsToOption$1<__VLS_Props$1>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
1472
+ copy: (...args: any[]) => void;
1473
+ }, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$1<__VLS_Props$1>>>, {}>;
1474
+ declare const _default$2: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1475
+
1476
+ type __VLS_NonUndefinedable$1<T> = T extends undefined ? never : T;
1477
+ type __VLS_TypePropsToOption$1<T> = {
1478
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
1479
+ type: vue.PropType<__VLS_NonUndefinedable$1<T[K]>>;
1480
+ } : {
1481
+ type: vue.PropType<T[K]>;
1482
+ required: true;
1483
+ };
1484
+ };
1485
+ type __VLS_WithTemplateSlots<T, S> = T & {
1486
+ new (): {
1487
+ $scopedSlots: S;
1488
+ };
1489
+ };
1490
+
1491
+ type __VLS_Props = {
1492
+ node: {
1493
+ type: 'text';
1494
+ content: string;
1495
+ raw: string;
1496
+ center?: boolean;
1497
+ };
1498
+ };
1499
+ declare const _default$1: vue.DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
1500
+ copy: (...args: any[]) => void;
1501
+ }, string, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
1502
+
1503
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
1504
+ type __VLS_TypePropsToOption<T> = {
1505
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
1506
+ type: vue.PropType<__VLS_NonUndefinedable<T[K]>>;
1507
+ } : {
1508
+ type: vue.PropType<T[K]>;
1509
+ required: true;
1510
+ };
1511
+ };
1512
+
1513
+ declare const _default: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1514
+
1515
+ declare const defaultMap: Record<string, string>;
1516
+ /**
1517
+ * Replace the entire default translation map.
1518
+ * Consumers can call this to provide their own fallback translations (e.g. Chinese).
1519
+ */
1520
+ declare function setDefaultI18nMap(map: Record<keyof typeof defaultMap, string>): void;
1521
+
1522
+ interface CustomComponents {
1523
+ text: any;
1524
+ paragraph: any;
1525
+ heading: any;
1526
+ code_block: any;
1527
+ list: any;
1528
+ blockquote: any;
1529
+ table: any;
1530
+ definition_list: any;
1531
+ footnote: any;
1532
+ footnote_reference: any;
1533
+ admonition: any;
1534
+ hardbreak: any;
1535
+ link: any;
1536
+ image: any;
1537
+ thematic_break: any;
1538
+ math_inline: any;
1539
+ math_block: any;
1540
+ strong: any;
1541
+ emphasis: any;
1542
+ strikethrough: any;
1543
+ highlight: any;
1544
+ insert: any;
1545
+ subscript: any;
1546
+ superscript: any;
1547
+ emoji: any;
1548
+ checkbox: any;
1549
+ inline_code: any;
1550
+ html_inline: any;
1551
+ reference: any;
1552
+ mermaid: any;
1553
+ [key: string]: any;
1554
+ }
1555
+
1556
+ declare function setCustomComponents(id: string, mapping: Partial<CustomComponents>): void;
1557
+ declare function setCustomComponents(mapping: Partial<CustomComponents>): void;
1558
+ /**
1559
+ * Retrieve custom components for a given scope id.
1560
+ * If no id is provided, returns the legacy/global mapping (if any).
1561
+ */
1562
+ declare function getCustomNodeComponents(customId?: string): Partial<CustomComponents>;
1563
+ /**
1564
+ * Remove a scoped custom components mapping.
1565
+ * Use this to clean up mappings for dynamic or temporary renderers.
1566
+ */
1567
+ declare function removeCustomComponents(id: string): void;
1568
+ /**
1569
+ * Clear the legacy/global custom components mapping.
1570
+ * Use this when you want to remove the single-argument mapping set by
1571
+ * `setCustomComponents(mapping)`.
1572
+ */
1573
+ declare function clearGlobalCustomComponents(): void;
1574
+
1575
+ declare function getUseMonaco(): Promise<any>;
1576
+
1577
+ type KaTeXCDNWorkerMode = 'classic' | 'module';
1578
+ interface KaTeXCDNWorkerOptions {
1579
+ /**
1580
+ * Where to load KaTeX from inside the worker.
1581
+ * - classic mode: UMD build (used via importScripts)
1582
+ * - module mode: ESM build (used via dynamic import(url))
1583
+ */
1584
+ katexUrl: string;
1585
+ /**
1586
+ * Optional mhchem plugin URL to load in the worker (recommended).
1587
+ * - classic mode: UMD build (importScripts)
1588
+ * - module mode: ESM build (dynamic import(url))
1589
+ */
1590
+ mhchemUrl?: string;
1591
+ /**
1592
+ * - classic: widest compatibility, uses importScripts()
1593
+ * - module: requires { type: 'module' } workers, uses import(url)
1594
+ */
1595
+ mode?: KaTeXCDNWorkerMode;
1596
+ /**
1597
+ * If set, worker prints verbose logs.
1598
+ */
1599
+ debug?: boolean;
1600
+ /**
1601
+ * Worker constructor options (name/type/credentials).
1602
+ * Note: for module mode you should pass { type: 'module' }.
1603
+ */
1604
+ workerOptions?: WorkerOptions;
1605
+ /**
1606
+ * KaTeX render options used in the worker.
1607
+ * Keep this minimal and stable for caching and predictable output.
1608
+ */
1609
+ renderOptions?: {
1610
+ throwOnError?: boolean;
1611
+ output?: string;
1612
+ strict?: string;
1613
+ };
1614
+ }
1615
+ interface KaTeXCDNWorkerHandle {
1616
+ worker: Worker | null;
1617
+ /**
1618
+ * Revoke the generated Blob URL. Call this when you no longer need the worker.
1619
+ * This does not terminate the worker automatically.
1620
+ */
1621
+ dispose: () => void;
1622
+ /**
1623
+ * The generated worker source code (useful for debugging/tests).
1624
+ */
1625
+ source: string;
1626
+ }
1627
+ declare function buildKaTeXCDNWorkerSource(options: KaTeXCDNWorkerOptions): string;
1628
+ declare function createKaTeXWorkerFromCDN(options: KaTeXCDNWorkerOptions): KaTeXCDNWorkerHandle;
1629
+
1630
+ /**
1631
+ * Allow user to inject a Worker instance, e.g. from Vite ?worker import.
1632
+ */
1633
+ declare function setKaTeXWorker(w: Worker): void;
1634
+ /**
1635
+ * Remove the current worker instance (for cleanup or SSR).
1636
+ */
1637
+ declare function clearKaTeXWorker(): void;
1638
+ declare function setKaTeXWorkerDebug(enabled: boolean): void;
1639
+ declare function renderKaTeXInWorker(content: string, displayMode?: boolean, timeout?: number, signal?: AbortSignal): Promise<string>;
1640
+ declare function setKaTeXCache(content: string, displayMode: boolean, html: string): void;
1641
+ /**
1642
+ * Utilities for clients to inspect/adjust worker load behavior
1643
+ */
1644
+ declare function getKaTeXWorkerLoad(): {
1645
+ inFlight: number;
1646
+ max: number;
1647
+ };
1648
+ declare function setKaTeXWorkerMaxConcurrency(n: number): void;
1649
+ declare const WORKER_BUSY_CODE = "WORKER_BUSY";
1650
+ declare function isKaTeXWorkerBusy(): boolean;
1651
+ declare function waitForKaTeXWorkerSlot(timeout?: number, signal?: AbortSignal): Promise<void>;
1652
+ interface BackpressureOptions {
1653
+ timeout?: number;
1654
+ waitTimeout?: number;
1655
+ backoffMs?: number;
1656
+ maxRetries?: number;
1657
+ signal?: AbortSignal;
1658
+ }
1659
+ declare const defaultBackpressure: {
1660
+ timeout: number;
1661
+ waitTimeout: number;
1662
+ backoffMs: number;
1663
+ maxRetries: number;
1664
+ };
1665
+ declare function setKaTeXBackpressureDefaults(opts: Partial<typeof defaultBackpressure>): void;
1666
+ declare function getKaTeXBackpressureDefaults(): {
1667
+ timeout: number;
1668
+ waitTimeout: number;
1669
+ backoffMs: number;
1670
+ maxRetries: number;
1671
+ };
1672
+ /**
1673
+ * Convenience wrapper: when worker reports busy, wait for a slot and retry.
1674
+ * Does not implement fallback-to-main-thread; leave that to the caller.
1675
+ */
1676
+ declare function renderKaTeXWithBackpressure(content: string, displayMode?: boolean, opts?: BackpressureOptions): Promise<string>;
1677
+
1678
+ type MermaidCDNWorkerMode = 'classic' | 'module';
1679
+ interface MermaidCDNWorkerOptions {
1680
+ /**
1681
+ * Where to load mermaid from inside the worker.
1682
+ * - classic mode: non-module build (used via importScripts)
1683
+ * - module mode: ESM build (used via dynamic import(url))
1684
+ */
1685
+ mermaidUrl: string;
1686
+ /**
1687
+ * - classic: widest compatibility, uses importScripts()
1688
+ * - module: requires { type: 'module' } workers, uses import(url)
1689
+ */
1690
+ mode?: MermaidCDNWorkerMode;
1691
+ /**
1692
+ * If set, worker prints verbose logs.
1693
+ */
1694
+ debug?: boolean;
1695
+ /**
1696
+ * Worker constructor options (name/type/credentials).
1697
+ * Note: for module mode you should pass { type: 'module' }.
1698
+ */
1699
+ workerOptions?: WorkerOptions;
1700
+ /**
1701
+ * Mermaid initialize options used in the worker.
1702
+ * This worker is used for parsing only; keep options minimal.
1703
+ */
1704
+ initializeOptions?: Record<string, any>;
1705
+ }
1706
+ interface MermaidCDNWorkerHandle {
1707
+ worker: Worker | null;
1708
+ dispose: () => void;
1709
+ source: string;
1710
+ }
1711
+ declare function buildMermaidCDNWorkerSource(options: MermaidCDNWorkerOptions): string;
1712
+ declare function createMermaidWorkerFromCDN(options: MermaidCDNWorkerOptions): MermaidCDNWorkerHandle;
1713
+
1714
+ type Theme = 'light' | 'dark';
1715
+ declare function setMermaidWorkerClientDebug(enabled: boolean): void;
1716
+ declare function setMermaidWorkerMaxConcurrency(n: number): void;
1717
+ declare function getMermaidWorkerLoad(): {
1718
+ inFlight: number;
1719
+ max: number;
1720
+ };
1721
+ declare const MERMAID_WORKER_BUSY_CODE = "WORKER_BUSY";
1722
+ declare const MERMAID_DISABLED_CODE = "MERMAID_DISABLED";
1723
+ /**
1724
+ * Allow user to inject a Worker instance, e.g. from Vite ?worker import.
1725
+ */
1726
+ declare function setMermaidWorker(w: Worker): void;
1727
+ /**
1728
+ * Remove the current worker instance (for cleanup or SSR).
1729
+ */
1730
+ declare function clearMermaidWorker(): void;
1731
+ declare function canParseOffthread(code: string, theme: Theme, timeout?: number): Promise<boolean>;
1732
+ declare function findPrefixOffthread(code: string, theme: Theme, timeout?: number): Promise<string>;
1733
+ declare function terminateWorker(): void;
1734
+
1735
+ declare const VueRendererMarkdown: {
1736
+ install(Vue: any, options?: {
1737
+ getLanguageIcon?: LanguageIconResolver;
1738
+ mathOptions?: any;
1739
+ }): void;
1740
+ };
1741
+
1742
+ export { _default$x as AdmonitionNode, BackpressureOptions, _default$w as BlockquoteNode, _default$v as CheckboxNode, _default$u as CodeBlockNode, _default$t as DefinitionListNode, _default$s as EmojiNode, _default$r as FootnoteAnchorNode, _default$q as FootnoteNode, _default$p as FootnoteReferenceNode, _default$o as HardBreakNode, _default$n as HeadingNode, _default$m as HighlightNode, _default$l as HtmlInlineNode, _default$k as ImageNode, _default$j as InlineCodeNode, _default$i as InsertNode, KaTeXCDNWorkerHandle, KaTeXCDNWorkerMode, KaTeXCDNWorkerOptions, KatexLoader, LanguageIconResolver, _default$h as LinkNode, _default$g as ListItemNode, _default$f as ListNode, MERMAID_DISABLED_CODE, MERMAID_WORKER_BUSY_CODE, _default$e as MarkdownCodeBlockNode, _default$a as MarkdownRender, _default$d as MathBlockNode, _default$c as MathInlineNode, _default$b as MermaidBlockNode, MermaidCDNWorkerHandle, MermaidCDNWorkerMode, MermaidCDNWorkerOptions, MermaidLoader, _default$9 as ParagraphNode, _default$8 as PreCodeNode, _default$7 as ReferenceNode, _default$6 as StrikethroughNode, _default$5 as StrongNode, _default$4 as SubscriptNode, _default$3 as SuperscriptNode, _default$2 as TableNode, _default$1 as TextNode, _default as ThematicBreakNode, VueRendererMarkdown, WORKER_BUSY_CODE, buildKaTeXCDNWorkerSource, buildMermaidCDNWorkerSource, canParseOffthread, clearGlobalCustomComponents, clearKaTeXWorker, clearMermaidWorker, createKaTeXWorkerFromCDN, createMermaidWorkerFromCDN, _default$a as default, disableKatex, disableMermaid, enableKatex, enableMermaid, findPrefixOffthread, getCustomNodeComponents, getKaTeXBackpressureDefaults, getKaTeXWorkerLoad, getLanguageIcon, getMermaidWorkerLoad, getUseMonaco, isKaTeXWorkerBusy, isKatexEnabled, isMermaidEnabled, languageMap, normalizeLanguageIdentifier, removeCustomComponents, renderKaTeXInWorker, renderKaTeXWithBackpressure, resolveMonacoLanguageId, setCustomComponents, setDefaultI18nMap, setKaTeXBackpressureDefaults, setKaTeXCache, setKaTeXWorker, setKaTeXWorkerDebug, setKaTeXWorkerMaxConcurrency, setKatexLoader, setLanguageIconResolver, setMermaidLoader, setMermaidWorker, setMermaidWorkerClientDebug, setMermaidWorkerMaxConcurrency, terminateWorker, waitForKaTeXWorkerSlot };