import type { ReactElement } from 'react'; import type { SEOMetadata } from '@farfetch/blackout-client'; import type { StructuredProductData } from '../types/index.js'; /** * Generate Structured Data (JSON-LD) for Product Details. * * @example * ``` * import { structuredProduct } from '@farfetch/blackout-react'; * * * {structuredProduct( * product, * metadata, * lastCategory, * url, * seller, * 2) * } * * * ``` * * @param product - All details data for the current Product. * @param metadata - All SEO metadata for the current Product. * @param lastCategory - Last category name. * @param url - Relative url of the product (location.pathname). * @param seller - Seller name for this particular product. * @param space - Add whitespace and indentation to the serialized output. * * @returns - A script tag with Product JSON-LD structured data. */ declare const structuredProduct: (product: StructuredProductData, metadata: SEOMetadata, seller: string, space?: number) => ReactElement; export default structuredProduct;