-
-
Notifications
You must be signed in to change notification settings - Fork 202
/
Copy pathglobal.d.ts
47 lines (39 loc) · 1021 Bytes
/
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
declare const _globalThis: {
[key: string]: any;
OS: typeof OS;
Blob: typeof Blob;
ztoolkit: ZToolkit;
addon: typeof addon;
};
declare interface Window {
openDialog(
url?: string | URL,
target?: string,
features?: string,
...args: any
): Window;
}
declare type ZToolkit = ReturnType<
typeof import("../src/utils/ztoolkit").createZToolkit
>;
declare const ztoolkit: ZToolkit;
declare const rootURI: string;
declare const addon: import("../src/addon").default;
declare const __env__: "production" | "development";
declare class XULElementBase extends HTMLElement {
get content(): DocumentFragment;
init(): void;
destroy(): void;
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(
name: string,
oldValue: string,
newValue: string,
): void;
static get observedAttributes(): string[];
}
declare class MozXULElement {
static parseXULToFragment(xul: string): DocumentFragment;
static insertFTLIfNeeded(ftl: string): void;
}