import { GlobalMessageService, RoutingService } from '@spartacus/core'; import { CommonConfigurator, ConfiguratorRouter, ConfiguratorRouterExtractorService } from '@spartacus/product-configurator/common'; import { Observable } from 'rxjs'; import { ConfiguratorCartService } from '../../core/facade/configurator-cart.service'; import { ConfiguratorCommonsService } from '../../core/facade/configurator-commons.service'; import { ConfiguratorGroupsService } from '../../core/facade/configurator-groups.service'; import { Configurator } from '../../core/model/configurator.model'; import * as i0 from "@angular/core"; export declare class ConfiguratorAddToCartButtonComponent { protected routingService: RoutingService; protected configuratorCommonsService: ConfiguratorCommonsService; protected configuratorCartService: ConfiguratorCartService; protected configuratorGroupsService: ConfiguratorGroupsService; protected configRouterExtractorService: ConfiguratorRouterExtractorService; protected globalMessageService: GlobalMessageService; container$: Observable<{ routerData: ConfiguratorRouter.Data; configuration: Configurator.Configuration; hasPendingChanges: boolean; }>; constructor(routingService: RoutingService, configuratorCommonsService: ConfiguratorCommonsService, configuratorCartService: ConfiguratorCartService, configuratorGroupsService: ConfiguratorGroupsService, configRouterExtractorService: ConfiguratorRouterExtractorService, globalMessageService: GlobalMessageService); protected navigateToCart(): void; protected navigateToOverview(configuratorType: string, owner: CommonConfigurator.Owner): void; protected displayConfirmationMessage(key: string): void; /** * Performs the navigation to the corresponding location (cart or overview pages). * * @param {string} configuratorType - Configurator type * @param {CommonConfigurator.Owner} owner - Owner * @param {boolean} isAdd - Is add to cart * @param {boolean} isOverview - Is overview page * @param {boolean} showMessage - Show message */ performNavigation(configuratorType: string, owner: CommonConfigurator.Owner, isAdd: boolean, isOverview: boolean, showMessage: boolean): void; /** * Decides on the resource key for the button. Depending on the business process (owner of the configuration) and the * need for a cart update, the text will differ * @param {ConfiguratorRouter.Data} routerData - Reflects the current router state * @param {Configurator.Configuration} configuration - Configuration * @returns {string} The resource key that controls the button description */ getButtonResourceKey(routerData: ConfiguratorRouter.Data, configuration: Configurator.Configuration): string; /** * Triggers action and navigation, both depending on the context. Might result in an addToCart, updateCartEntry, * just a cart navigation or a browser back navigation * @param {Configurator.Configuration} configuration - Configuration * @param {ConfiguratorRouter.Data} routerData - Reflects the current router state */ onAddToCart(configuration: Configurator.Configuration, routerData: ConfiguratorRouter.Data): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }