import { IWsClient, IWsClientOptions } from './ws.type'; /** * Framework-agnostic EAERA CMS WebSocket client. * * Implements the protocol documented in * `eaera-docs/cbs/eaera-cms/docs/eaera-cms-websocket-integration-guide.md`: * open → auth → subscribe → events/heartbeats/action invocation/reconnect. * * Token source is intentionally pluggable. The SDK's Nuxt module wires this * to {@link TokenManager} + the silent `refresh()` flow, so sliding session * refreshes and 401-driven cookie syncs are transparent. * * Reconnect schedule: exponential backoff with jitter (0…WS_RECONNECT_JITTER_MS), * capped at `WS_RECONNECT_MAX_MS`. On `token_expired` / `auth_fail` mid-session * the injected `refresh()` is awaited once before reconnecting. * * SSR safety: pass `WebSocketCtor: undefined` (or skip `open()`); the * module's plugin only calls `open()` inside `if (import.meta.client)`. */ export declare function createEaeraWebSocket(options: IWsClientOptions): IWsClient; //# sourceMappingURL=createEaeraWebSocket.d.ts.map