/** * Platform detection utilities * * Provides functions to detect the current platform and environment */ /** * Supported platform types */ export declare enum PlatformType { /** WeChat Mini Program */ WECHAT = "wechat", /** Alipay Mini Program */ ALIPAY = "alipay", /** Baidu Smart Program */ BAIDU = "baidu", /** ByteDance Mini Program (Douyin, Toutiao) */ BYTEDANCE = "bytedance", /** QQ Mini Program */ QQ = "qq", /** Web platform */ WEB = "web", /** Unknown platform */ UNKNOWN = "unknown" } /** * Detects the current platform * * @returns The detected platform type */ export declare function detectPlatform(): PlatformType; /** * Gets the platform-specific global object * * @returns The platform-specific global object or null if unknown */ export declare function getPlatformGlobal(): unknown; /** * Checks if the current platform is supported * * @returns True if the platform is supported, false otherwise */ export declare function isPlatformSupported(): boolean; /** * Gets the platform name as a human-readable string * * @returns The platform name */ export declare function getPlatformName(): string;