@spartacus/core
Version:
Spartacus - the core framework
19 lines (18 loc) • 866 B
TypeScript
import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot } from '@angular/router';
import { WindowRef } from '../../window/window-ref';
import * as i0 from "@angular/core";
export declare class ExternalRoutesGuard implements CanActivate {
protected winRef: WindowRef;
protected platformId: Object;
constructor(winRef: WindowRef, platformId: Object);
/**
* Redirects to different storefront system for anticipated URL
*/
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean;
/**
* Redirects to anticipated URL using full page reload, not Angular routing
*/
protected redirect(_: ActivatedRouteSnapshot, state: RouterStateSnapshot): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ExternalRoutesGuard, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ExternalRoutesGuard>;
}