@spartacus/core
Version:
Spartacus - the core framework
20 lines (19 loc) • 1.1 kB
TypeScript
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
import { Observable } from 'rxjs';
import { CurrencyService } from '../../../site-context/facade/currency.service';
import { LanguageService } from '../../../site-context/facade/language.service';
import { OccEndpointsService } from '../../services/occ-endpoints.service';
import { SiteContextConfig } from '../../../site-context/config/site-context-config';
import * as i0 from "@angular/core";
export declare class SiteContextInterceptor implements HttpInterceptor {
private languageService;
private currencyService;
private occEndpoints;
private config;
activeLang: string;
activeCurr: string;
constructor(languageService: LanguageService, currencyService: CurrencyService, occEndpoints: OccEndpointsService, config: SiteContextConfig);
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
static ɵfac: i0.ɵɵFactoryDeclaration<SiteContextInterceptor, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<SiteContextInterceptor>;
}