export declare const CACHE_TTL_SECONDS = 60; export declare const DatafileVersion: { V4: string; }; export declare const OPTIMIZELY_EDGE_HOSTNAME = "optimizely-edge.com"; /** * Optimizely query params. All are prefixed with 'optimizely_'. * * This is a subset of the query params that are parsed and consumed by client directives: * https://github.com/optimizely/client-js/blob/c4d866cadfcac259f083f581604753fb5afef2b4/src/core/directive/index.js#L19 * * Parameter usage: * * * `optimizely_disable` (DISABLE) Disables Optimizely if present * * `optimizely_p13n` (EDITOR_V2) Indicates running in v2 (Optimizely X) editor. * * `optimizely_x` (FORCE_VARIATIONS) Comma-separated list of Variation IDs to bucket. * If set, overrides any variations the visitor is in "naturally". * * `optimizely_opt_out` (OPT_OUT) Opts visitor out of Optimizely (sets cookie to persist). * * `optimizely_token` (TOKEN) Auth token for current project to load preview (unpublished/archived/paused) data. * * @enum {String} */ export declare const OptimizelyQueryParams: { DISABLE: string; EDITOR_V2: string; FORCE_VARIATIONS: string; LOG: string; OPT_OUT: string; TOKEN: string; }; export declare const OptimizelyCookies: { OEU_ID: string; OPT_OUT: string; OPTIMIZELY_TOKEN: string; OPTIMIZELY_SESSION: string; OPTIMIZEY_MFE_EDITOR: string; }; export declare const SESSION_LENGTH_MS: number; /** * Edge request headers. * * Parameter usage: * * * `X-Optimizely-Extend-Cookie-Lifetime` (EXTEND_COOKIE_LIFETIME) If set to false, * we don't set the Optimizely End User ID cookie in the microsnippet (if it's already set). * * @enum {String} */ export declare const OptimizelyRequestHeaders: { EXTEND_COOKIE_LIFETIME: string; }; /** * Edge request URL query parameters. * * Parameter usage: * * * `extend_cookie_lifetime` (EXTEND_COOKIE_LIFETIME) If set to false, * we don't set the Optimizely End User ID cookie in the microsnippet (if it's already set). * * `cookie_expiration` (COOKIE_EXPIRATION) this value overwrite * the DEFAULT_COOKIE_EXPIRATION value. * `cookie_domain` (COOKIE_DOMAIN) If a value is defined and a is valid * cookie domain, it will be set as the cookie domain. * @enum {String} */ export declare const RequestQueryParameters: { EXTEND_COOKIE_LIFETIME: string; COOKIE_EXPIRATION: string; COOKIE_DOMAIN: string; }; /** * Query parameters needed for Edge decider. * * Parameter usage: * * * `optimizely_manifest_bucket` (OPTIMIZELY_MANIFEST_BUCKET) Specifies S3 bucket from * which to fetch web manifest * * `optimizely_bypass_log_sampling` (BYPASS_LOG_SAMPLING) Always log request to Honeycomb (undocumented). * * `optimizely_bust_cache` (BUST_CACHE) Control caching of downstream resources (undocumented). * * @enum {String} */ export declare const EdgeQueryParams: { OPTIMIZELY_MANIFEST_BUCKET: string; BYPASS_LOG_SAMPLING: string; BUST_CACHE: string; }; export declare const VisitorIdLocatorType: { COOKIE: string; PAGE_QUERY: string; JS_VARIABLE: string; LOCALSTORAGE: string; }; export declare const RequestType: { DISABLE: string; EDITOR: string; PREVIEW: string; STANDARD: string; OPT_OUT_VIA_COOKIE: string; OPT_OUT_VIA_QUERY_PARAM: string; }; export declare const DefaultCdnOrigin = "https://cdn.optimizely.com"; /** * List of Valid S3 buckets from which we can fetch. * @type {{"optimizely-staging": string, "optimizely-dev": string}} */ export declare const ValidS3Buckets: { 'optimizely-staging': string; 'optimizely-dev': string; }; /** * FileName. * @type {{WEB_MANIFEST: string}} */ export declare const FileName: { WEB_PROJECT_MANIFEST: string; }; export declare const WorkerHost: { local: string; }; export declare const OptimizelyLogLevel: { DEBUG: string; ERROR: string; INFO: string; WARN: string; }; export declare const DebugOnlyKeys: string[]; /** * These are the primitive properties that are passed to us in the request that we want to log into Honeycomb. * @array {String} */ export declare const RequestPropertiesToLog: string[]; /** * The request has a "cf" property that is an object itself containing properties that we want to log into Honeycomb. * These are the specific properties that we want to log. * @array {String} */ export declare const RequestCFPropertiesToLog: string[]; /** * This is the property name for the CF data on the request object. * @type {string} */ export declare const REQUEST_CF_PROPERTY_NAME = "cf"; export declare const ViewActivationTypes: { immediate: string; URLChanged: string; DOMChanged: string; }; export declare const ExperimentType: { EQUAL_PRIORITY: string; SINGLE_EXPERIMENT: string; MULTIVARIATE: string; }; /** * Until we support cookieExpiration, use 6 months (15552000 secs) for expiration of Optimizely cookies (default in tracking snippet) * https://github.com/optimizely/client-js/blob/2b25fa05fde9a03019e0081cd2849c921ec5eef6/src/core/stores/cookie_options.js#L20 * */ export declare const DEFAULT_COOKIE_EXPIRATION: number; /** * This is the expiration time (max age) for Opt Out cookies - 10 years (315360000 secs). */ export declare const OPT_OUT_COOKIE_EXPIRATION: number; /** * This list of error codes need to be set to return a different http code because 400 or 500 doesn't allow to * execute the script in the browser/user side. * * This also will be reflected in the honeycomb dataset 'edge-decider-df' and in the cloudflare metrics */ export declare const ERROR_CODE: { InputError: number; DataError: number; InternalError: number; }; declare const _default: { CACHE_TTL_SECONDS: number; DatafileVersion: { V4: string; }; DebugOnlyKeys: string[]; DEFAULT_COOKIE_EXPIRATION: number; DefaultCdnOrigin: string; EdgeQueryParams: { OPTIMIZELY_MANIFEST_BUCKET: string; BYPASS_LOG_SAMPLING: string; BUST_CACHE: string; }; OptimizelyCookies: { OEU_ID: string; OPT_OUT: string; OPTIMIZELY_TOKEN: string; OPTIMIZELY_SESSION: string; OPTIMIZEY_MFE_EDITOR: string; }; OptimizelyLogLevel: { DEBUG: string; ERROR: string; INFO: string; WARN: string; }; OptimizelyQueryParams: { DISABLE: string; EDITOR_V2: string; FORCE_VARIATIONS: string; LOG: string; OPT_OUT: string; TOKEN: string; }; OptimizelyRequestHeaders: { EXTEND_COOKIE_LIFETIME: string; }; OPTIMIZELY_EDGE_HOSTNAME: string; OPT_OUT_COOKIE_EXPIRATION: number; RequestCFPropertiesToLog: string[]; RequestPropertiesToLog: string[]; RequestQueryParameters: { EXTEND_COOKIE_LIFETIME: string; COOKIE_EXPIRATION: string; COOKIE_DOMAIN: string; }; REQUEST_CF_PROPERTY_NAME: string; RequestType: { DISABLE: string; EDITOR: string; PREVIEW: string; STANDARD: string; OPT_OUT_VIA_COOKIE: string; OPT_OUT_VIA_QUERY_PARAM: string; }; ValidS3Buckets: { 'optimizely-staging': string; 'optimizely-dev': string; }; ViewActivationTypes: { immediate: string; URLChanged: string; DOMChanged: string; }; VisitorIdLocatorType: { COOKIE: string; PAGE_QUERY: string; JS_VARIABLE: string; LOCALSTORAGE: string; }; WorkerHost: { local: string; }; ERROR_CODE: { InputError: number; DataError: number; InternalError: number; }; }; export default _default;