/** * Abstract class for SessionAdapter */ export class SessionAdapter { /** * @param {string} sessionId */ constructor(sessionId: string); _id: string; _data: {}; /** * @returns {string} */ id(): string; /** * Abstract method * * Reads the session to this.data * * @returns {Promise} */ read(): Promise; /** * Abstract method * * Writes session data stored in this.data to the session storage * * @returns {Promise} */ write(): Promise; /** * @param {string} key - The key may use the dot notation for accessing to * hierarchical properties * @returns {any} Returns undefined if the key is not present in the session */ get(key: string): any; /** * @param {string} key * @param {any} value * @returns {SessionAdapter} */ set(key: string, value: any): SessionAdapter; /** * @param {string} key * @returns {SessionAdapter} */ del(key: string): SessionAdapter; /** * @returns {SessionAdapter} */ clear(): SessionAdapter; }