export type CrossPromoSiteRole = 'display' | 'destination'; export type CrossPromoFormat = 'band' | 'card' | 'strip'; export type CrossPromoLocale = 'es' | 'en'; export interface CrossPromoPlacement { /** Placement key unique within the host site (becomes part of creative_slot). */ id: string; format: CrossPromoFormat; } export interface CrossPromoSite { /** Stable kebab-case id used as promotion_id in GA4. */ id: string; /** Human-readable destination name used as promotion_name in GA4. */ name: string; /** Canonical https destination URL. */ url: string; roles: CrossPromoSiteRole[]; /** Relative impression weight; normalized at selection time. */ weight: number; /** Placement inventory; required (non-empty) for display sites. */ placements: CrossPromoPlacement[]; /** Creative ids from NetworkConfig.creatives that render for this destination. */ creatives: string[]; } export interface CrossPromoCreative { id: string; /** Destination site id. */ destination: string; /** Variant label used as creative_name in GA4. */ variant: string; locale: CrossPromoLocale; headline: string; blurb: string; cta: string; /** Decorative accent color (hex). */ accent: string; /** Optional accent foreground for light accents (hex); defaults to #ffffff. */ accentForeground?: string; /** Optional decorative emoji/icon shown beside the copy. */ icon?: string; /** Optional deep link (e.g. a specific Medium article); falls back to the site URL. */ url?: string; /** Optional chip image URL (e.g. a brand logo); replaces the emoji icon. */ image?: string; /** Optional muted looping chip video URL; image is used as its poster. */ video?: string; } export interface NetworkConfig { /** Increments on every change to sites, weights, or creatives; lands in GA4 as cp_config_version. */ version: number; /** utm_medium applied to every outbound promo URL. */ medium: string; /** utm_campaign applied to every outbound promo URL. */ campaign: string; defaultLocale: CrossPromoLocale; /** Max impressions of the same destination per visitor per UTC day. */ capPerDay: number; sites: CrossPromoSite[]; creatives: CrossPromoCreative[]; } export interface PromotionSelection { siteId: string; creativeId: string; } export interface ResolvedPromo { siteId: string; siteName: string; creativeId: string; variant: string; creativeSlot: string; locationId: string; configVersion: number; headline: string; blurb: string; cta: string; accent: string; accentForeground: string; icon: string | null; image: string | null; video: string | null; locale: CrossPromoLocale; url: string; } //# sourceMappingURL=types.d.ts.map