import type { SyncEvent } from "./contfu.js"; export type RuntimeIntegrationState = "disabled" | "connecting" | "syncing" | "connected" | "error"; export type RuntimeStatus = { state: RuntimeIntegrationState; reason: string | null; }; export type RuntimeDataChangedKind = "item" | "schema" | "unknown"; export type RuntimeNotification = { type: "runtime-status"; state: RuntimeIntegrationState; reason: string | null; ts: number; } | { type: "data-changed-batch"; count: number; kinds: RuntimeDataChangedKind[]; windowMs: number; ts: number; }; export type RuntimeEventMonitor = { getStatus(): RuntimeStatus; subscribe(subscriber: (event: RuntimeNotification) => void): () => void; start(): void; }; export declare function createRuntimeEventMonitor(events: AsyncIterable): RuntimeEventMonitor;