/** * Mesh Analytics SDK * @author [Vivek Sudarsan] */ export declare let glob: any; /** Reset glob to its default state (used in tests) */ export declare const resetGlob: () => void; declare global { interface Window { mesh: any; avina: any; meshLogs: any; debugInteractions: any; vector: any; reb2b: any; rb2bConfig: any; hj: any; avina_vectorScriptInjected: boolean; avina_rb2bScriptInjected: boolean; } } /** * Load event listeners and prepare for third-party scripts * @returns */ export declare const preLoadEvents: () => Promise; /** * Get attributes from script to save in global state * @returns */ export declare const getScriptAttributes: () => void; /** Remove any conflicting scripts on the page */ export declare const removeConflictingScripts: () => Promise; /** * Get and set workspace details for the sdk key * @returns */ export declare const getWorkspaceDetails: () => Promise; /** * Get the visitor's ID (if returning), log their Touch, * gather their fingerprints, and create a Contact (if one does not exist). * @returns visitorId */ export declare const initializeVisitor: () => Promise; export declare const waitForResolution: (timeoutMs: number) => Promise; export declare const activateVector: () => Promise; export declare const activateRb2b: () => void; /** * Waits until the visitor's session has lasted at least `resolutionDelayMs` * before returning `true`. Time elapsed is tracked with a cookie. * * The boolean return is useless as of writing, but remains reserved in case we ever want * this function to short-circuit `startContactResolution()`. */ export declare const waitForSessionDuration: () => Promise; export declare const startContactResolution: () => Promise;