import type { UpdateConfig } from '../types/update.js'; import { NpmAutoUpdateService } from './npm-auto-update.js'; /** * Result of building the auto-update service. */ export interface AutoUpdateServiceBuildResult { /** The constructed service. Always non-null. */ service: NpmAutoUpdateService; /** Whether the periodic checker was started (`enabled` was true). */ started: boolean; } /** * Construct the npm auto-update service and conditionally start its periodic checker. * * The service is always constructed so the manual override path works even when * automatic updates are disabled. The periodic background checker is only started * when `enabled` is true. * * @param updateConfig Update configuration (typically from `loadUpdateConfig()`). * @param enabled Whether the automatic periodic checker should run. * @returns The constructed service and whether the periodic checker was started. */ export declare function buildAutoUpdateService(updateConfig: Partial, enabled: boolean): AutoUpdateServiceBuildResult; //# sourceMappingURL=auto-update-builder.d.ts.map