mboaai-sdk 1.0.16 → 1.0.18

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.
package/dist/index.d.ts CHANGED
@@ -2,25 +2,18 @@ type BuiltIn = "standard" | "website";
2
2
  export type TranslateType = BuiltIn | (string & {});
3
3
  interface InitOptions {
4
4
  apiKey: string;
5
- mcpUrl?: string;
6
- name?: string;
7
- version?: string;
5
+ baseUrl?: string;
8
6
  defaultType?: TranslateType;
9
7
  }
10
8
  declare class T {
11
- private static client;
12
- private static ready;
13
- private static defaultType;
9
+ private static baseUrl;
14
10
  private static apiKey;
15
- /** Call once near app start */
16
- static init(opts: InitOptions): Promise<void>;
17
- /** Translate text – returns original text on failure or malformed JSON */
11
+ private static defaultType;
12
+ private static ready;
13
+ static init(opts: InitOptions): void;
14
+ private static callTool;
15
+ static runWeather(): Promise<string>;
18
16
  static translate(text: string, targetLang: string, type?: TranslateType): Promise<string>;
19
17
  }
20
- declare global {
21
- interface Window {
22
- MboaAI?: any;
23
- }
24
- }
25
18
  export { T };
26
19
  export default T;