import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpErrorResponse } from "@angular/common/http";
import { Router } from "@angular/router";
import { Observable } from "rxjs";
import { Error } from "../../shared/data/error";
export declare class TokenInterceptor implements HttpInterceptor {
    router: Router;
    static TOKEN: string;
    constructor(router: Router);
    intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
    buildError(error: HttpErrorResponse, textCA: string, textES: string): Error;
    static setToken(token: string): void;
    static removetoken(): void;
}
