import { FleetActivityGranularity, FleetActivityPoint, FleetActivityRange } from './types'; export interface FleetActivityResult { sessions: readonly FleetActivityPoint[]; aiEvents: readonly FleetActivityPoint[]; actionRuns: readonly FleetActivityPoint[]; granularity: FleetActivityGranularity; loading: boolean; error?: Error; refetch: () => void; } /** * Time-bucketed fleet activity (sessions started, AI tool events, action runs) * for the selected window. */ export declare function useFleetActivity(range: FleetActivityRange, enabled: boolean): FleetActivityResult; export interface AiRunsTodayResult { /** Null until the first result lands (or when the caller is not permitted). */ total: number | null; loading: boolean; error?: Error; refetch: () => void; } /** * Count of AI tool events recorded since local midnight — the "AI Runs Today" * KPI. Scoped server-side to the AiEvent entity only. */ export declare function useAiRunsToday(enabled: boolean): AiRunsTodayResult;