export class SessionMock { /** * @param {string} sessionId * @param {object} data */ constructor(sessionId: string, data: object); adapter: SessionAdapterMock; /** * @returns {Promise} */ read(): Promise; /** * @returns {Promise} */ write(): Promise; /** * See SessionAdatper.get() * * @param {...*} args */ get(...args: any[]): any; /** * See SessionAdapter.set() * * @param {...*} args * @returns {Session} */ set(...args: any[]): Session; /** * See SessionAdapter.del() * * @param {...*} args * @returns {Session} */ del(...args: any[]): Session; /** * See SessionAdapter.clear() * * @param {...*} args * @returns {Session} */ clear(...args: any[]): Session; } import { SessionAdapterMock } from "./SessionAdapterMock";