export interface AutomationSession { id: string; startTime: Date; endTime?: Date; status: 'active' | 'completed' | 'failed' | 'aborted'; metadata: { userAgent?: string; browserType: string; totalSteps: number; completedSteps: number; }; } /** * Manages automation sessions with lifecycle tracking */ export declare class SessionManager { private activeSessions; private sessionHistory; /** * Start a new automation session */ startSession(metadata?: Partial): string; /** * End an automation session */ endSession(sessionId: string, status?: 'completed' | 'failed' | 'aborted'): void; /** * Get active session by ID */ getSession(sessionId: string): AutomationSession | undefined; /** * Get all active sessions */ getActiveSessions(): AutomationSession[]; /** * Get session history */ getSessionHistory(limit?: number): AutomationSession[]; /** * Update session progress */ updateSessionProgress(sessionId: string, totalSteps: number, completedSteps: number): void; /** * Clean up old sessions from history */ cleanupSessions(maxAge?: number): void; } export declare const sessionManager: SessionManager;