import { Price } from "./price"; import { Item, ItemType } from "./item"; import { Product } from "./product"; import { Promotion } from "./promotion"; import { ItemQuantityError } from "./itemQuantityError"; type CartOptions = { items: Item[]; storeId: number; warehouseId: number; locationId: number; status: "OK" | "IN_PROGRESS"; }; declare class Cart { private _items; readonly storeId: number; readonly warehouseId: number; readonly locationId: number; readonly status: "OK" | "IN_PROGRESS"; constructor({ items, storeId, warehouseId, status, locationId, }: CartOptions); get items(): Item[]; get total(): number; get subtotal(): number; removeItem(id: number | string): void; addItem(item: Item): void; static from({ items, storeId, warehouseId, status, locationId }: any): Cart; static fromShopCart({ carts, storeId, warehouseId, status, locationId, }: any): Cart; toJSON(): { items: { id: string | number; warehouseId: number; type: ItemType; name: string; stock: number; quantity: number; image: string; medium: string; packagingType: string; minQuantity: number; multipleQuantity: number; total: number; subtotal: number; maxQuantity: number | undefined; maximumQuantity: number | undefined; regularPrice: number; discountedPrice: number | undefined; }[]; storeId: number; warehouseId: number; status: "OK" | "IN_PROGRESS"; locationId: number; total: number; subtotal: number; news: never[]; }; } export { Price, Item, Product, Promotion, Cart, CartOptions, ItemQuantityError, };