/**
 * Shared cookie contract between ShopifyPixelBridge (SDK) and the
 * Shopify Web Pixel extension. Both sides must agree on this format.
 *
 * Cookie name: syntro_experiments (legacy name — kept for backward compat;
 * the cookie carries telemetry identity, not experiment assignments)
 * Cookie value: JSON-encoded ShopifyPixelCookie
 *
 * The storefront SDK writes a snapshot of its telemetry context — the
 * PostHog distinct_id, the telemetry proxy host, and the public PostHog
 * project key. The Web Pixel extension runs in Shopify's sandboxed
 * checkout (which cannot reach the SDK), reads this cookie, and posts
 * PostHog-shaped checkout events with the same distinct_id so that
 * checkout events JOIN to the storefront session. PostHog already knows
 * which experiments that shopper is in (via `$experiment_started` events
 * fired from the storefront), so attribution happens server-side without
 * the pixel having to re-transmit assignments.
 *
 * Naming note: the fields are `telemetry_host` / `telemetry_key` — not
 * `api_host` / `api_key` — to disambiguate from the other `apiHost`
 * fields in the codebase. This cookie is strictly about telemetry.
 *
 * Forward compat: pixel code must check `version` and reject unknown
 * shapes. Bump `version` when fields are removed or semantics change.
 */
export interface ShopifyPixelCookie {
    /** Schema version — pixel rejects unknown versions. Bump on breaking changes. */
    version: 1;
    /** PostHog distinct_id from the storefront SDK, used so checkout events
     * join onto the pre-checkout session. Required — without it the pixel
     * would create a new anonymous user at checkout and the funnel breaks. */
    distinct_id: string;
    /** Telemetry proxy host (e.g., `https://telemetry.syntrologie.com`). No trailing slash. */
    telemetry_host: string;
    /** Public write-only PostHog key (embedded in the client). */
    telemetry_key: string;
}
export declare const COOKIE_NAME = "syntro_experiments";
export declare const COOKIE_VERSION: 1;
/**
 * Cart attribute keys used by `ShopifyPixelBridge` (writer, on the storefront)
 * and `shopify-pixel-entry.ts` (reader, in the Web Pixel sandbox). Defined
 * once here so the writer and reader can never drift. The underscore prefix
 * is the Shopify convention to hide the attribute from the customer at
 * checkout.
 */
export declare const CART_ATTRIBUTE_KEY: {
    readonly distinctId: "_syntro_distinct_id";
    readonly telemetryHost: "_syntro_telemetry_host";
    readonly telemetryKey: "_syntro_telemetry_key";
};
