/// interface ImportMetaEnv { readonly DEV: boolean readonly PROD: boolean } interface ImportMeta { readonly env: ImportMetaEnv } interface Window { yaoyaoDesktop?: { unreadState?(accountId: string | null): Promise openLogin?(): Promise forgetLogin?(): Promise openUpdates?(): Promise updateState?(): Promise updateAction?(action: import('@shared/desktopUpdate').DesktopUpdateAction): Promise onUpdateRequested?(callback: () => void): () => void modeState?(): Promise<{ mode: 'client' | 'server'; serverURL: string; switching: boolean; platform?: string; supportedModes?: ('client' | 'server')[] }> switchMode?(mode: 'client' | 'server'): Promise<{ ok: boolean; error?: string; pendingLogin?: boolean }> openRemoteLogin?(): Promise authorizeComputer?(csrfToken: string): Promise<{ registered: boolean; hostId?: string }> authorizeCurrentDevice?(scope: 'screen' | 'full'): Promise<{ ok: boolean }> deviceHost?(): Promise<{ deviceHost: string | null }> openComputer(id: string, target?: { backend?: import('@shared/managedBrowser').ComputerBackend; host?: string }): Promise computerTargetChanged?(target: { backend: import('@shared/managedBrowser').ComputerBackend; host?: string }): Promise computerClosed(): Promise onComputerClose(callback: () => void): () => void } }