import { ESPCDFDeviceParam } from "./ESPCDFDeviceParam"; import { ESPCDFDeviceOperationType, ESPCDFDeviceInterface, ESPCDFDeviceOperation, ESPCDFAttributeInterface } from "../types"; import { ESPCDFOperationEventEmitter, ESPCDFOperationListener } from "../utils/OperationEventEmitter"; /** * Represents a device entity with operations */ export declare class ESPCDFDevice { name: string; params: ESPCDFDeviceParam[]; attributes?: ESPCDFAttributeInterface[]; displayName?: string; type?: string; operations: ESPCDFDeviceOperation; _raw: any; readonly events: ESPCDFOperationEventEmitter; constructor(deviceData: ESPCDFDeviceInterface); /** * Subscribe to all operation events * @param listener - The callback function to register * @returns Unsubscribe function */ subscribe(listener: ESPCDFOperationListener): () => void; /** * Remove all listeners and clean up */ dispose(): void; /** * Internal method to emit callbacks after operations */ private emit; /** * Wraps an operation with consistent event emission logic */ private runAndEmit; /** * Get parameters for this device */ getParams(): Promise; }