import { EventEmitter } from '@angular/core'; import { AddToCart } from '../classes/addtocart'; import { Cart } from '../classes/cart'; import { LifeCycleService } from './lifecycle.service'; import { XHRHTTPService } from './xhrhttp.service'; import * as i0 from "@angular/core"; export declare class CartService { private config; private xhrhttpService; private lifecycleService; cartshown: EventEmitter; cartloading: EventEmitter; cart: EventEmitter; cartLocal: Cart; constructor(config: any, xhrhttpService: XHRHTTPService, lifecycleService: LifeCycleService); /** * * @description emits true to the minicart observable * @memberof CartService */ showMiniCart(): void; /** * * @description emits false to the minicart observable * @memberof CartService */ hideMiniCart(): void; /** * * @description runs /cart/clear.js, and emits a clean cart to the cart observable * @memberof CartService */ clearCart(): void; /** * * @description update the quantity of a variantId in the cart * @memberof CartService */ updateQuantity(variantId: number, quantity: number): Promise; /** * * @description fetch the latest cart * @memberof CartService */ getCart(): Promise; /** * * @description add an item to cart * @environment if environment.minicart is set to true, Show minicart will fire while the request is running * @memberof CartService */ addToCart(addToCart: AddToCart): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } //# sourceMappingURL=cart.service.d.ts.map