@vunk/plus 1.3.0 → 1.3.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.
Files changed (104) hide show
  1. package/components/SendOutlined.mjs +1 -1
  2. package/components/agent-chat-provider/index.d.ts +7 -0
  3. package/components/agent-chat-provider/src/api.d.ts +3 -0
  4. package/components/agent-chat-provider/src/const-roles.d.ts +8 -0
  5. package/components/agent-chat-provider/src/const.d.ts +1 -0
  6. package/components/agent-chat-provider/src/index.vue.d.ts +47 -0
  7. package/components/agent-chat-provider/src/types.d.ts +37 -0
  8. package/components/agent-chat-provider/src/use.d.ts +29 -0
  9. package/components/avatar/index.d.ts +4 -0
  10. package/components/avatar/src/ctx.d.ts +18 -0
  11. package/components/avatar/src/index.vue.d.ts +121 -0
  12. package/components/avatar/src/types.d.ts +1 -0
  13. package/components/broadcasting-markdown/index.d.ts +5 -0
  14. package/components/broadcasting-markdown/src/const.d.ts +18 -0
  15. package/components/broadcasting-markdown/src/ctx.d.ts +93 -0
  16. package/components/broadcasting-markdown/src/custom-speech.vue.d.ts +109 -0
  17. package/components/broadcasting-markdown/src/index.vue.d.ts +477 -0
  18. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +78 -0
  19. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +60 -0
  20. package/components/broadcasting-markdown/src/types.d.ts +17 -0
  21. package/components/broadcasting-markdown/src/use.d.ts +3 -0
  22. package/components/broadcasting-markdown/src/web-speech.vue.d.ts +102 -0
  23. package/components/bubble-list/index.d.ts +5 -0
  24. package/components/bubble-list/index.mjs +1 -1
  25. package/components/bubble-list/src/ctx.d.ts +30 -0
  26. package/components/bubble-list/src/index.vue.d.ts +927 -0
  27. package/components/bubble-list/src/types.d.ts +4 -0
  28. package/components/bubble-templates/index.d.ts +4 -0
  29. package/components/bubble-templates/index.mjs +1 -1
  30. package/components/bubble-templates/src/index.vue.d.ts +631 -0
  31. package/components/bubble-templates/src/types.d.ts +30 -0
  32. package/components/chat-independent/index.d.ts +4 -0
  33. package/components/chat-independent/src/const.d.ts +13 -0
  34. package/components/chat-independent/src/ctx.d.ts +20 -0
  35. package/components/chat-independent/src/index.vue.d.ts +2388 -0
  36. package/components/chat-independent/src/types.d.ts +13 -0
  37. package/components/index.d.ts +0 -0
  38. package/components/index.mjs +0 -35979
  39. package/components/index2.mjs +35980 -0
  40. package/components/lottie-animation/index.d.ts +4 -0
  41. package/components/lottie-animation/src/ctx.d.ts +10 -0
  42. package/components/lottie-animation/src/index.vue.d.ts +21 -0
  43. package/components/lottie-animation/src/types.d.ts +4 -0
  44. package/components/monaco-editor/index.d.ts +5 -0
  45. package/components/monaco-editor/src/ctx.d.ts +23 -0
  46. package/components/monaco-editor/src/index.vue.d.ts +40 -0
  47. package/components/monaco-editor/src/types.d.ts +1 -0
  48. package/components/monaco-environment/index.d.ts +4 -0
  49. package/components/monaco-environment/src/ctx.d.ts +8 -0
  50. package/components/monaco-environment/src/index.vue.d.ts +2 -0
  51. package/components/monaco-environment/src/types.d.ts +1 -0
  52. package/components/recorder-button/index.d.ts +4 -0
  53. package/components/recorder-button/src/ctx.d.ts +40 -0
  54. package/components/recorder-button/src/index.vue.d.ts +303 -0
  55. package/components/recorder-button/src/speech-to-text.d.ts +1 -0
  56. package/components/recorder-button/src/types.d.ts +7 -0
  57. package/components/routes-menu-content/index.d.ts +4 -0
  58. package/components/routes-menu-content/src/ctx.d.ts +17 -0
  59. package/components/routes-menu-content/src/index.vue.d.ts +472 -0
  60. package/components/routes-menu-content/src/item/core/ctx.d.ts +18 -0
  61. package/components/routes-menu-content/src/item/core/index.vue.d.ts +307 -0
  62. package/components/routes-menu-content/src/item/ctx.d.ts +14 -0
  63. package/components/routes-menu-content/src/item/index.vue.d.ts +438 -0
  64. package/components/routes-menu-content/src/types.d.ts +1 -0
  65. package/components/sender/index.d.ts +4 -0
  66. package/components/sender/index.mjs +1 -1
  67. package/components/sender/src/SenderHeader.vue.d.ts +256 -0
  68. package/components/sender/src/ctx.d.ts +58 -0
  69. package/components/sender/src/index.vue.d.ts +778 -0
  70. package/components/sender/src/types.d.ts +1 -0
  71. package/components/speech-button/index.d.ts +4 -0
  72. package/components/speech-button/index.mjs +1 -1
  73. package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -0
  74. package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -0
  75. package/components/speech-button/src/ctx.d.ts +10 -0
  76. package/components/speech-button/src/index.vue.d.ts +22 -0
  77. package/components/speech-button/src/types.d.ts +1 -0
  78. package/components/table-columns/index.d.ts +5 -0
  79. package/components/table-columns/src/ctx.d.ts +66 -0
  80. package/components/table-columns/src/el-ctx.d.ts +63 -0
  81. package/components/table-columns/src/index.vue.d.ts +282 -0
  82. package/components/table-columns/src/types.d.ts +21 -0
  83. package/components/tables-v1/index.d.ts +5 -0
  84. package/components/tables-v1/src/ctx.d.ts +281 -0
  85. package/components/tables-v1/src/el-ctx.d.ts +269 -0
  86. package/components/tables-v1/src/index.vue.d.ts +3014 -0
  87. package/components/tables-v1/src/types.d.ts +4 -0
  88. package/components/tables-v1-checkbox/index.d.ts +5 -0
  89. package/components/tables-v1-checkbox/src/ctx.d.ts +321 -0
  90. package/components/tables-v1-checkbox/src/index.vue.d.ts +3796 -0
  91. package/components/tables-v1-checkbox/src/types.d.ts +1 -0
  92. package/components/typing-markdown/index.d.ts +4 -0
  93. package/components/typing-markdown/src/core.d.ts +2 -0
  94. package/components/typing-markdown/src/ctx.d.ts +33 -0
  95. package/components/typing-markdown/src/index.vue.d.ts +57 -0
  96. package/components/typing-markdown/src/types.d.ts +1 -0
  97. package/components/vditor/index.d.ts +5 -0
  98. package/components/vditor/src/ctx.d.ts +37 -0
  99. package/components/vditor/src/handle-fullscreen.vue.d.ts +18 -0
  100. package/components/vditor/src/handle-value.vue.d.ts +18 -0
  101. package/components/vditor/src/index.vue.d.ts +144 -0
  102. package/components/vditor/src/types.d.ts +9 -0
  103. package/components/vditor/src/use.d.ts +4 -0
  104. package/package.json +1 -1
@@ -0,0 +1,477 @@
1
+ import type { SetDataEvent } from '@vunk/core';
2
+ import type { Ref } from 'vue';
3
+ import type { Paragraph } from './types';
4
+ import { ParagraphStatus } from './const';
5
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ data: {
7
+ type: {
8
+ (arrayLength: number): Paragraph[];
9
+ (...items: Paragraph[]): Paragraph[];
10
+ new (arrayLength: number): Paragraph[];
11
+ new (...items: Paragraph[]): Paragraph[];
12
+ isArray(arg: any): arg is any[];
13
+ readonly prototype: any[];
14
+ from<T>(arrayLike: ArrayLike<T>): T[];
15
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
16
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
17
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
18
+ of<T_4>(...items: T_4[]): T_4[];
19
+ readonly [Symbol.species]: ArrayConstructor;
20
+ };
21
+ default: undefined;
22
+ };
23
+ source: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ delay: {
28
+ type: NumberConstructor;
29
+ default: number;
30
+ };
31
+ separators: {
32
+ type: {
33
+ (arrayLength: number): string[];
34
+ (...items: string[]): string[];
35
+ new (arrayLength: number): string[];
36
+ new (...items: string[]): string[];
37
+ isArray(arg: any): arg is any[];
38
+ readonly prototype: any[];
39
+ from<T>(arrayLike: ArrayLike<T>): T[];
40
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
41
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
42
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
43
+ of<T_4>(...items: T_4[]): T_4[];
44
+ readonly [Symbol.species]: ArrayConstructor;
45
+ };
46
+ default: () => string[];
47
+ };
48
+ pause: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ keepRead: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ webSpeech: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ textToSpeech: {
61
+ type: import("vue").PropType<import("./types").TextToSpeech>;
62
+ default: undefined;
63
+ };
64
+ }>, {
65
+ theData: import("vue").ComputedRef<Paragraph[]>;
66
+ ParagraphStatus: typeof ParagraphStatus;
67
+ fulfilledTextValue: import("vue").ComputedRef<string>;
68
+ isPrevParagraphFulfilled: (currentIndex: number) => boolean;
69
+ isParagraphEnabled: (currentIndex: number) => boolean;
70
+ processingParagraph: (paragraph: Paragraph) => Promise<void> | undefined;
71
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
72
+ setData: (e: SetDataEvent) => SetDataEvent;
73
+ 'update:broadcasting': (_: boolean) => boolean;
74
+ 'update:completed': (_: boolean) => boolean;
75
+ 'update:error': (_: boolean) => boolean;
76
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
77
+ data: {
78
+ type: {
79
+ (arrayLength: number): Paragraph[];
80
+ (...items: Paragraph[]): Paragraph[];
81
+ new (arrayLength: number): Paragraph[];
82
+ new (...items: Paragraph[]): Paragraph[];
83
+ isArray(arg: any): arg is any[];
84
+ readonly prototype: any[];
85
+ from<T>(arrayLike: ArrayLike<T>): T[];
86
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
87
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
88
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
89
+ of<T_4>(...items: T_4[]): T_4[];
90
+ readonly [Symbol.species]: ArrayConstructor;
91
+ };
92
+ default: undefined;
93
+ };
94
+ source: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ delay: {
99
+ type: NumberConstructor;
100
+ default: number;
101
+ };
102
+ separators: {
103
+ type: {
104
+ (arrayLength: number): string[];
105
+ (...items: string[]): string[];
106
+ new (arrayLength: number): string[];
107
+ new (...items: string[]): string[];
108
+ isArray(arg: any): arg is any[];
109
+ readonly prototype: any[];
110
+ from<T>(arrayLike: ArrayLike<T>): T[];
111
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
112
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
113
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
114
+ of<T_4>(...items: T_4[]): T_4[];
115
+ readonly [Symbol.species]: ArrayConstructor;
116
+ };
117
+ default: () => string[];
118
+ };
119
+ pause: {
120
+ type: BooleanConstructor;
121
+ default: boolean;
122
+ };
123
+ keepRead: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
127
+ webSpeech: {
128
+ type: BooleanConstructor;
129
+ default: boolean;
130
+ };
131
+ textToSpeech: {
132
+ type: import("vue").PropType<import("./types").TextToSpeech>;
133
+ default: undefined;
134
+ };
135
+ }>> & Readonly<{
136
+ onSetData?: ((e: SetDataEvent) => any) | undefined;
137
+ "onUpdate:broadcasting"?: ((_: boolean) => any) | undefined;
138
+ "onUpdate:completed"?: ((_: boolean) => any) | undefined;
139
+ "onUpdate:error"?: ((_: boolean) => any) | undefined;
140
+ }>, {
141
+ source: string;
142
+ delay: number;
143
+ pause: boolean;
144
+ data: Paragraph[];
145
+ separators: string[];
146
+ keepRead: boolean;
147
+ webSpeech: boolean;
148
+ textToSpeech: import("./types").TextToSpeech;
149
+ }, {}, {
150
+ ParagraphView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
151
+ enable: {
152
+ type: BooleanConstructor;
153
+ default: boolean;
154
+ };
155
+ status: {
156
+ type: import("vue").PropType<ParagraphStatus>;
157
+ default: ParagraphStatus;
158
+ };
159
+ pause: {
160
+ type: BooleanConstructor;
161
+ default: boolean;
162
+ };
163
+ processing: {
164
+ type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
165
+ default: import("@vunk/shared").AnyFunc;
166
+ };
167
+ }>, {
168
+ props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
169
+ enable: {
170
+ type: BooleanConstructor;
171
+ default: boolean;
172
+ };
173
+ status: {
174
+ type: import("vue").PropType<ParagraphStatus>;
175
+ default: ParagraphStatus;
176
+ };
177
+ pause: {
178
+ type: BooleanConstructor;
179
+ default: boolean;
180
+ };
181
+ processing: {
182
+ type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
183
+ default: import("@vunk/shared").AnyFunc;
184
+ };
185
+ }>> & Readonly<{
186
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
187
+ }> & {}>;
188
+ emit: (event: "update:status", ...args: any[]) => void;
189
+ theDef: import("vue").ShallowRef<import("@vunk/shared/promise").Deferred<any> | undefined, import("@vunk/shared/promise").Deferred<any> | undefined>;
190
+ processingDef: {
191
+ _ref: import("vue").ShallowRef<unknown, unknown>;
192
+ readonly value: unknown;
193
+ promise: Promise<unknown>;
194
+ resolve: import("@vunk/core").AnyFunc;
195
+ reject: (reason?: any) => void;
196
+ };
197
+ init: () => Promise<void>;
198
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:status"[], "update:status", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
199
+ enable: {
200
+ type: BooleanConstructor;
201
+ default: boolean;
202
+ };
203
+ status: {
204
+ type: import("vue").PropType<ParagraphStatus>;
205
+ default: ParagraphStatus;
206
+ };
207
+ pause: {
208
+ type: BooleanConstructor;
209
+ default: boolean;
210
+ };
211
+ processing: {
212
+ type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
213
+ default: import("@vunk/shared").AnyFunc;
214
+ };
215
+ }>> & Readonly<{
216
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
217
+ }>, {
218
+ processing: import("@vunk/shared").AnyFunc;
219
+ pause: boolean;
220
+ enable: boolean;
221
+ status: ParagraphStatus;
222
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
223
+ VkTypingMarkdown: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
224
+ source: {
225
+ type: StringConstructor;
226
+ default: string;
227
+ };
228
+ delay: {
229
+ type: NumberConstructor;
230
+ default: number;
231
+ };
232
+ pause: {
233
+ type: BooleanConstructor;
234
+ default: boolean;
235
+ };
236
+ disabled: {
237
+ type: BooleanConstructor;
238
+ default: boolean;
239
+ };
240
+ markdownItSetup: {
241
+ type: import("vue").PropType<(md: import("markdown-it-async").MarkdownItAsync) => void>;
242
+ default: null;
243
+ };
244
+ }>, {
245
+ htmlText: Ref<string, string>;
246
+ isDebouncedTyping: Readonly<Ref<boolean, boolean>>;
247
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
248
+ typing: null;
249
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
250
+ source: {
251
+ type: StringConstructor;
252
+ default: string;
253
+ };
254
+ delay: {
255
+ type: NumberConstructor;
256
+ default: number;
257
+ };
258
+ pause: {
259
+ type: BooleanConstructor;
260
+ default: boolean;
261
+ };
262
+ disabled: {
263
+ type: BooleanConstructor;
264
+ default: boolean;
265
+ };
266
+ markdownItSetup: {
267
+ type: import("vue").PropType<(md: import("markdown-it-async").MarkdownItAsync) => void>;
268
+ default: null;
269
+ };
270
+ }>> & Readonly<{
271
+ onTyping?: ((...args: any[]) => any) | undefined;
272
+ }>, {
273
+ source: string;
274
+ delay: number;
275
+ pause: boolean;
276
+ disabled: boolean;
277
+ markdownItSetup: (md: import("markdown-it-async").MarkdownItAsync) => void;
278
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
279
+ WebSpeechView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
280
+ voice: {
281
+ type: import("vue").PropType<SpeechSynthesisVoice>;
282
+ required: false;
283
+ };
284
+ data: {
285
+ type: import("vue").PropType<Paragraph>;
286
+ default: () => {};
287
+ };
288
+ deferred: {
289
+ type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
290
+ required: true;
291
+ };
292
+ pause: {
293
+ type: BooleanConstructor;
294
+ default: boolean;
295
+ };
296
+ }>, (() => null) | (() => false | JSX.Element), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
297
+ voice: {
298
+ type: import("vue").PropType<SpeechSynthesisVoice>;
299
+ required: false;
300
+ };
301
+ data: {
302
+ type: import("vue").PropType<Paragraph>;
303
+ default: () => {};
304
+ };
305
+ deferred: {
306
+ type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
307
+ required: true;
308
+ };
309
+ pause: {
310
+ type: BooleanConstructor;
311
+ default: boolean;
312
+ };
313
+ }>> & Readonly<{}>, {
314
+ pause: boolean;
315
+ data: Paragraph;
316
+ }, {}, {
317
+ SpeechError: import("vue").DefineComponent<{}, {
318
+ readonly CloseBold: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
319
+ readonly ElIcon: import("element-plus/es/utils").SFCWithInstall<{
320
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
321
+ readonly size: {
322
+ readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
323
+ readonly required: false;
324
+ readonly validator: ((val: unknown) => boolean) | undefined;
325
+ __epPropKey: true;
326
+ };
327
+ readonly color: {
328
+ readonly type: import("vue").PropType<string>;
329
+ readonly required: false;
330
+ readonly validator: ((val: unknown) => boolean) | undefined;
331
+ __epPropKey: true;
332
+ };
333
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
334
+ P: {};
335
+ B: {};
336
+ D: {};
337
+ C: {};
338
+ M: {};
339
+ Defaults: {};
340
+ }, Readonly<import("vue").ExtractPropTypes<{
341
+ readonly size: {
342
+ readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
343
+ readonly required: false;
344
+ readonly validator: ((val: unknown) => boolean) | undefined;
345
+ __epPropKey: true;
346
+ };
347
+ readonly color: {
348
+ readonly type: import("vue").PropType<string>;
349
+ readonly required: false;
350
+ readonly validator: ((val: unknown) => boolean) | undefined;
351
+ __epPropKey: true;
352
+ };
353
+ }>>, {}, {}, {}, {}, {}>;
354
+ __isFragment?: undefined;
355
+ __isTeleport?: undefined;
356
+ __isSuspense?: undefined;
357
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
358
+ readonly size: {
359
+ readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
360
+ readonly required: false;
361
+ readonly validator: ((val: unknown) => boolean) | undefined;
362
+ __epPropKey: true;
363
+ };
364
+ readonly color: {
365
+ readonly type: import("vue").PropType<string>;
366
+ readonly required: false;
367
+ readonly validator: ((val: unknown) => boolean) | undefined;
368
+ __epPropKey: true;
369
+ };
370
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
371
+ $slots: {
372
+ default?(_: {}): any;
373
+ };
374
+ })>;
375
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
376
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
377
+ CustomSpeechView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
378
+ data: {
379
+ type: import("vue").PropType<Paragraph>;
380
+ default: () => {};
381
+ };
382
+ deferred: {
383
+ type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
384
+ required: true;
385
+ };
386
+ pause: {
387
+ type: BooleanConstructor;
388
+ default: boolean;
389
+ };
390
+ url: {
391
+ type: StringConstructor;
392
+ default: string;
393
+ };
394
+ }>, (() => null) | (() => JSX.Element), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
395
+ data: {
396
+ type: import("vue").PropType<Paragraph>;
397
+ default: () => {};
398
+ };
399
+ deferred: {
400
+ type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
401
+ required: true;
402
+ };
403
+ pause: {
404
+ type: BooleanConstructor;
405
+ default: boolean;
406
+ };
407
+ url: {
408
+ type: StringConstructor;
409
+ default: string;
410
+ };
411
+ }>> & Readonly<{}>, {
412
+ pause: boolean;
413
+ data: Paragraph;
414
+ url: string;
415
+ }, {}, {
416
+ SpeechError: import("vue").DefineComponent<{}, {
417
+ readonly CloseBold: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
418
+ readonly ElIcon: import("element-plus/es/utils").SFCWithInstall<{
419
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
420
+ readonly size: {
421
+ readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
422
+ readonly required: false;
423
+ readonly validator: ((val: unknown) => boolean) | undefined;
424
+ __epPropKey: true;
425
+ };
426
+ readonly color: {
427
+ readonly type: import("vue").PropType<string>;
428
+ readonly required: false;
429
+ readonly validator: ((val: unknown) => boolean) | undefined;
430
+ __epPropKey: true;
431
+ };
432
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
433
+ P: {};
434
+ B: {};
435
+ D: {};
436
+ C: {};
437
+ M: {};
438
+ Defaults: {};
439
+ }, Readonly<import("vue").ExtractPropTypes<{
440
+ readonly size: {
441
+ readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
442
+ readonly required: false;
443
+ readonly validator: ((val: unknown) => boolean) | undefined;
444
+ __epPropKey: true;
445
+ };
446
+ readonly color: {
447
+ readonly type: import("vue").PropType<string>;
448
+ readonly required: false;
449
+ readonly validator: ((val: unknown) => boolean) | undefined;
450
+ __epPropKey: true;
451
+ };
452
+ }>>, {}, {}, {}, {}, {}>;
453
+ __isFragment?: undefined;
454
+ __isTeleport?: undefined;
455
+ __isSuspense?: undefined;
456
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
457
+ readonly size: {
458
+ readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
459
+ readonly required: false;
460
+ readonly validator: ((val: unknown) => boolean) | undefined;
461
+ __epPropKey: true;
462
+ };
463
+ readonly color: {
464
+ readonly type: import("vue").PropType<string>;
465
+ readonly required: false;
466
+ readonly validator: ((val: unknown) => boolean) | undefined;
467
+ __epPropKey: true;
468
+ };
469
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
470
+ $slots: {
471
+ default?(_: {}): any;
472
+ };
473
+ })>;
474
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
475
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
476
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
477
+ export default _default;
@@ -0,0 +1,78 @@
1
+ import type { AnyFunc } from '@vunk/shared';
2
+ import { Deferred } from '@vunk/shared/promise';
3
+ import { type PropType } from 'vue';
4
+ import { ParagraphStatus } from './const';
5
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ enable: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ status: {
11
+ type: PropType<ParagraphStatus>;
12
+ default: ParagraphStatus;
13
+ };
14
+ pause: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ processing: {
19
+ type: PropType<AnyFunc>;
20
+ default: AnyFunc;
21
+ };
22
+ }>, {
23
+ props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
24
+ enable: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ status: {
29
+ type: PropType<ParagraphStatus>;
30
+ default: ParagraphStatus;
31
+ };
32
+ pause: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ processing: {
37
+ type: PropType<AnyFunc>;
38
+ default: AnyFunc;
39
+ };
40
+ }>> & Readonly<{
41
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
42
+ }> & {}>;
43
+ emit: (event: "update:status", ...args: any[]) => void;
44
+ theDef: import("vue").ShallowRef<Deferred<any> | undefined, Deferred<any> | undefined>;
45
+ processingDef: {
46
+ _ref: import("vue").ShallowRef<unknown, unknown>;
47
+ readonly value: unknown;
48
+ promise: Promise<unknown>;
49
+ resolve: import("@vunk/core").AnyFunc;
50
+ reject: (reason?: any) => void;
51
+ };
52
+ init: () => Promise<void>;
53
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:status"[], "update:status", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
54
+ enable: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ status: {
59
+ type: PropType<ParagraphStatus>;
60
+ default: ParagraphStatus;
61
+ };
62
+ pause: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ processing: {
67
+ type: PropType<AnyFunc>;
68
+ default: AnyFunc;
69
+ };
70
+ }>> & Readonly<{
71
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
72
+ }>, {
73
+ processing: AnyFunc;
74
+ pause: boolean;
75
+ enable: boolean;
76
+ status: ParagraphStatus;
77
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
78
+ export default _default;
@@ -0,0 +1,60 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ readonly CloseBold: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3
+ readonly ElIcon: import("element-plus/es/utils").SFCWithInstall<{
4
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
5
+ readonly size: {
6
+ readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
7
+ readonly required: false;
8
+ readonly validator: ((val: unknown) => boolean) | undefined;
9
+ __epPropKey: true;
10
+ };
11
+ readonly color: {
12
+ readonly type: import("vue").PropType<string>;
13
+ readonly required: false;
14
+ readonly validator: ((val: unknown) => boolean) | undefined;
15
+ __epPropKey: true;
16
+ };
17
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
18
+ P: {};
19
+ B: {};
20
+ D: {};
21
+ C: {};
22
+ M: {};
23
+ Defaults: {};
24
+ }, Readonly<import("vue").ExtractPropTypes<{
25
+ readonly size: {
26
+ readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
27
+ readonly required: false;
28
+ readonly validator: ((val: unknown) => boolean) | undefined;
29
+ __epPropKey: true;
30
+ };
31
+ readonly color: {
32
+ readonly type: import("vue").PropType<string>;
33
+ readonly required: false;
34
+ readonly validator: ((val: unknown) => boolean) | undefined;
35
+ __epPropKey: true;
36
+ };
37
+ }>>, {}, {}, {}, {}, {}>;
38
+ __isFragment?: undefined;
39
+ __isTeleport?: undefined;
40
+ __isSuspense?: undefined;
41
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
42
+ readonly size: {
43
+ readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
44
+ readonly required: false;
45
+ readonly validator: ((val: unknown) => boolean) | undefined;
46
+ __epPropKey: true;
47
+ };
48
+ readonly color: {
49
+ readonly type: import("vue").PropType<string>;
50
+ readonly required: false;
51
+ readonly validator: ((val: unknown) => boolean) | undefined;
52
+ __epPropKey: true;
53
+ };
54
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
55
+ $slots: {
56
+ default?(_: {}): any;
57
+ };
58
+ })>;
59
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
60
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import type { Broadcast, ParagraphStatus } from './const';
2
+ export interface Paragraph {
3
+ value: string;
4
+ status: ParagraphStatus;
5
+ start: number;
6
+ end: number;
7
+ separator: string;
8
+ broadcast: Broadcast;
9
+ /**
10
+ * @description 语音合成的 url
11
+ */
12
+ url?: string;
13
+ }
14
+ /**
15
+ * @returns Audio URL
16
+ */
17
+ export type TextToSpeech = (text: string) => Promise<string>;
@@ -0,0 +1,3 @@
1
+ export declare function useVoices(): {
2
+ voices: import("vue").ShallowRef<SpeechSynthesisVoice[], SpeechSynthesisVoice[]>;
3
+ };