import { NextFunction, Request, Response } from "express"; import { ISessionStore } from "./ISessionStore"; import { IHealth } from "../health/IHealth"; import { NextHealthCheckStatus } from "../config/NextOptions"; export interface NextSessionIdResolver { (req: Request): Promise; } export declare class NextSessionOptions { enableForwardedHeader?: boolean; enableIPCheck?: boolean; resolveSessionId?: NextSessionIdResolver; ttl?: number; enableCookie?: boolean; } export declare class NextSessionBudget { id: string; data: any; } export declare class NextSessionManager implements IHealth { store: ISessionStore; options?: NextSessionOptions; constructor(store: ISessionStore, options?: NextSessionOptions); healthCheck(): Promise; retrieveSession(sessionId: string): Promise; destroySession(sessionId: string): Promise; setSession(sessionId: string, data: any): Promise; setSessionTTL(sessionId: string, ttl: number): Promise; use(req: Request & { session: any; sessionId: any; userAgent: any; sessionManager: any; }, res: Response, next: NextFunction): Promise; } //# sourceMappingURL=NextSessionManager.d.ts.map