import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http'; import { MessageService } from 'primeng/api'; import { Observable } from 'rxjs'; import { AppName } from '../models'; import { AuthService, ErrorMessageService, LoadingService, StorageService } from '../services'; import * as i0 from "@angular/core"; export declare class HttpInterceptorProvider implements HttpInterceptor { private storageService; private errorMessageService; private loadingService; private authService; private messageService; private environment; private appName; private activeRequests; private isRefreshing; private refreshTokenSubject; constructor(storageService: StorageService, errorMessageService: ErrorMessageService, loadingService: LoadingService, authService: AuthService, messageService: MessageService, environment: any, appName?: AppName | null); intercept(request: HttpRequest, next: HttpHandler): Observable>; private isRefreshTokenRequest; private getUrlWithoutParams; private addTokenIfPresent; private addModifierIdIfPresent; private addEncryptPasswordIfPresent; private addAccountUuidIfPresent; /** * Marca a origem da request pro backend: `x-client-platform: web` (+ `x-client` com o nome do * frontend), pro backend distinguir web de app nativo (ver helper IsFromApp() no VectioCargo.Shared). * * So nas chamadas do nosso backend; ignora URL externa (header `external-url`) e assets — nao * vaza o header p/ APIs de terceiros. Header e spoofavel: telemetria/roteamento/log, NAO * controle de seguranca. */ private addClientHeaders; private getClientName; private addContentType; private fixUrl; private isAuthRequest; private isProfilesRequest; private handle401Error; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }