import { SessionInterface } from './types'; /** * 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: SessionInterface): 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; /** * Deletes an array of sessions from storage. * * @param ids Array of session id's to delete */ deleteSessions?(ids: string[]): Promise; /** * Return an array of sessions for a given shop (or [] if none found). * * @param shop shop of the session(s) to return */ findSessionsByShop?(shop: string): Promise; } export { SessionStorage }; //# sourceMappingURL=session_storage.d.ts.map