import {Session} from './session'; /** * Defines the strategy to be used to store sessions for the Shopify App. */ interface SessionStorage { /** * Creates or updates the given session in storage. * * @param session Session to store */ storeSession(session: Session): Promise; /** * Loads a session from storage. * * @param id Id of the session to load */ loadSession(id: string): Promise; /** * Deletes a session from storage. * * @param id Id of the session to delete */ deleteSession(id: string): Promise; } export {SessionStorage};