import { PalSession } from './models/session.model'; export declare class LocalstorageService { private _session; constructor(); /** * Check if user has a session stored * @returns True if the user session is set. */ hasSession(): boolean; /** * Gets the user session stored. * @return The user session or null if no session found. */ get session(): PalSession | null; /** * Sets the user session. * Otherwise, the credentials are only persisted for the current session. * @param session The user session. * @param remember True to remember credentials across sessions (default true). */ setSession(session?: PalSession, remember?: boolean): void; /** * Clears the user session. */ clear(): void; }