import { type LocalHealth } from './local-install.js'; import { type UpdateState } from './updater.js'; export declare function activatePreparedUpdate(home: string, state: UpdateState, operations?: { stop: (home: string) => Promise; start: (home: string) => Promise; repair?: (home: string) => void; warn?: (message: string) => void; }, options?: { automatic?: boolean; }): Promise; export declare function launchPreparedUpdate(home: string, state: UpdateState, options?: { automatic?: boolean; }): Promise; /** Checks start after boot and run while idle. Active model calls are never interrupted. */ export interface AutomaticUpdateOperations { install?: (home: string) => Promise; launch?: (home: string, state: UpdateState, options?: { automatic?: boolean; }) => Promise; status?: (home: string) => UpdateState; queueStatus?: (home: string) => { pending: number; }; schedule?: (callback: () => Promise, delay: number, repeat: boolean) => () => void; } export declare function scheduleAutomaticUpdates(isIdle: () => boolean, home?: string, operations?: AutomaticUpdateOperations): () => void;