Release 5.5.17
[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 PAGE_TITLE: string;
17 REACTION_TYPES: {
18 [key: string]: Reaction;
19 };
20 TIME_NOW: number;
21 WCF_PATH: string;
22 WSC_API_URL: string;
23
24 jQuery: JQueryStatic;
25 WCF: any;
26 bc_wcfDomUtil: typeof DomUtil;
27 bc_wcfSimpleDropdown: typeof UiDropdownSimple;
28 __wcf_bc_colorPickerInit?: () => void;
29 __wcf_bc_colorUtil: typeof ColorUtil;
30 __wcf_bc_datePicker: typeof DatePicker;
31 __wcf_bc_eventHandler: typeof EventHandler;
32 }
33
34 interface String {
35 hashCode: () => string;
36 }
37
38 interface JQuery {
39 sortable(...args: any[]): unknown;
40
41 redactor(...args: any[]): unknown;
42
43 messageTabMenu(...args: any[]): unknown;
44 }
45
46 type ArbitraryObject = Record<string, unknown>;
47 }