import { HttpClient } from '../http-client'; import { Device } from '../types'; export declare class DeviceEndpoints { private http; private site; constructor(http: HttpClient, site: string); /** * List all devices for the current site. * @returns {Promise} Array of device objects */ listDevices(): Promise; /** * Get a device by MAC address. * @param {string} mac Device MAC address * @returns {Promise} Device object or undefined if not found */ getDevice(mac: string): Promise; /** * Adopt a device into the site. * @param {string} mac Device MAC address * @returns {Promise} True if successful */ adoptDevice(mac: string): Promise; /** * Restart a device. * @param {string} mac Device MAC address * @returns {Promise} True if successful */ restartDevice(mac: string): Promise; /** * Enable or disable device locate (blinking LED). * @param {string} mac Device MAC address * @param {boolean} enable True to enable, false to disable * @returns {Promise} True if successful */ locateDevice(mac: string, enable: boolean): Promise; /** * Forget a device from the site. * @param {string} mac Device MAC address * @returns {Promise} True if successful */ forgetDevice(mac: string): Promise; /** * Upgrade device firmware to the latest available version. * @param {string} mac Device MAC address * @returns {Promise} True if successful */ upgradeDevice(mac: string): Promise; /** * Set the device's display name. * @param {string} mac Device MAC address * @param {string} name New device name * @returns {Promise} True if successful */ setDeviceName(mac: string, name: string): Promise; /** * Set notes for a device. * @param {string} mac Device MAC address * @param {string} notes Notes to set * @returns {Promise} True if successful */ setDeviceNotes(mac: string, notes: string): Promise; /** * Force provision a device (apply configuration immediately). * @param {string} mac Device MAC address * @returns {Promise} True if successful */ forceProvisionDevice(mac: string): Promise; /** * Set the LED state of a device (on/off). * @param {string} mac Device MAC address * @param {boolean} state True for on, false for off * @returns {Promise} True if successful */ setLedState(mac: string, state: boolean): Promise; /** * Set device configuration with a raw payload. * @param {string} mac Device MAC address * @param {Record} config Configuration object * @returns {Promise} True if successful */ setDeviceConfig(mac: string, config: Record): Promise; /** * Upgrade device firmware to a specific URL. * @param {string} mac Device MAC address * @param {string} url Firmware URL * @returns {Promise} True if successful */ upgradeDeviceFirmware(mac: string, url: string): Promise; /** * Reboot device to recovery mode. * @param {string} mac Device MAC address * @returns {Promise} True if successful */ rebootToRecovery(mac: string): Promise; }