forked from Victor0814gui/react-native-custom-window
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
48 lines (40 loc) · 1.22 KB
/
index.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
// main index.js
interface TitleBarColorProps {
backgroundColor: string;
inactiveBackgroundColor?: string;
buttonBackgroundColor?: string;
buttonInactiveBackgroundColor?: string;
buttonForegroundColor?: string;
buttonHoverForegroundColor?: string;
buttonPressedForegroundColor?: string;
buttonInactiveForegroundColor?: string;
foregroundColor?: string;
inactiveForegroundColor?: string;
buttonHoverBackgroundColor?: string;
buttonPressedBackgroundColor?: string;
}
interface ISetSize {
width: number;
height: number;
}
export interface IWindow {
enterFullscreen: () => Promise<boolean>,
leaveFullscreen: () => Promise<boolean>,
isFullScreen: () => Promise<boolean>,
fullscreen: () => Promise<void>,
setSize: (props: ISetSize) => Promise<void>,
}
interface TitleBarProps {
enableExtend: () => Promise<void>;
addBackButton: () => Promise<void>;
removeBackButton: () => Promise<void>;
disabledBackButton: () => Promise<void>;
disableExtend: () => Promise<void>;
TitlebarColor: (props: TitleBarColorProps) => Promise<void>;
}
export interface IFilePicker {
pickFile: () => Promise<string>;
}
export const window: IWindow;
export const FilePicker: IFilePicker;
export const titleBar: TitleBarProps;