UNPKG

@spartacus/storefront

Version:

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

20 lines (19 loc) 1.33 kB
import { CanActivate, Router, UrlTree } from '@angular/router'; import { Observable } from 'rxjs'; import { CartValidationService, SemanticPathService, GlobalMessageService, ActiveCartService, CartConfigService } from '@spartacus/core'; import { CartValidationStateService } from '../cart-validation-state.service'; import * as i0 from "@angular/core"; export declare class CartValidationGuard implements CanActivate { protected cartValidationService: CartValidationService; protected semanticPathService: SemanticPathService; protected router: Router; protected globalMessageService: GlobalMessageService; protected activeCartService: ActiveCartService; protected cartValidationStateService: CartValidationStateService; protected cartConfigService: CartConfigService; constructor(cartValidationService: CartValidationService, semanticPathService: SemanticPathService, router: Router, globalMessageService: GlobalMessageService, activeCartService: ActiveCartService, cartValidationStateService: CartValidationStateService, cartConfigService: CartConfigService); protected GLOBAL_MESSAGE_TIMEOUT: number; canActivate(): Observable<boolean | UrlTree>; static ɵfac: i0.ɵɵFactoryDeclaration<CartValidationGuard, never>; static ɵprov: i0.ɵɵInjectableDeclaration<CartValidationGuard>; }