import { DevInfo, GroupInfo } from '../../types/devInfo'; export interface InitPanelEnvironmentOptions { /** * @description 是否需要使用默认离线弹窗 * @default true */ useDefaultOffline?: boolean; /** * @description 蓝牙提示是否需要阻止交互 * @default false */ bleCover?: boolean; /** * @description 蓝牙及 toast 提示自定义顶部高度(自定义导航时使用)如: 100px,10vh等 * @default 0 */ customTop?: string; /** *@description 蓝牙连接方式,默认0 * 0: 网关和app都需要,默认值,本地和网关两个途径任何一个可用均可生效 * 1: 仅 app, 只会判定本地是否在线, 以及本地连接是否成功 * 2: 仅网关连接, 只会判定网关是否在线,以及网关连接是否成功 * @default 0 */ bleConnectType?: number; /** * @description 是否显示蓝牙连接状态提示 * * @default true * @version 2.10.4 */ showBLEToast?: boolean; /** * @description 当前设备 id,默认为 undefined,表示自动从小程序的 query参数中获取 * @default undefined */ deviceId?: string; /** * @description 当前群组 id,默认为 undefined,表示自动从小程序的 query参数中获取 * @default undefined */ groupId?: string; /** * 微信详细页面路由 * @default undefined */ deviceDetailPage?: string; } export declare function parseDevice(dev: ty.device.DeviceInfo | DevInfo): DevInfo; export declare function parseGroup(group: ty.device.GroupInfo): GroupInfo; /** * 初始化面板环境下使用到的设备信息 * @returns Promise */ export declare const initDevInfo: (option?: { deviceId?: string; groupId?: string; }) => Promise; export declare const getDevInfo: () => DevInfo; export declare const updateDevInfo: (devInfo: DevInfo) => void; /** * 绑定当前设备或群组基础事件 * @param config: InitPanelEnvironmentOptions 配置项 */ export declare function initPanelEnvironment(options?: InitPanelEnvironmentOptions): Promise<() => void>; /** * 初始化面板环境 * @param options 一些配置 * @param initCallback 初始化回调整 * @param destroyCallback 销毁环境回调整 */ export declare const useInitPanelEnv: (options?: InitPanelEnvironmentOptions, initCallback?: ((devId: string) => any) | undefined, destroyCallback?: ((devId: string) => any) | undefined) => void;