-
Notifications
You must be signed in to change notification settings - Fork 17
/
index.d.ts
63 lines (56 loc) · 1.22 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
export = baidu_translate_api;
declare function baidu_translate_api(
query: string,
opts?: baidu_translate_api.options
): Promise<baidu_translate_api.returnObject>;
declare namespace baidu_translate_api {
export interface options {
from?: string;
to?: string;
requestOpts?: any;
}
type GlobalConfig = {
useLocalStore: boolean
}
export function setGlobalConfig(config: GlobalConfig): void;
export interface transResult {
dst: string;
src: string;
}
export interface returnObject {
from: string;
to: string;
trans_result: transResult;
}
export enum language {
Auto = "auto",
Chinese = "zh",
English = "en",
Cantonese = "yue",
ClassicalChinese = "wyw",
Japanese = "jp",
Korean = "kor",
French = "fra",
Spanish = "spa",
Thai = "th",
Arabic = "ara",
Russian = "ru",
Portuguese = "pt",
German = "de",
Italian = "it",
Greek = "el",
Dutch = "nl",
Polish = "pl",
Bulgarian = "bul",
Estonian = "est",
Danish = "dan",
Finnish = "fin",
Czech = "cs",
Romanian = "rom",
Slovenia = "slo",
Swedish = "swe",
Hungarian = "hu",
TraditionalChinese = "cht",
Vietnamese = "vie"
}
}