import { CustomSession, ISessionStoreAdapter, Session } from "../types"; interface MockSessionAdapterOptions { } /** * A Mock Session Adapter conforming to the `ISessionStoreAdapter` interface. * Fully working. Useful to write tests. * * Notice also how this adapter is fully synchronous even if it is being called * as if it was async by the customSession plugin, and that it does not break * the `ISessionStoreAdapter` interface. */ export declare class MockSessionAdapter implements ISessionStoreAdapter { private mockSessionStore; private options; private getUniqId; constructor(options: MockSessionAdapterOptions); setUniqIdGenerator(uniqIdGenerator: () => string): void; createSession(sessionData: CustomSession, expiresAt: Date | null, metas: { detectedIPAddress?: string | undefined; detectedUserAgent: string; }): Session; readSessionById(sessionId: string): Session | null; updateSessionById(sessionId: string, session: Session): boolean; deleteSessionById(sessionId: string): boolean; /** * Utilities functions to make testing easier. * ! Not part of the `ISessionStoreAdapter` interface ! */ /** * Empty the sessions store. This remove all the sessions. */ clear(): void; } export {};