mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-13 18:59:22 -05:00
29 lines
615 B
TypeScript
29 lines
615 B
TypeScript
type Build = "stable" | "nightly" | "dev";
|
|
|
|
type NativeConfig = {
|
|
frame: boolean;
|
|
build: Build;
|
|
discordRPC: boolean;
|
|
hardwareAcceleration: boolean;
|
|
};
|
|
|
|
declare interface Window {
|
|
isNative?: boolean;
|
|
nativeVersion: string;
|
|
native: {
|
|
min();
|
|
max();
|
|
close();
|
|
reload();
|
|
relaunch();
|
|
|
|
getConfig(): NativeConfig;
|
|
set(key: keyof NativeConfig, value: unknown);
|
|
|
|
getAutoStart(): Promise<boolean>;
|
|
enableAutoStart(): Promise<void>;
|
|
disableAutoStart(): Promise<void>;
|
|
};
|
|
}
|
|
|
|
declare const Fragment = preact.Fragment;
|