import { ESPCDFAPIResponse, ESPCDFAutomationOperationType, ESPCDFAutomationInterface, ESPCDFAutomationOperation, ESPCDFAutomationEvent, ESPCDFAutomationAction, ESPCDFAutomationLocation, ESPCDFAutomationEditInput, ESPCDFAutomationEventType, ESPCDFAutomationEventOperator } from "../types"; import { ESPCDFOperationEventEmitter, ESPCDFOperationListener } from "../utils/OperationEventEmitter"; export declare class ESPCDFAutomation implements ESPCDFAutomationInterface { id: string; name: string; enabled: boolean; nodeId?: string; eventType: ESPCDFAutomationEventType; events: ESPCDFAutomationEvent[]; eventOperator: ESPCDFAutomationEventOperator; actions: ESPCDFAutomationAction[]; retrigger?: boolean; location?: ESPCDFAutomationLocation; region?: string; metadata?: any; operations: ESPCDFAutomationOperation; adaptorIdentifier?: string; _raw: any; readonly operationsEvents: ESPCDFOperationEventEmitter; constructor(automationData: ESPCDFAutomationInterface); /** * 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 * @param operation Type of operation being performed * @param execute The actual operation to execute * @param getData Optional callback to extract data for the event payload * @returns The result of the operation */ private runAndEmit; update(data: ESPCDFAutomationEditInput): Promise; delete(): Promise; enable(enabled: boolean): Promise; /** * Checks if the automation is enabled * @returns True if the automation is enabled, false otherwise */ isEnabled(): boolean; }