import { Options } from '../internal/resolveValue.ts'; import { Observer } from '../Observer/Observer.ts'; /** * Session-storage-backed state management. * Data persists only for the duration of the page session (until the tab is closed). */ export declare class SessionState extends Observer { static get(key: string, options: Options & { strict: true; }): T; static get(key: string, options: Options & { fallback: T; }): T; static get(key: string, options?: Options): T | undefined; /** * Stores a value in session storage. * Always JSON-serialises (see LocalState.set for the rationale). */ static set(key: string, value: T): void; static remove(key: string): void; static clear(): void; static has(key: string): boolean; }