/**
 * Minimal SSE wire-format helpers shared by every Server-Sent Events
 * stream in `cms-core` (preview updates and per-user notifications,
 * today). Kept dependency-free so any future stream can `import` it
 * without dragging in module state from sibling channels.
 *
 * A single source of truth here means a bug in the encoder is fixed
 * once, not in N parallel copies.
 */
/**
 * Encode a single SSE message. `event` is optional; when omitted the
 * default `message` event name is used (per the SSE spec). Multi-line
 * payloads are split across multiple `data:` lines so the receiving
 * `EventSource` reassembles them.
 *
 * The trailing blank line is the SSE event delimiter — DO NOT drop
 * it. Browsers will hold the event in their buffer until they see it.
 */
export declare function encodeSseEvent(data: unknown, event?: string): string;
//# sourceMappingURL=sse.d.ts.map