/** * Common type definitions for the UI library */ /** * Session state information */ export interface SessionState { /** * Session label */ label: string; /** * Current status of the session */ status: 'ready' | 'running' | 'passed' | 'failed'; /** * Test statistics (if available) */ stats?: TestStats; /** * Timestamp of the last status update */ timestamp?: Date; } /** * Test statistics */ export interface TestStats { /** * Total number of tests */ tests: number; /** * Number of passing tests */ passes: number; /** * Number of failing tests */ failures: number; /** * Number of pending tests */ pending: number; /** * Duration in milliseconds (optional) */ duration?: number; } /** * Detailed test report */ export interface DetailedReport { /** * Raw report data from the reporter */ data: any; /** * Test statistics summary */ stats: TestStats; /** * Timestamp when the report was generated */ timestamp: Date; /** * Session label */ sessionLabel: string; /** * Size of the report in bytes (optional) */ size?: number; } /** * Combined report from multiple sessions */ export interface CombinedReport { /** * Timestamp when the report was generated */ generatedAt: string; /** * Summary statistics across all sessions */ summary: { totalTests: number; totalPasses: number; totalFailures: number; totalPending: number; totalSessions: number; successfulSessions: number; failedSessions: number; }; /** * Individual session reports */ sessions: Record; } export { UIOptions } from './ui/index';