UNPKG

thebe-core

Version:

Typescript based core functionality for Thebe

23 lines (22 loc) 1.15 kB
import type { SavedSessionInfo, SavedSessionOptions, ServerSettings } from './types'; export declare function removeServerInfo(storageKey: string): void; export declare function updateLastUsedTimestamp(storageKey: string): void; export declare function saveServerInfo(storageKey: string, id: string, serverSettings: Required<ServerSettings>): void; export declare function getExistingServer(savedSessionOptions: Required<SavedSessionOptions>, storageKey: string): Promise<SavedSessionInfo | null>; /** * Remove all saved sessions items from local storage based on the storagePrefix provided. * The appropriate (default) storage prefix will be available in the SavedSessionOptions object * in the Config object. * * @param storagePrefix */ export declare function clearAllSavedSessions(storagePrefix?: string): void; /** * Remove all saved sessions items from local storage based on the storagePrefix provided. * The appropriate (default) storage prefix will be available in the SavedSessionOptions object * in the Config object. * * @param storagePrefix * @param url */ export declare function clearSavedSession(storageKey: string): void;