/** * The version of the platform. We only determine the version for Windows, * Mac, and Chrome OS. It doesn't make much sense on Linux. For Windows, we only * look at the NT version. Non-NT-based versions (e.g. 95, 98, etc.) are given * version 0.0. * * @return {string} The platform version or empty string if version cannot be * determined. */ export function getVersion(): string; /** * @return {boolean} Whether the platform is Android. */ export function isAndroid(): boolean; /** * @return {boolean} Whether the platform is ChromeOS. */ export function isChromeOS(): boolean; /** * @return {boolean} Whether the platform is Chromecast. */ export function isChromecast(): boolean; /** * Returns whether the platform is iOS. * Note that iPadOS 13+ spoofs macOS Safari by default in its user agent, and in * this scenario the platform will not be recognized as iOS. If you must have * iPad-specific behavior, use * {@link goog.labs.userAgent.extra.isSafariDesktopOnMobile}. * @return {boolean} Whether the platform is iOS. */ export function isIos(): boolean; /** * Returns whether the platform is iPad. * Note that iPadOS 13+ spoofs macOS Safari by default in its user agent, and in * this scenario the platform will not be recognized as iPad. If you must have * iPad-specific behavior, use * {@link goog.labs.userAgent.extra.isSafariDesktopOnMobile}. * @return {boolean} Whether the platform is iPad. */ export function isIpad(): boolean; /** * @return {boolean} Whether the platform is iPhone. */ export function isIphone(): boolean; /** * @return {boolean} Whether the platform is iPod. * TODO(user): Combine iPod/iPhone detection since they may become * indistinguishable if we begin relying on userAgentdata in iOS. */ export function isIpod(): boolean; /** * @return {boolean} Whether the platform is KaiOS. */ export function isKaiOS(): boolean; /** * Note: ChromeOS is not considered to be Linux as it does not report itself * as Linux in the user agent string. * @return {boolean} Whether the platform is Linux. */ export function isLinux(): boolean; /** * @return {boolean} Whether the platform is Mac. */ export function isMacintosh(): boolean; /** * @param {string|number} version The version to check. * @return {boolean} Whether the browser version is higher or the same as the * given version. */ export function isVersionOrHigher(version: string | number): boolean; /** * @return {boolean} Whether the platform is Windows. */ export function isWindows(): boolean; /** * The platform version, a high-entropy value. * @type {!AsyncValue} */ export const version: AsyncValue; import { AsyncValue } from "./highentropy/highentropyvalue.js"; import { Version } from "./highentropy/highentropyvalue.js";