-
Notifications
You must be signed in to change notification settings - Fork 8
/
global.d.ts
49 lines (48 loc) · 1.55 KB
/
global.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
declare global {
interface Window {
Analytics: unknown;
DD_RUM: object | undefined;
DerivInterCom: {
initialize: (config: ICConfig) => void;
};
FreshChat: {
initialize: (config: FreshChatConfig) => void;
};
GrowthbookFeatures: { [key: string]: boolean };
Intercom: ((action: IntercomAction) => void) | undefined;
LC_API: {
on_chat_ended: VoidFunction;
open_chat_window: VoidFunction;
};
LiveChatWidget: {
call: (key: string, value?: object | string) => void;
init: () => void;
on: (key: string, callback: VoidFunction) => void;
};
dataLayer: {
push: (event: { [key: string]: boolean | number | string; event: string }) => void;
};
fcSettings: {
[key: string]: unknown;
};
fcWidget: {
close: VoidFunction;
destroy: VoidFunction;
hide: VoidFunction;
isInitialized: () => boolean;
isLoaded: () => boolean;
on: (key: string, callback: VoidFunction) => void;
open: VoidFunction;
setConfig: (config: Record<string, Record<string, unknown>>) => void;
show: VoidFunction;
user: {
clear: () => Promise<void>;
setLocale(locale: string): void;
};
};
fcWidgetMessengerConfig: {
config: Record<string, Record<string, unknown>>;
};
}
}
export {};