import React from 'react'; import type { SalesSdkBookingContextValue, SalesSdkCartContextValue, SalesSdkContextValue } from '../../../../salesSdk'; import type { SaleDetailCartItemsLayoutConfig } from '../../../types'; import './index.less'; declare type CartItemsCartContext = Partial>; interface CartItemsContext { cart: CartItemsCartContext; sales?: SalesSdkContextValue; booking?: SalesSdkBookingContextValue; } declare type CartItemCardAction = 'edit' | 'none' | ((item: any) => void | Promise); export interface CartItemsInteractionPolicy { cardAction?: CartItemCardAction; disabledEdit?: boolean; isShowRightActions?: boolean; showProductImage?: boolean; showRemoveButton?: boolean; } interface CartItemsProps { context: CartItemsContext; sales?: SalesSdkContextValue; className?: string; /** 标准布局配置,默认单列;columns > 1 时切为多列布局 */ layout?: SaleDetailCartItemsLayoutConfig; showEmpty?: boolean; emptyText?: React.ReactNode; interactionPolicy?: CartItemsInteractionPolicy; } export declare function CartItems({ context, sales, className, layout, showEmpty, emptyText, interactionPolicy, }: CartItemsProps): React.JSX.Element; export {};