import type { QueryClient } from '@tanstack/react-query'; export interface SessionStreamEngineOptions { sessionId: string; queryClient: QueryClient; /** * Whether this session currently drives global, single-session UI state * (viewer tabs, tool approvals, secure input prompts). Background engines * keep the query caches fresh without touching that UI. */ isActive: () => boolean; } /** * Applies one session's SSE events to the React Query caches. Hook-free so a * stream can stay attached while its session runs in the background and no * chunks are lost while the user is viewing another session. * * Returns a cleanup function that detaches from the shared event stream. */ export declare function startSessionStreamEngine({ sessionId, queryClient, isActive, }: SessionStreamEngineOptions): () => void; //# sourceMappingURL=sessionStreamEngine.d.ts.map