import { DeviceFunction } from '../models/device-function.js'; import { AccountService } from './account.service.js'; export type HubspaceValue = boolean | number | string; interface DeviceServiceContext { readonly accountService: AccountService; readonly log: { error(message: string, ...parameters: unknown[]): void; }; } /** * Service for interacting with devices */ export declare class DeviceService { private readonly _context; private readonly _httpClient; constructor(_context: DeviceServiceContext); /** * Sets an attribute value for a device * @param deviceId ID of a device * @param deviceFunction Function to set value for * @param value Value to set to attribute */ setValue(deviceId: string, deviceFunction: DeviceFunction, value: HubspaceValue): Promise; /** * Gets a value for attribute * @param deviceId ID of a device * @param deviceFunction Function to get value for * @returns Data value */ getValue(deviceId: string, deviceFunction: DeviceFunction): Promise; /** * Gets a value for attribute as boolean * @param deviceId ID of a device * @param deviceFunction Function to get value for * @returns Boolean value */ getValueAsBoolean(deviceId: string, deviceFunction: DeviceFunction): Promise; /** * Gets a value for attribute as integer * @param deviceId ID of a device * @param deviceFunction Function to get value for * @returns Integer value */ getValueAsInteger(deviceId: string, deviceFunction: DeviceFunction): Promise; getValueAsString(deviceId: string, deviceFunction: DeviceFunction): Promise; private getDataValue; private handleError; } export {}; //# sourceMappingURL=device.service.d.ts.map