UNPKG

@spartacus/storefront

Version:

Spartacus Storefront is a package that you can include in your application, which allows you to add default storefront features.

24 lines (23 loc) 1.24 kB
import { AuthService, OrderEntry, Product, WishListService } from '@spartacus/core'; import { Observable } from 'rxjs'; import { ICON_TYPE } from '../../../cms-components/misc/icon/icon.model'; import { CurrentProductService } from '../../product/current-product.service'; import * as i0 from "@angular/core"; export declare class AddToWishListComponent { protected wishListService: WishListService; protected currentProductService: CurrentProductService; protected authService: AuthService; product$: Observable<Product>; wishListEntries$: Observable<OrderEntry[]>; userLoggedIn$: Observable<boolean>; loading$: Observable<boolean>; hasStock: boolean; iconTypes: typeof ICON_TYPE; constructor(wishListService: WishListService, currentProductService: CurrentProductService, authService: AuthService); add(product: Product): void; remove(entry: OrderEntry): void; getProductInWishList(product: Product, entries: OrderEntry[]): OrderEntry; protected setStockInfo(product: Product): void; static ɵfac: i0.ɵɵFactoryDeclaration<AddToWishListComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<AddToWishListComponent, "cx-add-to-wishlist", never, {}, {}, never, never>; }