interface CartLineItem {
id: string;
quantity: number;
productID: string;
product: Product | null;
variantID: string;
variant: ProductVariant | null;
attributes: Record<string, string>;
totalAmount: number;
subtotalAmount: number;
properties: Record<string, string>;
requiresShipping: boolean;
weight: number;
weightUnit: string;
}
interface Cart {
lineItems: CartLineItem[];
attributes: Record<string, string>;
currency: string;
note: string;
subtotalAmount: number;
totalAmount: number;
totalDiscount: number;
checkoutChargeAmount: number;
itemsSubTotalAmount: number;
itemCount: number;
getTotalWeight(unit?: string | null): object;
}
type CartOperation = object;