UNPKG

homebridge-ecobee-status

Version:

Homebridge plugin to control Ecobee thermostat Home/Away/Sleep status through HomeKit security system interface

25 lines 913 B
import { EcobeeAPIPlatform } from './platform'; export declare class AuthTokenManager { private readonly platform; private static instance; private readonly ECOBEE_API_KEY; private readonly TOKEN_REFRESH_BUFFER; private readonly networkRetry; authToken: string; private refreshToken; private expiration; private refreshInProgress; private lastRefreshAttempt; private backgroundRefreshTimeout?; private readonly MIN_REFRESH_INTERVAL; private readonly RATE_LIMIT_BACKOFF; private rateLimitedUntil?; constructor(platform: EcobeeAPIPlatform); static configureForPlatform(platform: EcobeeAPIPlatform): void; static getInstance(): AuthTokenManager; isExpired(): boolean; private clearBackgroundRefresh; private scheduleBackgroundRefresh; renewAuthToken(): Promise<string | undefined>; } //# sourceMappingURL=auth-token-refresh.d.ts.map