homebridge-tsvesync
Version:
Homebridge plugin for VeSync devices including Levoit air purifiers, humidifiers, and Etekcity smart outlets
23 lines • 602 B
TypeScript
import { Logger } from 'homebridge';
export interface RetryConfig {
maxRetries: number;
}
export declare class RetryManager {
private readonly log;
private readonly config;
private retryCount;
private readonly maxRetries;
constructor(log: Logger, config?: RetryConfig);
/**
* Get the current retry count
*/
getRetryCount(): number;
/**
* Execute an operation with retry logic
*/
execute<T>(operation: () => Promise<T>, context: {
deviceName: string;
operation: string;
}): Promise<T>;
}
//# sourceMappingURL=retry.d.ts.map