/** * Dashboard Metrics - Real-time metrics visualization components * * Provides detailed metrics charts and statistics for exploration monitoring */ import React from 'react'; import type { ContainerStats, WorktreeExploration } from '../types/exploration.types.js'; interface MetricsHistory { cpu: number; memory: number; timestamp: number; } /** * Sparkline chart component for terminal */ export declare const Sparkline: React.FC<{ color?: string; data: number[]; height?: number; width: number; }>; /** * Calculate min, max, and range for data normalization. * * `max`/`min` always include 1/0 respectively as candidates, and `range` * falls back to 1 — both guard against a zero-width range (which would * otherwise divide-by-zero when normalising chart heights), even for * degenerate input like an all-zero or single-value data series. */ export declare function calculateDataRange(data: number[]): { max: number; min: number; range: number; }; /** * Resource usage gauge */ export declare const ResourceGauge: React.FC<{ label: string; max: number; unit: string; value: number; width?: number; }>; /** * Container metrics panel */ export declare const ContainerMetricsPanel: React.FC<{ history?: MetricsHistory[]; stats: ContainerStats; }>; /** * Exploration summary statistics */ /** * Aggregate per-worktree counters into the summary figures the stats panel * displays. `avgProgress` falls back to 0 (rather than NaN from a 0/0 * division) when `worktrees` is empty. */ export declare function computeExplorationStats(worktrees: WorktreeExploration[]): { avgProgress: number; completed: number; failed: number; pending: number; running: number; totalErrors: number; totalInsightsPublished: number; }; export declare const ExplorationStats: React.FC<{ decisionsCount: number; duration?: number; insightsCount: number; worktrees: WorktreeExploration[]; }>; /** * Timeline component showing stage progression */ export declare const StageTimeline: React.FC<{ worktree: WorktreeExploration; }>; /** * Comparison table for multiple worktrees */ export declare const WorktreeComparisonTable: React.FC<{ containerStats: Map; worktrees: WorktreeExploration[]; }>; export {}; //# sourceMappingURL=dashboard-metrics.d.ts.map