import type { Config } from '../config/schema.js';
import { type UpdateAvailable } from './update-check.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;
    /** When true, bypass checkOnStart/auto-disabled early exit and throttle (for POST /api/update/check). */
    force?: boolean;
}): Promise<void>;
/**
 * Schedule periodic update checks. Returns a cleanup function to stop the timer.
 */
export declare function scheduleGatewayUpdateCheck(params: {
    config: Config;
    onUpdateAvailableChange?: (update: UpdateAvailable | null) => void;
}): () => void;
