/** * Factory class to create the appropriate connection type */ import { BaseConnection } from "../internal/connection/BaseConnection"; import { type WebSocketConnectionConfig } from "./Websocket"; import { type SSEConnectionConfig } from "./SSE"; export declare const ConnectionType: { readonly SOCKET: "socket"; readonly SSE: "sse"; }; export type ConnectionType = (typeof ConnectionType)[keyof typeof ConnectionType]; export type ConnectionConfig = WebSocketConnectionConfig | SSEConnectionConfig; export declare class ConnectionFactory { /** * Create a connection based on the specified type */ static createConnection(type: ConnectionType, config: ConnectionConfig): Promise; }