fuc-new/doc/node_modules/@vuepress/helper/lib/client/utils/env.d.ts
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

91 lines
2.4 KiB
TypeScript

/**
* Check if the user agent indicates a mobile device
*
* 检查用户代理是否表示移动设备
*
* @param ua - User agent string / 用户代理字符串
*
* @returns Whether it's a mobile device / 是否为移动设备
*/
export declare const isMobile: (ua: string) => boolean;
/**
* Check if the user agent indicates Chrome WebView
*
* 检查用户代理是否表示 Chrome WebView
*
* @param ua - User agent string / 用户代理字符串
*
* @returns Whether it's Chrome WebView / 是否为 Chrome WebView
*/
export declare const isChromeWebView: (ua: string) => boolean;
/**
* Check if the user agent indicates Safari Mobile
*
* 检查用户代理是否表示 Safari Mobile
*
* @param ua - User agent string / 用户代理字符串
*
* @returns Whether it's Safari Mobile / 是否为 Safari Mobile
*/
export declare const isSafariMobile: (ua: string) => boolean;
/**
* Check if the user agent indicates Safari
*
* 检查用户代理是否表示 Safari
*
* @param ua - User agent string / 用户代理字符串
*
* @returns Whether it's Safari / 是否为 Safari
*/
export declare const isSafari: (ua: string) => boolean;
/**
* Check if the user agent indicates iPhone
*
* 检查用户代理是否表示 iPhone
*
* @param ua - User agent string / 用户代理字符串
*
* @returns Whether it's iPhone / 是否为 iPhone
*/
export declare const isiPhone: (ua: string) => boolean;
/**
* Check if the user agent indicates iPad
*
* 检查用户代理是否表示 iPad
*
* @param ua - User agent string / 用户代理字符串
*
* @returns Whether it's iPad / 是否为 iPad
*/
export declare const isiPad: (ua: string) => boolean;
/**
* Check if the user agent indicates Windows
*
* 检查用户代理是否表示 Windows
*
* @param ua - User agent string / 用户代理字符串
*
* @returns Whether it's Windows / 是否为 Windows
*/
export declare const isWindows: (ua: string) => boolean;
/**
* Check if the user agent indicates iOS
*
* 检查用户代理是否表示 iOS
*
* @param ua - User agent string / 用户代理字符串
*
* @returns Whether it's iOS / 是否为 iOS
*/
export declare const isIOS: (ua: string) => boolean;
/**
* Check if the user agent indicates macOS
*
* 检查用户代理是否表示 macOS
*
* @param ua - User agent string / 用户代理字符串
*
* @returns Whether it's macOS / 是否为 macOS
*/
export declare const isMacOS: (ua: string) => boolean;