UNPKG

@rudderstack/analytics-js-cookies

Version:
29 lines (24 loc) 1.67 kB
type Nullable<T> = T | null; /** * Represents a generic object in the APIs * Use for parameters like properties, traits etc. */ type ApiObject = { [index: string]: string | number | boolean | ApiObject | null | Date | (string | number | boolean | null | Date | ApiObject | undefined)[] | undefined; }; declare const getEncryptedValueBrowser: (value: string | ApiObject, debug?: boolean) => Nullable<string>; declare const getDecryptedValueBrowser: (value: string, debug?: boolean) => Nullable<string | ApiObject>; declare const getDecryptedCookieBrowser: (cookieKey: string, debug?: boolean) => Nullable<string | ApiObject>; declare const getDecryptedValue: (value: string, debug?: boolean) => Nullable<string | ApiObject>; declare const getEncryptedValue: (value: string | ApiObject, debug?: boolean) => Nullable<string>; //# sourceMappingURL=cookiesUtilities.d.ts.map declare const userIdKey = "rl_user_id"; declare const userTraitsKey = "rl_trait"; declare const anonymousUserIdKey = "rl_anonymous_id"; declare const groupIdKey = "rl_group_id"; declare const groupTraitsKey = "rl_group_trait"; declare const pageInitialReferrerKey = "rl_page_init_referrer"; declare const pageInitialReferringDomainKey = "rl_page_init_referring_domain"; declare const sessionInfoKey = "rl_session"; declare const authTokenKey = "rl_auth_token";//# sourceMappingURL=cookies.d.ts.map export { anonymousUserIdKey, authTokenKey, getDecryptedCookieBrowser, getDecryptedValue, getDecryptedValueBrowser, getEncryptedValue, getEncryptedValueBrowser, groupIdKey, groupTraitsKey, pageInitialReferrerKey, pageInitialReferringDomainKey, sessionInfoKey, userIdKey, userTraitsKey };