/**
 * Proactive OAuth token refresh timer.
 *
 * Web clients use BaseTokenManager.scheduleRefresh() to refresh tokens before
 * they expire. The agent has no equivalent — it only refreshes reactively when
 * getApiKey() is called. If the TUI is idle, the token expires silently.
 *
 * This module adds a simple timer that calls getApiKey() periodically to
 * trigger the reactive refresh logic in AuthStorage before the token expires.
 */
import type { AuthStorage } from './auth-storage.js';
/**
 * Start a background timer that keeps OAuth tokens fresh.
 * Calls authStorage.getApiKey() periodically, which triggers refresh
 * when the token is within the buffer window of expiry.
 */
export declare function startProactiveRefresh(authStorage: AuthStorage, providerId: string): void;
//# sourceMappingURL=refresh-timer.d.ts.map