import { WebsiteSettings } from './api'; declare global { interface Window { vaWorkerTrackedWebsites?: string[]; _visaSettings: any; commonConfig?: { bsi?: string; }; } const packageVersion: string; const usePolls: boolean; } type VisaSettings = { platform: string; key: string; workerVersion: string; commandFnName: string; maxPrivacyMode: boolean; }; export default class Worker { private websiteId; private platform; private key; private hash; private workerVersion; private storedDataKey; private previousUrl?; private referrer; private websiteSettings; private guid; private isInitialized; private visitorFingerprint; private commandFnName?; private maxPrivacyMode; /** * * @throws {Error} */ constructor(websiteId: string, settings: VisaSettings); init(): Promise; /** * * @param {string} url */ handleEvent(url: string): void; /** * * @param {string} url * @returns */ shouldTrack(url: string): boolean; triggerVisit(url: string, tags?: Record): Promise; getCommandFnName(): string | undefined; private computeVisitorFingerprint; private createDefaultWebsiteSettings; private readData; private readAndSyncData; private saveData; private removeData; private setCookie; private getDocumentTitle; private getReferrer; getWebsiteSettings(): WebsiteSettings; } export {};