import React from 'react'; import ProductCardSkeleton from './ProductCardSkeleton'; import { ProductCardConfig as SkuCardAllConfig } from './SkuCard/type'; import './index.less'; declare type BoolConfigVal = 0 | 1; export interface ProductCardConfig { isProductCover?: BoolConfigVal; imgWidth?: string; imgHeight?: string; coverTextFontSize?: number | string; skuCardPaddingX?: number; skuCardPaddingY?: number; radius?: number; isTitle?: BoolConfigVal; isSubtitle?: BoolConfigVal; showSpec?: boolean; isTag?: BoolConfigVal; isPrice?: BoolConfigVal; isOriginPrice?: BoolConfigVal; showZeroPrice?: boolean; showMarketingTag?: boolean; showRemark?: boolean; isStock?: BoolConfigVal; layoutDirection?: 'row' | 'column'; gap?: number; rightStyle?: React.CSSProperties; } export interface ProductCardProps { item: any; index: number; context?: { onItemIntersectionIn: (item: any) => void; onItemIntersectionOut: (item: any) => void; }; className?: string; onSelectProduct?: (item: any) => void; currentProductId?: number; onSelect?: (item: any) => void; onSelectCover?: (item: any) => void; onSelectInfo?: (item: any) => void; isSelected?: boolean; decorateConfig?: ProductCardConfig; /** 场景类型:决定渲染卡片样式 */ scenario?: 'booking2' | 'default'; customSkuCardAllConfig?: SkuCardAllConfig; } export declare const ProductCard: React.MemoExoticComponent<({ item, index, context, onSelect, onSelectCover, onSelectInfo, isSelected, className, decorateConfig, scenario, customSkuCardAllConfig, }: ProductCardProps) => React.JSX.Element>; export declare const DefaultItemContent: React.MemoExoticComponent<(props: { item: any; index: number; context?: { onItemIntersectionIn: (item: any) => void; onItemIntersectionOut: (item: any) => void; } | undefined; }) => React.JSX.Element>; export default ProductCard; export { ProductCardSkeleton };