import React from 'react'; import { RecommendationShelfProps } from './RecommendationShelf.js'; interface CartFrequentlyBoughtTogetherProps { shelf: { products: RecommendationShelfProps['products']; } | null; recommendationWidget?: { heading?: string | null; limit?: number | null; }; } /** * Cart-page FBT widget (specifications/06 D-W1-6/7). The cart is NEVER a * variable: `myCart` resolves from the request's session cookie server-side * — the only zero-variable cart entry (widget `variables` silently drop * anything that isn't a getWidgetSetting placeholder). Renders wherever it * is placed: myCart resolves on every frontStore route, and an empty/absent * cart resolves to nothing, so off-cart placements are harmless. After * hydration the shelf tracks the live cart through CartContext (optional — * placements above the provider stay static). */ export default function CartFrequentlyBoughtTogether({ shelf, recommendationWidget: { heading, limit } }: CartFrequentlyBoughtTogetherProps): React.JSX.Element; export declare const query = "\n query Query($limit: Int, $heading: String) {\n recommendationWidget(heading: $heading, limit: $limit) {\n heading\n limit\n }\n shelf: myCart {\n products: crossSellProducts(limit: $limit) {\n ...Product\n }\n }\n }\n"; export declare const fragments = "\n fragment Product on Product {\n productId\n name\n sku\n variantGroupId\n price {\n regular {\n value\n text\n }\n special {\n value\n text\n }\n }\n inventory {\n isInStock\n }\n image {\n alt\n url\n }\n url\n }\n"; export declare const variables = "{\n limit: getWidgetSetting(\"limit\"),\n heading: getWidgetSetting(\"heading\")\n}"; export {};