import { HttpClient } from '@angular/common/http'; import { GlobalService } from 'meteorite-core'; import { ConsoleLoggerService } from 'meteorite-shared'; import * as i0 from "@angular/core"; export declare class MeteoriteCartService { private http; private globalService; v1: string; console: ConsoleLoggerService; cid: string; checkout: { id: string; discountSum: number; coupons: any[]; cart: { id: string; customer_id: number; line_items: { physical_items: any[]; digital_items: any[]; custom_items: any[]; gift_certificates: any[]; }; coupons: any[]; }; }; constructor(http: HttpClient, globalService: GlobalService); /** Retreives current cart and updates local cart state */ fetchCheckout(cid?: string, saveCid?: boolean): Promise; /** Should be called any time checkout or cart are modified to process its changes */ processCheckout(checkout: any, saveCid?: boolean): Promise; /** Save checkout id persistently */ saveCid(cid?: string): void; updateCart(cart: any): Promise; getCheckout(checkoutId?: string): Promise; /** Adds line items to cart */ addItems(products: any[], cid?: string): Promise; /** Removes a single line item by ID */ removeItem(itemId: string, cid?: string, refresh?: boolean): Promise; /** Update quantity and list_price of a line item * note: currently, custom_items cannot be updated via BC API, so we have to delete and re-add (this is kinda buggy) */ updateItem(item: any, qty?: any, list_price?: any, cid?: string): Promise; addCoupon(cid: string, couponCode: any): Promise; removeCoupon(cid: string, couponCode: any): Promise; /** Duplicates a cart and returns it */ dupCart(cid?: string): Promise; loadCart(cid: string): Promise; requestQuote(): void; static ɵfac: i0.ɵɵFactoryDef; static ɵprov: i0.ɵɵInjectableDef; } //# sourceMappingURL=meteorite-cart.service.d.ts.map