import { ComponentClass } from 'react'; import { CommerceTypes, FetchDataFunction, WithCommerceProps, WithCommerceProviderProps, WithReviewProps, WithReviewState } from '@brandingbrand/fscommerce'; export declare type CommerceToReviewMapFunction = (product: T) => string; export interface WithProductDetailProviderProps extends WithCommerceProviderProps, WithReviewProps { commerceToReviewMap: string | CommerceToReviewMapFunction; } export declare type WithProductDetailProps = WithCommerceProps & WithReviewState; export declare type WithProductDetailState = Pick, 'commerceData'>; export declare type ProductDetailWrapper = (WrappedComponent: ComponentClass

>) => ComponentClass

>; export default function withProductDetailData(fetchProduct: FetchDataFunction, fetchReview: Function): ProductDetailWrapper;