forked from nexpid/BunnyPlugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.d.ts
60 lines (57 loc) · 1.32 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
50
51
52
53
54
55
56
57
58
59
60
declare module "*.svg" {
const content: string;
export default content;
}
declare module "*.png" {
const content: string;
export default content;
}
declare module "*.css" {
const content: string;
export default content;
}
declare module "*.html" {
const content: string;
export default content;
}
declare const IS_DEV: boolean;
declare const DEFAULT_LANG: Record<string, string> | undefined;
declare const DEV_LANG: Record<string, Record<string, string>> | undefined;
// simple Buffer type
type Encoding = "base64" | "utf8" | "ascii";
declare const Buffer: {
from: (
data: any,
encoding?: Encoding,
) => {
toString(encoding?: Encoding): string;
};
};
interface Window {
nx?: {
readonly semantic: Record<
string,
Record<"dark" | "darker" | "light" | "amoled", string>
>;
searchSemantic: (query: string) => any;
findSemantic: (hex: string) => any;
p: {
wipe: () => void;
snipe: (
prop: string,
parent: any,
callback?: (args: any[], ret: any) => any,
oneTime?: boolean,
) => void;
props: {
collect: (
key: string,
prop: string,
parent: any,
parser?: (obj: any) => any,
) => void;
redeem: (key: string, save?: boolean) => object | undefined;
};
};
};
}