UNPKG

web-collect-events-narayana

Version:

An sdk for collecting events from web pages

22 lines (21 loc) 781 B
declare class GTETWebSDK { private isPushNotificationScope; private isCustomEventScope; private _data; constructor(); initStorage(): void; private setData; private getData; private removeData; private checkScope; handleDocumentClick(e: MouseEvent): void; sendData(): void; selfAnalyze(url: string): void; customEvent(eventName: string, data: any): void; pushNotification(publicVapidKey: string, api: string, swfile?: string): void; registerServiceWorkerWithFile(swfile: string): Promise<void>; registerServiceWorkerWithoutFile(): Promise<void>; sendSubscriptionToServer(publicVapidKey: string, api: string): Promise<void>; urlBase64ToUint8Array(base64String: string): Uint8Array; } export default GTETWebSDK;