import { type AwarenessChangeEvent } from "../collab/awareness.js"; import { type AppSyncState } from "./poll.js"; export declare function canSeeAwarenessChangeForUser(change: Pick, userEmail: string, orgId: string | undefined): boolean; /** * Stream in-process poll events over SSE. * * This is the fast path for agent/tool/action writes that happen in the same * server process. The regular /poll endpoint remains the cross-process and * serverless cold-start fallback because it can detect DB timestamp changes * even when the write happened somewhere this EventEmitter could not see. * * Also forwards awareness change events (cursor/presence updates) so * connected peers receive cursor moves push-style instead of waiting for * the next poll cycle. Polling fallback keeps working — cursors degrade * gracefully to poll cadence without SSE. * * `state` defaults to the process-wide instance so self-hosted apps are * unchanged; the hosted gateway passes a per-app instance to fan out that * app's events (awareness stays on the process-global emitter and is a v0 * gateway Non-Goal). */ export declare function createPollEventsHandler(state?: AppSyncState): import("h3").EventHandlerWithFetch | Blob | FormData | ReadableStream | URLSearchParams | { error: string; }>>; //# sourceMappingURL=poll-events.d.ts.map