lee-ai-widget 1.0.6 → 1.0.8

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,43 @@
1
+ declare type AiProvider = 'google' | 'openai' | 'deepseek' | 'moonshot' | 'qwen' | 'doubao' | 'yi';
2
+
3
+ export declare class Widget {
4
+ private container;
5
+ private box;
6
+ private messagesDiv;
7
+ private input;
8
+ private sendBtn;
9
+ private isOpen;
10
+ private history;
11
+ private config;
12
+ constructor(config: WidgetConfig);
13
+ private initDOM;
14
+ private toggle;
15
+ private sendMessage;
16
+ private appendMessage;
17
+ private scrollToBottom;
18
+ private setLoading;
19
+ }
20
+
21
+ export declare interface WidgetConfig {
22
+ baseUrl: string;
23
+ apiKey?: string;
24
+ provider?: AiProvider;
25
+ model?: string;
26
+ title?: string;
27
+ welcomeMessage?: string;
28
+ avatarUrl?: string;
29
+ systemInstruction?: string;
30
+ enableSearch?: boolean;
31
+ }
32
+
33
+ export { }
34
+
35
+
36
+ declare global {
37
+ interface Window {
38
+ LeeAI: {
39
+ init: (config: WidgetConfig) => Widget;
40
+ };
41
+ }
42
+ }
43
+