/**
 * @packageDocumentation
 * @module authorization
 */
import { HttpClient } from '@angular/common/http';
import { OnDestroy } from '@angular/core';
import { Observable } from 'rxjs';
export interface AuthorizationState {
    idToken?: string;
    refreshToken?: string;
    authUrl?: string;
    state?: string;
    logoutUrl?: string;
}
export declare class AuthorizationStateService implements OnDestroy {
    private readonly http;
    private readonly idTokenKey;
    private readonly refreshTokenKey;
    private readonly codeKey;
    private readonly apiTokenLogin;
    private readonly apiTokenCallback;
    private readonly apiRefreshToken;
    private readonly apiTokenInfo;
    private readonly destroy$$;
    private readonly refreshToken$$;
    private readonly state$;
    private checkTokenCache;
    private refreshTokenCache$;
    stateSnapshot: AuthorizationState;
    constructor(http: HttpClient, idTokenKey: string, refreshTokenKey: string, codeKey: string, apiTokenLogin: string, apiTokenCallback: string, apiRefreshToken: string, apiTokenInfo: string);
    logout(specificUrl?: boolean): void;
    logoutAudit(): Observable<Object>;
    redirectToUrl(href?: string): void;
    refreshToken(): Observable<string>;
    checkToken(token: string): Observable<unknown>;
    getToken(): Observable<string>;
    getTokenPayload<T>(): Observable<T>;
    /** @ignore */
    ngOnDestroy(): void;
    private getAuthConfiguration;
    private getExistedToken;
    private getTokenFromLocal;
    private getTokenByRefreshToken;
    private getTokenByCode;
    private getParams;
    private replaceRedirectUrl;
}
