UNPKG

@trlogic/tracker-web

Version:
43 lines (42 loc) 1.17 kB
/** * Browser and system detection utilities using Bowser */ export declare class BrowserDetector { private static parser; static getBrowser(): string | null; static getBrowserVersion(): string | null; static getOS(): string | null; static getOSVersion(): string | null; static getPlatform(): string | null; static getEngine(): string | null; static getLanguage(): string; static getTimezone(): string; static isDesktop(): boolean; static isMobile(): boolean; static isTablet(): boolean; static isBot(): boolean; static isSuspiciousBrowser(): Promise<boolean>; /** * Get detailed browser information */ static getDetailedInfo(): { browser: { name: string | null; version: string | null; }; os: { name: string | null; version: string | null; }; platform: { type: string | null; isDesktop: boolean; isMobile: boolean; isTablet: boolean; }; engine: string | null; language: string; timezone: string; isBot: boolean; }; }