import { SessionOptions } from './utils/interfaces'; import { BaseSession } from './BaseSession'; import { type SWCloseEvent } from './utils'; export declare class BaseJWTSession extends BaseSession { options: SessionOptions; /** * Can set a value different than zero to * force the JWT as expired within X seconds. * TODO: Remove this workaround. */ private readonly _expiredDiffSeconds; private readonly _refreshTokenNotificationDiff; /** * Check the JWT expiration every 20seconds */ private readonly _checkTokenExpirationDelay; private _checkTokenExpirationTimer; constructor(options: SessionOptions); get expiresAt(): number; get expiresIn(): number; get expired(): boolean; /** * Authenticate with the SignalWire Network * using JWT * @return Promise */ authenticate(): Promise; retrieveRelayProtocol(): Promise; persistRelayProtocol(): Promise; removeRelayProtocol(): void; removeSwAuthorizationState(): void; removePrevCallId(): void; /** * Reauthenticate with the SignalWire Network * using a newer JWT. If the session has expired * will reconnect it. * @return Promise */ reauthenticate(): Promise; protected _onSocketClose(event: SWCloseEvent): void; /** * Set a timer to dispatch a notification when the JWT is going to expire. * @return void */ protected _checkTokenExpiration(): Promise; } //# sourceMappingURL=BaseJWTSession.d.ts.map