UNPKG

@2l/ewa-analytics-web-sdk

Version:

A lightweight TypeScript SDK for tracking user events and analytics data in web applications. Provides real-time event tracking with support for both WebSocket and HTTP transport methods.

19 lines 735 B
import { DeviceTypes, OsTypes } from './types'; export interface ExtendedFingerPrint { web_hwid: Record<string, any>; 'web_hwid-rm__applepay--rm__browser-useragent': string; 'web_hwid-rm__applepay--rm__browser-useragent__add-ip': string; } export interface UserAgent { detectDeviceType(): DeviceTypes; detectOS(): OsTypes; getTimezone(): string; getBrowserName(): string; getBrowserVersion(): string; getFingerPrint(): Promise<string>; detectOSVersion(): string; detectDeviceName(): string; getExtendedFingerprint(ipAddress: string): Promise<ExtendedFingerPrint | undefined>; } export declare function getUserAgent(userAgentString: string): UserAgent; //# sourceMappingURL=index.d.ts.map