import type { PlatformAdapter, PlatformFeature, ServerLaunchConfig, DiscordPresence, AppUpdateInfo, } from '$lib/platform-adapters/types' export class WebAdapter implements PlatformAdapter { async init() {} isSupported(_feature: PlatformFeature): boolean { return false } async launchServer(_config: ServerLaunchConfig) {} async stopServer() {} async getServerStatus(): Promise<'running' | 'stopped' | 'error'> { return 'stopped' } async readFile(_path: string): Promise { return new Uint8Array() } async writeFile(_path: string, _data: Uint8Array) {} async pickFolder(): Promise { return null } async authenticateBiometric(): Promise { return false } async storeCredential(_key: string, _value: string) {} async getCredential(_key: string): Promise { return null } async setTitle(title: string) { document.title = title } async minimize() {} async maximize() {} async close() {} async setDiscordPresence(_presence: DiscordPresence) {} async clearDiscordPresence() {} async getVersion(): Promise { return __APP_VERSION__ } async openExternal(url: string) { window.open(url, '_blank', 'noopener,noreferrer') } async checkForAppUpdate(): Promise { return null } async installAppUpdate() {} }