import type { WSConnectionState } from 'stream-chat'; /** * The client's WebSocket status, as held by `client.wsConnection`. * * Not the device's network, see {@link useNetworkConnectionState}. `isHealthy` is always a boolean. * The store publishes every transition the moment it happens, including `client.closeConnection()`, * so a "connection lost" banner should hold a drop for * `client.wsConnection.config.offlineNotificationDisplayDelayMs`, as `` does. The connection * ID lives on `client.connectionIdManager`, not here. * * Must run under `ChatProvider`, e.g. from a child of ``. */ export declare const useWSConnectionState: () => WSConnectionState | undefined; //# sourceMappingURL=useWSConnectionState.d.ts.map