import ConfigUserProvider from "../common/ConfigUserProvider"; import { DeleteDeviceRequest } from "./DeviceService.model"; export declare class DeviceService { private config; private userManager; constructor(configUserProvider: ConfigUserProvider); /** * To get all devices information associated to the client, call **getDevicesInfo()** * Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/2a2feed70303c-get-device-by-user for more details. * @example * ```js * cidaasDeviceService.getDevicesInfo().then(function (resp) { * // the response will give you devices informations. * }).catch(function(ex) { * // your failure code here * }); * ``` */ getDevicesInfo(access_token?: string): Promise; /** * To delete device associated to the client, call **deleteDevice()** * Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/3d44ad903d6e8-logout-the-user-for-a-device for more details. * @example * ```js * const options = { * device_id: 'id of device associated to the client.' // call **getDevicesInfo()** to get List of device ids and its details. * }; * cidaasDeviceService.deleteDevice(options).then(function (resp) { * // your success code * }).catch(function(ex) { * // your failure code * }); * ``` */ deleteDevice(options: DeleteDeviceRequest, access_token?: string): Promise; /** * to generate device info, call **createDeviceInfo()**. * Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/9b5a892afaf0b-create-device-info for more details. * @example * ```js * cidaasDeviceService.createDeviceInfo().then(function (resp) { * // your success code * }).catch(function(ex) { * // your failure code * }); * ``` */ createDeviceInfo(): Promise; }