export class Cart extends DataObject { constructor(initialData?: {}); getId(): any; /** * @returns {Array} */ getItems(): Array; /** * @param {string||int} productID * @param {int} qty * @param {object} context * @returns {Item} * @throws {Error} */ addItem(productID: any, qty: int, context: object): Item; /** * @param {string} uuid * @returns {Item} * @throws {Error} */ removeItem(uuid: string, context: any): Item; /** * @param {string} sku * @returns {Item} * @throws {Error} */ removeItemBySku(sku: string, context: any): Item; updateItemQty(uuid: any, qty: any, action: any, context: any): Promise; updateItemQtyBySku(sku: any, qty: any, action: any, context: any): Promise; createItem(productId: any, qty: any): Promise; getItem(uuid: any): Item | undefined; hasItemError(): boolean; exportData(): { errors: {}; }; } /** * No active cart has this id: none at all, the id is not a UUID, or the cart * is no longer active (its order was placed). A route answers 404 for it * (see `findCartByUUID`). The message is the one `getCart` always threw. */ export class CartNotFoundError extends Error { constructor(); } export class Item extends DataObject { getProduct(): Promise; getId(): any; getCart(): any; #private; } export function createNewCart(initialData: any): Promise; export function getCart(uuid: any): Promise; import { DataObject } from '../../../../modules/checkout/services/cart/DataObject.js';