@spartacus/storefront
Version:
Spartacus Storefront is a package that you can include in your application, which allows you to add default storefront features.
18 lines (17 loc) • 856 B
TypeScript
import { CanActivate, Router, UrlTree } from '@angular/router';
import { SemanticPathService } from '@spartacus/core';
import { Observable } from 'rxjs';
import { OrderCancellationService } from './order-cancellation.service';
import * as i0 from "@angular/core";
/**
* @deprecated since 4.2 - use order lib instead
*/
export declare class OrderCancellationGuard implements CanActivate {
protected orderAmendService: OrderCancellationService;
protected semanticPathService: SemanticPathService;
protected router: Router;
constructor(orderAmendService: OrderCancellationService, semanticPathService: SemanticPathService, router: Router);
canActivate(): Observable<boolean | UrlTree>;
static ɵfac: i0.ɵɵFactoryDeclaration<OrderCancellationGuard, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<OrderCancellationGuard>;
}