import { Observable, BehaviorSubject } from 'rxjs'; import { NbTokenStorage } from './token-storage'; import { NbAuthToken } from './token'; import * as i0 from "@angular/core"; /** * Service that allows you to manage authentication token - get, set, clear and also listen to token changes over time. */ export declare class NbTokenService { protected tokenStorage: NbTokenStorage; protected token$: BehaviorSubject; constructor(tokenStorage: NbTokenStorage); /** * Publishes token when it changes. * @returns {Observable} */ tokenChange(): Observable; /** * Sets a token into the storage. This method is used by the NbAuthService automatically. * * @param {NbAuthToken} token * @returns {Observable} */ set(token: NbAuthToken): Observable; /** * Returns observable of current token * @returns {Observable} */ get(): Observable; /** * Removes the token and published token value * * @returns {Observable} */ clear(): Observable; protected publishStoredToken(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }