/** * StatsContext * * Provides server/source statistics to components consuming the Stats tab. * Extracted from HealthContext in v2.11.x. */ import { type ReactNode } from 'react'; import type { HealthFactors, RecentError, ServerStats, SourceStats, UpdateEvent } from '../../../core/stats/index.js'; export interface StatsContextValue { serverStats: ServerStats; sourceStats: SourceStats[]; statsRecentUpdates: Array; statsRecentErrors: RecentError[]; healthFactors: HealthFactors; reloadStats: () => void; } export declare function StatsProvider({ children, value }: { children: ReactNode; value: StatsContextValue; }): React.ReactElement; export declare function useStatsContext(): StatsContextValue; //# sourceMappingURL=stats-context.d.ts.map