import type { SessionEvent } from '../types/session.js'; export interface QueryFilter { eventTypes?: string[] | undefined; toolNames?: string[] | undefined; timeRange?: { start: string; end: string; } | undefined; } export interface ToolInvocation { ts: string; name: string; input: unknown; output?: unknown | undefined; error?: string | undefined; durationMs: number; } export interface SessionError { ts: string; phase: string; message: string; } export interface ModeChange { ts: string; from: string; to: string; } export interface TaskSummary { taskId: string; title: string; status: string; createdAt: string; completedAt?: string | undefined; } export interface SessionAnalysis { sessionId: string; totalDuration: number; toolUsageCount: Record; errorCount: number; modeChanges: ModeChange[]; tasks: TaskSummary[]; } export declare class SessionAnalyzer { analyze(events: SessionEvent[]): SessionAnalysis; query(events: SessionEvent[], filter: QueryFilter): SessionEvent[]; private calcDuration; } //# sourceMappingURL=session-analyzer.d.ts.map