import { ServerStats, StatsBarProps } from '../../core/types.js'; export interface StatsHistory { [key: string]: number[]; } /** * React hook for SSE subscription to server stats. * * Connects to Transmit SSE for real-time updates, maintains a history * of the last 60 values per metric, and falls back to polling if SSE * is unavailable. */ export declare function useServerStats(options?: StatsBarProps): { readonly stats: ServerStats | null; readonly history: Record; readonly getHistory: (key: string) => number[]; readonly isConnected: boolean; readonly isStale: boolean; readonly error: Error | null; readonly unauthorized: boolean; };