/** * Throttle logic for the auto-update check. */ export interface PluginUpdateState { latestVersion: null | string; latestVersionFetchedAt: null | string; remindedForVersion: null | string; } export interface UpdateCheckState { installedVersionAtCheck: null | string; lastCheckAt: string; lastSuccessAt: null | string; latestVersion: null | string; latestVersionFetchedAt: null | string; plugins: Record; remindedForVersion: null | string; schemaVersion: 2; } /** * Returns true when a new update check should run. * * - First run (lastCheckAt = epoch): yes * - lastCheckAt in the future (clock skew): yes * - lastCheckAt + frequencyDays <= now: yes * - Otherwise: no */ export declare function shouldCheckNow(state: UpdateCheckState, frequencyDays: number, now: Date): boolean; //# sourceMappingURL=throttle.d.ts.map