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; enableAutoStart(): Promise; disableAutoStart(): Promise; }; } declare const Fragment = preact.Fragment;