import { type ProjectConnectionState } from '../lib/event-stream'; export type ProjectConnectionStatus = 'connected' | 'reconnecting' | 'disconnected'; /** * Derives the user-facing connection status purely from the raw multiplexer * state. `attempt` counts consecutive failed connection attempts, so a fresh * connect (`connecting` with attempt 0) is healthy and shows nothing, while * accumulated failures escalate reconnecting -> disconnected. */ export declare function deriveProjectConnectionStatus(state: ProjectConnectionState): ProjectConnectionStatus; /** * Active-project connection controller. Subscribes to the multiplexed SSE * connection state, exposes a derived status plus a manual retry that runs * the full transport/authorization recovery path, and reconciles all * event-maintained project queries once per successful reconnect transition. */ export declare function useProjectConnection(): { state: ProjectConnectionState; status: ProjectConnectionStatus; retry: () => void; retryPending: boolean; }; //# sourceMappingURL=useProjectConnection.d.ts.map