/** * Session management for Grok CLI */ import type { Session, ChatMessage, GrokConfig } from '../types'; import { HistoryManager } from './history'; /** * Session manager handles conversation sessions and transcripts */ export declare class SessionManager { private currentSession; private config; private historyManager; constructor(config: GrokConfig); /** * Create a new session */ createSession(cwd?: string): Promise; /** * Load an existing session */ loadSession(sessionId: string): Promise; /** * Get current session */ getCurrentSession(): Session | null; /** * Add message to current session */ addMessage(message: ChatMessage): Promise; /** * Save current session */ saveSession(): Promise; /** * Get transcript file path for session */ private getTranscriptPath; /** * Append record to transcript file */ private appendToTranscript; /** * Update session configuration */ updateConfig(config: GrokConfig): void; /** * List recent sessions */ getRecentSessions(limit?: number): Promise; /** * Continue from the last conversation */ continueLastConversation(): Promise; /** * Continue from a specific session */ continueFromSession(sessionId: string): Promise; /** * Save current session to history */ saveToHistory(): Promise; /** * Search conversation history */ searchHistory(query: string, limit?: number): Promise; /** * Get history statistics */ getHistoryStatistics(): Promise<{ totalConversations: number; totalMessages: number; oldestConversation: Date | null; newestConversation: Date | null; avgMessagesPerConversation: number; }>; /** * Delete a conversation from history */ deleteFromHistory(sessionId: string): Promise; /** * Get history manager instance */ getHistoryManager(): HistoryManager; } //# sourceMappingURL=session.d.ts.map