// token-analyzer-ui: aggregate token/cost analytics types.
export interface AnalyticsSummary {
  total_input_tokens: number;
  total_output_tokens: number;
  total_cost: number;
  session_count: number;
}

export interface SessionAnalyticsRow {
  session_id: string;
  session_name: string;
  total_input_tokens: number;
  total_output_tokens: number;
  total_cost: number;
  last_active_at: string | null;
}

export interface ContextWindowStats {
  avg_ctx_used: number | null;
  avg_ctx_max: number | null;
  avg_utilization_pct: number | null;
  message_count: number;
}

export interface TokenBreakdownAgg {
  category: string;
  total_tokens: number;
}
