/** Interface for storing sessions. */ export interface SessionStorage { /** Store session information */ save(data: U): Promise; /** Retrieve session information */ retrieve(): Promise; } /** Stores session information in memory */ export declare class MemorySessionStorage implements SessionStorage { #private; /** * Store session information. * @param {U} data The session information to store * @return {Promise} */ save(data: U): Promise; /** * Retrieve session information. * @return {Promise} The session information */ retrieve(): Promise; /** * Constructor. * @param {U?} data The initial data */ constructor(data?: U); } /** Stores session information in a JSON file */ export declare class JsonFileSessionStorage implements SessionStorage { #private; /** * Store session information. * @param {U} data The session information to store * @return {Promise} */ save(data: U): Promise; /** * Retrieve session information. * @return {Promise} The session information */ retrieve(): Promise; /** * Constructor. * @param {string} filePath The file path to use for storage */ constructor(filePath: string); }