/** * Public barrel for the updater module. * * Exposes the fire-and-forget update-check orchestration (scheduleUpdateCheck, * settleUpdateCheck) plus the underlying building blocks. */ import { type UpdateCheckState } from './throttle.js'; export { isNewerVersion } from './compare.js'; export { detectPackageManager, getInstallCommand, type PackageManager } from './detect-package-manager.js'; export { runAutoInstall } from './installer.js'; export { shouldAutoUpdate, shouldShowReminder } from './notifier.js'; export { fetchLatestVersion } from './registry.js'; export { readUpdateState, writeUpdateState } from './state.js'; export { shouldCheckNow, type UpdateCheckState } from './throttle.js'; /** * Reset the pending update check singleton. Intended for test isolation only. */ export declare function resetPendingUpdateCheck(): void; /** * Schedule a background update check. Fire-and-forget — does not await. * No-ops when the throttle window has not elapsed. * First-write-wins: a second call while one is already pending is silently ignored. */ export declare function scheduleUpdateCheck(stateDir: string, currentVersion: string, frequencyDays: number, now?: Date): void; /** * Await the pending update check with a short timeout. * Returns the updated UpdateCheckState if the fetch completed in time, * otherwise null. */ export declare function settleUpdateCheck(timeoutMs?: number): Promise; //# sourceMappingURL=index.d.ts.map