import { NextFunction } from "express"; import { Socket } from 'socket.io'; export declare type DBTypes = "mongodb" | "couchdb" | "tingodb" | "redis" | "memcached" | "inmemory" | "elasticsearch"; export declare class ISerializerConfig { store: { type: DBTypes; host?: string; port?: number; dbName?: string; collectionName?: string; timeout?: number; authSource?: string; username?: string; password?: string; url?: string; dbPath?: string; prefix?: string; }; session: { secret: string; resave: boolean; saveUninitialized: boolean; cookie: { maxAge: number; key: string; domain: string; }; }; } export declare class SessionSerializer { private store; middleware: any; socketSession: (socket: Socket, next: NextFunction) => void; constructor(config: ISerializerConfig); private createStore; private createSession; }