import type { Config } from '../config/schema.js'; import { type UpdateAvailable } from './update-check.js'; import type { InProcessRestartTrigger } from './update-restart.js'; /** Get the cached update-available state (populated after startup check). */ export declare function getUpdateAvailable(): UpdateAvailable | null; /** * Main startup update check. Called once when the gateway starts (or on demand). */ export declare function runGatewayUpdateCheck(params: { config: Config; onUpdateAvailableChange?: (update: UpdateAvailable | null) => void; triggerInProcessRestart?: InProcessRestartTrigger; /** When true, bypass checkOnStart/auto-disabled early exit and throttle (for POST /api/update/check). */ force?: boolean; }): Promise; /** * Schedule periodic update checks. Returns a cleanup function to stop the timer. */ export declare function scheduleGatewayUpdateCheck(params: { config: Config; onUpdateAvailableChange?: (update: UpdateAvailable | null) => void; triggerInProcessRestart?: InProcessRestartTrigger; }): () => void;