import { AutoEncoder } from '@simonbackx/simple-encoding'; import { Webshop } from './Webshop.js'; import { CartItem } from './CartItem.js'; export declare class Cart extends AutoEncoder { items: CartItem[]; clear(): void; addItem(item: CartItem, allowMerge?: boolean): void; removeItem(item: CartItem): void; replaceItem(old: CartItem, item: CartItem): void; /** * @deprecated * Be careful when to use the price with and without discounts */ get price(): number; get priceWithDiscounts(): number; get priceWithoutDiscounts(): number; get count(): number; get persons(): number; /** * Refresh all items with the newest data, throw if something failed (at the end) */ refresh(webshop: Webshop): void; validateUitpasNumbers(): void; validate(webshop: Webshop, asAdmin?: boolean): void; } //# sourceMappingURL=Cart.d.ts.map