import type { PatchOperation } from "./types.js"; /** A live-update source that frames pushed patches as SSE and exposes them as a `Response`. */ export interface MeissaUpdateSource { /** Push a patch notification for `target` to every connected client. */ push(target: string, patches: PatchOperation[]): void; /** End the stream (lets the client's `EventSource` reconnect). */ close(): void; /** The `Response` to return from a route handler / server endpoint. */ toResponse(): Response; } /** * Create an SSE-backed source for pushing `notifications/meissa/update` messages * (see spec/09-mcp-integration.md §6). Framework-agnostic — built on the Web * Streams API, so `toResponse()` works unmodified in Next.js Route Handlers, Bun, * Deno, and Cloudflare Workers. */ export declare function createUpdateStream(): MeissaUpdateSource;