import type { ISessionInfo, ISessionInfoManager, ISessionInternalInfo, ISessionInfoManagerOptions, IStorageUtility, AuthorizationRequestState } from ".."; export declare function getUnauthenticatedSession(): ISessionInfo & { fetch: typeof fetch; }; /** * @param sessionId * @param storage * @hidden */ export declare function clear(sessionId: string, storage: IStorageUtility): Promise; /** * @hidden */ export declare abstract class SessionInfoManagerBase implements ISessionInfoManager { protected storageUtility: IStorageUtility; constructor(storageUtility: IStorageUtility); update(_sessionId: string, _options: ISessionInfoManagerOptions): Promise; set(_sessionId: string, _sessionInfo: Partial): Promise; get(_: string): Promise<(ISessionInfo & ISessionInternalInfo) | undefined>; getAll(): Promise<(ISessionInfo & ISessionInternalInfo)[]>; /** * This function removes all session-related information from storage. * @param sessionId the session identifier * @hidden */ clear(sessionId: string): Promise; /** * Registers a new session, so that its ID can be retrieved. */ register(_sessionId: string): Promise; /** * Returns all the registered session IDs. Differs from getAll, which also * returns additional session information. */ getRegisteredSessionIdAll(): Promise; /** * Deletes all information about all sessions, including their registrations. */ clearAll(): Promise; /** * Sets authorization request state in storage for a given session ID. */ setOidcContext(_sessionId: string, _authorizationRequestState: AuthorizationRequestState): Promise; }