import { Properties } from '../types';
export declare const PERSONAL_DATA_CAMPAIGN_PARAMS: string[];
export declare const CAMPAIGN_PARAMS: string[];
export declare const EVENT_TO_PERSON_PROPERTIES: string[];
export declare const MASKED = "<masked>";
export declare const Info: {
campaignParams: ({ customTrackedParams, maskPersonalDataProperties, customPersonalDataProperties, }?: {
customTrackedParams?: string[];
maskPersonalDataProperties?: boolean;
customPersonalDataProperties?: string[] | undefined;
}) => Record<string, string>;
_campaignParamsFromUrl: (url: string, customParams?: string[]) => Record<string, string>;
_searchEngine: (referrer: string) => string | null;
_searchInfoFromReferrer: (referrer: string) => Record<string, any>;
searchInfo: () => Record<string, any>;
/**
* This function detects which browser is running this script.
* The order of the checks are important since many user agents
* include keywords used in later checks.
*/
browser: (user_agent: string, vendor: string | undefined) => string;
/**
* This function detects which browser version is running this script,
* parsing major and minor version (e.g., 42.1). User agent strings from:
* http://www.useragentstring.com/pages/useragentstring.php
*
* `navigator.vendor` is passed in and used to help with detecting certain browsers
* NB `navigator.vendor` is deprecated and not present in every browser
*/
browserVersion: (userAgent: string, vendor: string | undefined) => number | null;
browserLanguage: () => string | undefined;
browserLanguagePrefix: () => string | undefined;
os: (user_agent: string) => [string, string];
device: (user_agent: string) => string;
deviceType: (user_agent: string) => string;
referrer: () => string;
referringDomain: () => string;
referrerInfo: () => Record<string, any>;
personInfo: ({ maskPersonalDataProperties, customPersonalDataProperties, }?: {
maskPersonalDataProperties?: boolean;
customPersonalDataProperties?: string[];
}) => {
r: string;
u: string | undefined;
};
personPropsFromInfo: (info: Record<string, any>) => Record<string, any>;
initialPersonPropsFromInfo: (info: Record<string, any>) => Record<string, any>;
timezone: () => string | undefined;
timezoneOffset: () => number | undefined;
properties: ({ maskPersonalDataProperties, customPersonalDataProperties, }?: {
maskPersonalDataProperties?: boolean;
customPersonalDataProperties?: string[];
}) => Properties;
people_properties: () => Properties;
};