import { SseConfig, SseHandle } from './types.js'; import * as React from "react"; export type { SseConfig, SseConnected, SseEnvelope, SseHandle, } from './types.js'; export declare const SseContext: React.Context; /** * Reads the enclosing Boundary's SSE handle; `null` when the App was * configured without an `sse` endpoint. * * @internal */ export declare function useSse(): null | SseHandle; /** * Per-Boundary SSE connection, mounted automatically by `` when * the App is configured with an `sse` endpoint. Owns the connection * lifecycle end to end: it connects on mount, disconnects on unmount, * rides `EventSource`'s automatic reconnection (re-reading the client id * and re-applying tag mutations after every reconnect), and re-dispatches * validated incoming envelopes into the Boundary as ordinary broadcasts. * * The handle it provides through {@link SseContext} is what `dispatch` * uses to publish omnicast actions to the wire; without a config the * context stays `null` and omnicast dispatches degrade to plain * broadcasts. * * @internal */ export declare function Sse({ config, children, }: { config?: SseConfig; children: React.ReactNode; }): React.ReactElement;