import React from 'react'; /** * Coupon block — a centred promotional panel with a copy-able code and a * CTA. The visual code box + Copy button + Shop CTA pattern consistently * outperforms hidden automatic discounts. * * Expiry handling: when set, an inline script reads the embedded * `data-expires` attribute on page load and hides the widget if the time * has passed. SSR always renders the block; we don't want to invalidate * the SSR cache every time someone's coupon ends. The script handles the * real-time suppression for live visitors. */ export type CouponBorderStyle = 'solid' | 'dashed' | 'none'; export interface CouponBlockProps { couponBlockWidget: { eyebrow: string | null; heading: string; body: string | null; code: string; ctaLabel: string | null; ctaLink: string; ctaNewTab: boolean | null; expires: string | null; borderStyle: CouponBorderStyle | null; backgroundColor: string | null; }; } export default function CouponBlock({ couponBlockWidget }: CouponBlockProps): React.JSX.Element | null; export declare const query = "\n query Query(\n $eyebrow: String\n $heading: String\n $body: String\n $code: String\n $ctaLabel: String\n $ctaLink: String\n $ctaNewTab: Boolean\n $expires: String\n $borderStyle: String\n $backgroundColor: String\n ) {\n couponBlockWidget(\n eyebrow: $eyebrow\n heading: $heading\n body: $body\n code: $code\n ctaLabel: $ctaLabel\n ctaLink: $ctaLink\n ctaNewTab: $ctaNewTab\n expires: $expires\n borderStyle: $borderStyle\n backgroundColor: $backgroundColor\n ) {\n eyebrow\n heading\n body\n code\n ctaLabel\n ctaLink\n ctaNewTab\n expires\n borderStyle\n backgroundColor\n }\n }\n"; export declare const variables = "{\n eyebrow: getWidgetSetting(\"eyebrow\"),\n heading: getWidgetSetting(\"heading\"),\n body: getWidgetSetting(\"body\"),\n code: getWidgetSetting(\"code\"),\n ctaLabel: getWidgetSetting(\"ctaLabel\"),\n ctaLink: getWidgetSetting(\"ctaLink\"),\n ctaNewTab: getWidgetSetting(\"ctaNewTab\", false),\n expires: getWidgetSetting(\"expires\"),\n borderStyle: getWidgetSetting(\"borderStyle\", \"dashed\"),\n backgroundColor: getWidgetSetting(\"backgroundColor\")\n}";