UNPKG

homebridge-ecobee-status

Version:

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

22 lines 798 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?; 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