Merge branch 'master' of https://github.com/WoltLab/WCF
[GitHub/WoltLab/WCF.git] / global.d.ts
1 import DatePicker from "./ts/WoltLabSuite/Core/Date/Picker";
2 import Devtools from "./ts/WoltLabSuite/Core/Devtools";
3 import DomUtil from "./ts/WoltLabSuite/Core/Dom/Util";
4 import * as ColorUtil from "./ts/WoltLabSuite/Core/ColorUtil";
5 import * as EventHandler from "./ts/WoltLabSuite/Core/Event/Handler";
6 import UiDropdownSimple from "./ts/WoltLabSuite/Core/Ui/Dropdown/Simple";
7 import "@woltlab/zxcvbn";
8 import { Reaction } from "./ts/WoltLabSuite/Core/Ui/Reaction/Data";
9
10 declare global {
11 interface Window {
12 Devtools?: typeof Devtools;
13 ENABLE_DEBUG_MODE: boolean;
14 ENABLE_DEVELOPER_TOOLS: boolean;
15 LANGUAGE_ID: number;
16 REACTION_TYPES: {
17 [key: string]: Reaction;
18 };
19 SECURITY_TOKEN: string;
20 TIME_NOW: number;
21 WCF_PATH: string;
22 WSC_API_URL: string;
23
24 Favico: any;
25 jQuery: JQueryStatic;
26 WCF: any;
27 bc_wcfDomUtil: typeof DomUtil;
28 bc_wcfSimpleDropdown: typeof UiDropdownSimple;
29 __wcf_bc_colorPickerInit?: () => void;
30 __wcf_bc_colorUtil: typeof ColorUtil;
31 __wcf_bc_datePicker: typeof DatePicker;
32 __wcf_bc_eventHandler: typeof EventHandler;
33 }
34
35 interface String {
36 hashCode: () => string;
37 }
38
39 interface JQuery {
40 sortable(...args: any[]): unknown;
41
42 redactor(...args: any[]): unknown;
43
44 messageTabMenu(...args: any[]): unknown;
45 }
46
47 type ArbitraryObject = Record<string, unknown>;
48 }