UNPKG

@trlogic/tracker-web

Version:
24 lines (23 loc) 963 B
/** * Variable resolution service */ import { SuspiciousFlags } from "src/domain/suspicious-flags"; import TrackerVariable from "src/domain/variable/TrackerVariable"; export declare class VariableResolver { private ip; private deviceFingerprint; private suspiciousFlags; private globalVariables; constructor(ip: string, deviceFingerprint: string, suspiciousFlags: SuspiciousFlags, globalVariables: Record<string, unknown>); resolve(trackerVariableSchema: TrackerVariable, mouseEvent: MouseEvent): Promise<string | number | boolean | Record<string, unknown> | null>; private resolveRiskVariable; private resolveCustomVariable; private resolveUrlVariable; private resolveCookieVariable; private resolveElementVariable; private resolveJavascriptVariable; private resolveIpAddressVariable; private resolveDeviceFingerprint; private resolveSuspiciousActivityVariable; private resolveTriggerVariable; }