import React from 'react'; /** * Product hero — single-product spotlight. A mini-PDP embedded on the * homepage: image, eyebrow, name, price, optional editorial copy, and a * "View details" link to the real product page. * * Variant picking + add-to-cart deliberately defer to the theme's normal * PDP affordances — exposing them from a homepage widget would require * wiring up the cart drawer machinery, which is theme-owned. The hero * is read-only: it surfaces the product and links into its full PDP. */ interface HeroProduct { productId: number; uuid: string; name: string; sku?: string | null; price?: { regular?: { value: number; text: string; } | null; special?: { value: number; text: string; } | null; } | null; image?: { alt: string; url: string; } | null; url: string; inventory?: { isInStock?: boolean; } | null; } export interface ProductHeroProps { productHeroWidget: { productUuid: string | null; image: string | null; imageAlt: string; /** Natural intrinsic width of the override image, captured at pick * time. Falls back to a hero-scale default. The product's own image * doesn't carry dimensions, so we always need this fallback when * the override is empty. */ imageWidth: number | null; /** Natural intrinsic height. */ imageHeight: number | null; eyebrow: string | null; copy: string | null; imagePosition: 'left' | 'right'; product: HeroProduct | null; }; } export default function ProductHero({ productHeroWidget }: ProductHeroProps): React.JSX.Element | null; export declare const query = "\n query Query(\n $productUuid: String\n $image: String\n $imageAlt: String\n $imageWidth: Float\n $imageHeight: Float\n $eyebrow: String\n $copy: String\n $imagePosition: String\n ) {\n productHeroWidget(\n productUuid: $productUuid\n image: $image\n imageAlt: $imageAlt\n imageWidth: $imageWidth\n imageHeight: $imageHeight\n eyebrow: $eyebrow\n copy: $copy\n imagePosition: $imagePosition\n ) {\n productUuid\n image\n imageAlt\n imageWidth\n imageHeight\n eyebrow\n copy\n imagePosition\n product {\n productId\n uuid\n name\n sku\n price {\n regular { value text }\n special { value text }\n }\n image { alt url }\n url\n inventory { isInStock }\n }\n }\n }\n"; export declare const variables = "{\n productUuid: getWidgetSetting(\"productUuid\"),\n image: getWidgetSetting(\"image\"),\n imageAlt: getWidgetSetting(\"imageAlt\"),\n imageWidth: getWidgetSetting(\"imageWidth\"),\n imageHeight: getWidgetSetting(\"imageHeight\"),\n eyebrow: getWidgetSetting(\"eyebrow\"),\n copy: getWidgetSetting(\"copy\"),\n imagePosition: getWidgetSetting(\"imagePosition\", \"left\")\n}"; export {};