import type { NextFunction, Request, Response } from 'express'; import type { AuthConfig } from '../config/AuthConfig.js'; import type { SessionManager } from '../session/SessionManager.js'; /** * Boots a {@link Session}, attaches it to `req.session`, persists it after the request. */ export declare class StartSession { private readonly sessionManager; private readonly config; /** * @param sessionManager - Session factory for the app. * @param config - Session config slice. */ constructor(sessionManager: SessionManager, config: AuthConfig['session']); /** * Express middleware entrypoint. */ handle(req: Request, res: Response, next: NextFunction): Promise; } //# sourceMappingURL=StartSession.d.ts.map