/**
 * Dashboard Data Hook
 *
 * Provides real-time data from MetricsCollector for the dashboard.
 * Updates periodically and exposes metrics, tools, providers, and errors.
 */
import { type DashboardState, type ToolMetrics, type ProviderMetrics, type ErrorRecord, type MetricPoint } from '../../../observability/dashboard.js';
export interface LatencyStats {
    avgDuration: number;
    p95: number;
    metTarget: number;
    totalOperations: number;
    avgFirstToken: number;
    byOperation: Map<string, {
        avg: number;
        count: number;
    }>;
}
export interface DashboardData {
    state: DashboardState;
    tools: ToolMetrics[];
    providers: ProviderMetrics[];
    errors: ErrorRecord[];
    latency: LatencyStats;
    tokenHistory: MetricPoint[];
    costHistory: MetricPoint[];
    responseTimeHistory: MetricPoint[];
    isConnected: boolean;
    lastUpdate: number;
}
export interface UseDashboardDataOptions {
    refreshInterval?: number;
    historyWindow?: number;
}
/**
 * Hook for accessing real-time dashboard data
 */
export declare function useDashboardData(options?: UseDashboardDataOptions): DashboardData;
export default useDashboardData;
