/**
* 获取当前设备 ID 或群组 ID,优先使用传入参数,否则从启动参数中读取
* @internal
* @deprecated 该 Hook 暂未在对外文档中暴露,不建议在业务中继续直接使用,后续可能调整或移除。
* @since @ray-js/panel-sdk 1.0.0
* @param option - 可选配置对象,可手动指定 deviceId 或 groupId
* @param option.deviceId - 手动指定的设备 ID
* @param option.groupId - 手动指定的群组 ID
* @returns 包含 `deviceId` 和 `groupId` 的对象
* @remarks
* 若未传入参数,将通过 `getLaunchOptionsSync` 从小程序启动参数的 query 中自动获取。
* @example
* ```tsx
* import { useDevId } from '@ray-js/panel-sdk';
*
* function DeviceInfo() {
* // 自动从启动参数中获取设备 ID
* const { deviceId, groupId } = useDevId();
* return 设备ID: {deviceId};
* }
*
* function SpecificDevice() {
* // 手动指定设备 ID
* const { deviceId } = useDevId({ deviceId: 'abc123' });
* return 设备ID: {deviceId};
* }
* ```
*/
export declare const useDevId: (option?: {
deviceId?: string | undefined;
groupId?: string | undefined;
} | undefined) => {
deviceId?: string | undefined;
groupId?: string | undefined;
} | {
deviceId: any;
groupId: any;
};