import type { StorageService } from './storage/types'; import type { SessionService } from './types'; /** * Default implementation for the {@link SessionService}. */ export declare class DefaultSessionService implements SessionService { protected storageService: StorageService; protected ttlMs: number; /** Session id key to use as a key in the storage. */ static readonly SESSION_ID_KEY = "session-id"; /** Global instance of the {@link SessionService}. */ static instance: SessionService; constructor(storageService?: StorageService, ttlMs?: number); /** * Returns the session id of the storage. * * @returns The current session id. */ getSessionId(): string; /** * Removes the session if from the storage. */ clearSessionId(): void; }