import type { Repositories } from "../repositories/index.js"; export interface UpdateNotification { installed_version: string; available_version: string; changelog: string; releases_url: string; } export declare class UpdateService { private repos; private currentVersion; /** Ensures we only surface the notification once per server process. */ private _notifiedThisProcess; constructor(repos: Repositories, currentVersion: string); /** * Fire-and-forget: schedule an async update check via setImmediate so it * never blocks server startup. All errors are swallowed — update checking * is strictly best-effort. */ scheduleCheck(): void; /** * Returns an update notification if a newer version is available. * Only returns a value once per process lifetime to avoid spamming the * agent on every engram_start_session call. */ getNotification(): UpdateNotification | null; private _check; private _fetchLatest; } //# sourceMappingURL=update.service.d.ts.map