import { AuthFailedError, ClientAbortedError, ClientNotConnectedError, GraphorinClientError, GraphorinClientErrorKind, InvalidServerFrameError, ProtocolViolationError, SubprotocolMismatchError, SubscriptionNotFoundError, TransportFailedError, kindForRpcCode } from "./errors.js"; import { BackoffPolicy, computeBackoffMs, sleep } from "./reconnect.js"; import { Transport, TransportAuth, TransportCloseReason, TransportKind, TransportListeners, TransportOptions } from "./transport/types.js"; import { openSseTransport } from "./transport/sse.js"; import { openWebSocketTransport } from "./transport/ws.js"; import "./transport/index.js"; import { GraphorinClient, GraphorinClientOptions, Subscription, SubscriptionMetadata, SubscriptionTarget, TransportPreference } from "./graphorin-client.js"; //#region src/index.d.ts /** * `@graphorin/client` - reference TypeScript client for the * Graphorin standalone server. * * Wraps the WebSocket subprotocol `graphorin.protocol.v1` (with an * optional Server-Sent Events fallback for proxy-restricted * environments) behind an ergonomic {@link GraphorinClient} class: * `connect()`, `subscribe({ target, id })` returning an * async-iterable subscription, `cancel(runId, opts)`, * `disconnect()`. Handles the browser ticket flow, exponential- * backoff reconnect with `lastEventId` resume against the server * replay buffer, and Zod-validated frame parsing on both * directions. * * Browser-friendly: zero Node-only dependencies; the only runtime * dependencies are `@graphorin/protocol` and `zod`. * * @packageDocumentation */ declare const VERSION: string; //#endregion export { AuthFailedError, type BackoffPolicy, ClientAbortedError, ClientNotConnectedError, GraphorinClient, GraphorinClientError, GraphorinClientErrorKind, type GraphorinClientOptions, InvalidServerFrameError, ProtocolViolationError, SubprotocolMismatchError, type Subscription, type SubscriptionMetadata, SubscriptionNotFoundError, type SubscriptionTarget, type Transport, type TransportAuth, type TransportCloseReason, TransportFailedError, type TransportKind, type TransportListeners, type TransportOptions, type TransportPreference, VERSION, computeBackoffMs, kindForRpcCode, openSseTransport, openWebSocketTransport, sleep }; //# sourceMappingURL=index.d.ts.map