import { C as ClientTransport } from '../../../client-C8pwDvTN.js'; import { C as CustomHandshakeErrorCodeSchema, T as TransportClientId } from '../../../message-C2qDAau6.js'; import { P as ProvidedClientTransportOptions } from '../../../transport-DF2T202E.js'; import { a as WebSocketConnection } from '../../../connection-CRUNaGNn.js'; import { W as WsLike } from '../../../wslike-Dng9H1C7.js'; import 'typebox'; import '@opentelemetry/api'; import '../../../index-CIMpdW6z.js'; import '../../../types-BGGvYIJM.js'; import '../../../adapter-K2HsfQLt.js'; /** * A transport implementation that uses a WebSocket connection with automatic reconnection. * @class * @extends Transport */ declare class WebSocketClientTransport extends ClientTransport { /** * A function that returns a Promise that resolves to a websocket URL. */ wsGetter: (to: TransportClientId) => Promise | WsLike; /** * Creates a new WebSocketClientTransport instance. * @param wsGetter A function that returns a Promise that resolves to a WebSocket instance. * @param clientId The ID of the client using the transport. This should be unique per session. * @param serverId The ID of the server this transport is connecting to. * @param providedOptions An optional object containing configuration options for the transport. */ constructor(wsGetter: (to: TransportClientId) => Promise | WsLike, clientId: TransportClientId, providedOptions?: ProvidedClientTransportOptions); createNewOutgoingConnection(to: string): Promise; } export { WebSocketClientTransport };