/** * Manages the WebSocket connection lifecycle. * * Holds a reference to the current WebSocket connection's `closeConnection` method, * allowing other parts of the application to close the connection on demand (e.g., on logout). * * This pattern avoids exporting mutable bindings directly by encapsulating * the reference within a stable object. * * @example * ```ts * await registerWebsocketListener(address); * websocketManager.closeConnectionRef?.(); * ``` */ export declare const websocketManager: { closeConnectionRef: (() => void) | undefined; }; export declare function registerWebsocketListener(address: string): Promise;