import type { Action } from '@evlop/commons'; import type { ShopifyProduct } from './ShopifyProduct'; import type { ShopifyProductVariant } from './ShopifyProductVariant'; export interface WishlistItemActions { remove: Action; } export interface WishlistItem { /** Loaded product instance (undefined until the products finish loading). */ product?: ShopifyProduct; /** Loaded variant instance (undefined until the products finish loading). */ variant?: ShopifyProductVariant; actions: WishlistItemActions; } export interface Wishlist { /** Wishlist entries, each carrying its loaded product/variant and a remove action. */ items: WishlistItem[]; /** The exact products data returned by the `shopify-products` data source. */ products: ShopifyProduct[]; /** Whether the given product id is in the wishlist. */ has(productId: string): boolean; } export default Wishlist; //# sourceMappingURL=Wishlist.d.ts.map