/** * 判断 SIG Mesh 设备是否通过网关连接(非蓝牙直连) * @public * @since @ray-js/panel-sdk 1.8.0 * @param devId - Sigmesh 设备 ID * @returns 布尔值,`true` 表示设备通过网关连接,`false` 表示蓝牙直连或离线 * @remarks * 该 Hook 通过查询设备在线类型来判断连接方式:当 `onlineType` 为 8(BLE Mesh)且设备在线时, * 判定为蓝牙直连,返回 `false`;否则返回 `true`,表示走网关通道。 * 同时监听设备在线状态变更,状态变化时自动重新查询。 * @example * ```tsx * import { useIsSigmeshGatewayConnected } from '@ray-js/panel-sdk'; * * function MeshDeviceInfo({ devId }: { devId: string }) { * const isGatewayConnected = useIsSigmeshGatewayConnected(devId); * return ( * * {isGatewayConnected ? '通过网关连接' : '蓝牙直连'} * * ); * } * ``` */ export declare const useIsSigmeshGatewayConnected: (devId: string) => boolean;