import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
import { Observable } from 'rxjs';
import { NzNotificationService } from 'ng-zorro-antd/notification';
import { TranslateService } from '@ngx-translate/core';
import { IdentityService } from '../service/identity.service';
/**
 * the interceptor for IdentityServer
 */
export declare class IdentityInterceptor implements HttpInterceptor {
    private identityService;
    private nzNotificationService;
    private translateService;
    constructor(identityService: IdentityService, nzNotificationService: NzNotificationService, translateService: TranslateService);
    intercept(httpRequest: HttpRequest<any>, httpHandler: HttpHandler): Observable<HttpEvent<any>>;
    /**
     * handle authentication/authorization error
     * @param response the response
     */
    private handleError;
}
