import { ReactNode } from 'react';
import { CartItemModel, ShoppingCart } from '../../api/cart-types';
export declare type ModularCartContextData = {
    shoppingCart: ShoppingCart;
    removeCartItem: (cartItem: CartItemModel) => void;
    changeCartItemQuantity: (cartItem: CartItemModel, newQuantity: number) => void;
    error: string;
    setError: (e: string) => void;
    promoCodesSupport: {
        onPromoCodeApplied: (promoCode: string) => Promise<void>;
        onPromoCodeCleared: () => Promise<void>;
        promoCodeErrorCode: string;
    };
};
export declare type CartRenderer = (cart: ModularCartContextData) => ReactNode;
//# sourceMappingURL=types.d.ts.map