import { Http, Response, RequestOptionsArgs, RequestOptions, ConnectionBackend } from '@angular/http'; import { Observable, BehaviorSubject } from 'rxjs/Rx'; import 'rxjs/operator/map'; import 'rxjs/operator/filter'; import 'rxjs/operator/catch'; import { KeycloakAuthorization } from '../services/keycloak.auth.service'; import { Keycloak } from '../services/keycloak.core.service'; /** * An Angular http proxy supporting Keycloak auth & authz. * Authenticate user, manage tokens and add authorization header to access to remote Keycloak protected resources. */ export declare class KeycloakHttp extends Http { private keycloakAuth; private keycloak; static readyBehaviourSubject: BehaviorSubject; static readyObs: Observable; private MAX_UNAUTHORIZED_ATTEMPTS; constructor(backend: ConnectionBackend, defaultOptions: RequestOptions, keycloakAuth: KeycloakAuthorization, keycloak: Keycloak); get(url: string, options?: RequestOptionsArgs): Observable; post(url: string, body: string, options?: RequestOptionsArgs): Observable; put(url: string, body: string, options?: RequestOptionsArgs): Observable; delete(url: string, options?: RequestOptionsArgs): Observable; patch(url: string, body: string, options?: RequestOptionsArgs): Observable; head(url: string, options?: RequestOptionsArgs): Observable; private configureRequest(url, count, options?); private setHeaders(options?); }