import { Tracer } from '@opentelemetry/api'; import WebSocket from 'isomorphic-ws'; import { TracedSocket } from './tracedSocket.js'; import { GenericMiddleware, ISocketClient, MethodHandlers, RequestContextBase, SocketTimeouts } from './types.js'; export declare class ISocketWithClientAuth extends TracedSocket { private authorization?; private authorizationVersion; private hasSentAuth; constructor(ws: WebSocket, authorization: string | undefined, requestHandlers: MethodHandlers, globalMiddlewares: GenericMiddleware[], tracer: Tracer, options: { onClose: (event: WebSocket.CloseEvent) => void; timeouts?: SocketTimeouts; logger?: { error: (message?: string) => void; info: (message?: string) => void; warn: (message?: string) => void; }; getAbortSignal?: () => AbortSignal | undefined; }); request(method: string, params: Params): Promise; /** * Updates the authorization token for this socket. * This is useful for long-lived connections where the token may expire and need to be refreshed. * * @param newAuthorization - The new authorization token (e.g., "Bearer ") or undefined to clear it */ setAuthorization(newAuthorization: string | undefined): void; } /** * Creates a new socket for a set of operations, without any retry behavior * If the requests fail, the promise will reject. */ export declare function connectSingleUseISocket(wsUrl: string, authorization: string | undefined, requestHandlers: MethodHandlers, globalMiddlewares: GenericMiddleware[], tracer: Tracer, options: { onClose: (event: WebSocket.CloseEvent) => void; timeouts?: SocketTimeouts; logger?: { error: (message?: string) => void; info: (message?: string) => void; warn: (message?: string) => void; }; }): Promise>; //# sourceMappingURL=socketWithClientAuth.d.ts.map