export declare type DeviceBean = { productId: string; devId: string; verSw: string; name: string; dps: DeviceDps; }; export declare type DevListenerParams = { devId: string; }; export declare type DevListenerType = 'onDpUpdate' | 'onRemoved' | 'onStatusChanged' | 'onNetworkStatusChanged' | 'onDevInfoUpdate' | 'onFirmwareUpgradeSuccess' | 'onFirmwareUpgradeFailure' | 'onFirmwareUpgradeProgress'; export declare function registerDevListener(params: DevListenerParams, type: DevListenerType, callback: (data: any) => void): void; export declare function unRegisterAllDevListeners(): void; export declare function unRegisterDevListener(filter: any): void; export declare type DeviceDpValue = boolean | number | string; export declare type DeviceDps = { [dpId: string]: DeviceDpValue; }; export declare type SendParams = { devId: string; } & DeviceDps; export declare function send(params: object): any; export declare function publishDps(params: object): any; export declare type DeviceParams = { devId: string; }; export declare function removeDevice(params: DeviceParams): Promise; export declare function getDevice(params: DeviceParams): Promise; export declare function getDeviceData(params: DeviceParams): Promise; export declare type RenameDeviceParams = { devId: string; name: string; }; export declare function renameDevice(params: RenameDeviceParams): Promise; export declare type GetDataPointStatsParams = { devId: string; DataPointTypeEnum: 'DAY' | 'WEEK' | 'MONTH'; number: number; dpId: string; startTime: number; }; export declare function getDataPointStat(params: GetDataPointStatsParams): Promise;