@commercetools-frontend/application-shell-connectors
Version:
Contains complementary tools for @commercetools-frontend/application-shell
13 lines (12 loc) • 888 B
TypeScript
declare const getSessionToken: () => string | null;
declare const setActiveSession: (sessionToken?: string) => void;
declare const clearSession: () => void;
declare const getActiveProjectKey: () => string | null;
declare const removeActiveProjectKey: () => void;
declare const setActiveProjectKey: (projectKey: string) => void;
declare const getSessionScope: () => string | null;
declare const setSessionScope: (scope: string) => void;
declare const getSessionState: <State extends {}>(stateId?: string) => State | null;
declare const setSessionState: <State extends {}>(stateId: string, state: State) => void;
declare const removeSessionState: (stateId?: string) => void;
export { getSessionToken, setActiveSession, clearSession, getSessionState, setSessionState, removeSessionState, getActiveProjectKey, setActiveProjectKey, removeActiveProjectKey, getSessionScope, setSessionScope, };