import type { GitSource } from "../../utils/git.js"; import type { PackageSource, SettingsManager } from "../settings-manager.js"; import type { NpmSource, ParsedSource, ProgressEvent, SourceScope } from "./types.js"; /** * Network update checking for configured package sources. Extracted from * DefaultPackageManager as pure functions operating on an explicit context. */ export declare const NETWORK_TIMEOUT_MS = 10000; export declare function isOfflineModeEnabled(): boolean; export interface UpdateCheckContext { cwd: string; settingsManager: SettingsManager; parseSource(source: string): ParsedSource; getPackageIdentity(source: string, scope?: SourceScope): string; buildNoMatchingPackageMessage(source: string, configuredPackages: PackageSource[]): string; withProgress(action: ProgressEvent["action"], source: string, message: string, operation: () => Promise): Promise; updateGit(source: GitSource, scope: SourceScope): Promise; getManagedNpmInstallPath(source: NpmSource, scope: SourceScope): string; getInstalledNpmVersion(installedPath: string): string | undefined; getLatestNpmVersion(packageName: string): Promise; getNpmInstallRoot(scope: SourceScope, temporary: boolean): string; ensureNpmProject(installRoot: string): void; runNpmCommand(args: string[], options?: { cwd?: string; }): Promise; getNpmInstallArgs(specs: string[], installRoot: string): string[]; runCommandCapture(command: string, args: string[], options?: { cwd?: string; timeoutMs?: number; env?: Record; }): Promise; runCommand(command: string, args: string[], options?: { cwd?: string; }): Promise; runGitRemoteCommand(installedPath: string, args: string[]): Promise; } export declare function updatePackages(ctx: UpdateCheckContext, source?: string): Promise; export declare function getLocalGitUpdateTarget(ctx: UpdateCheckContext, installedPath: string): Promise<{ ref: string; head: string; fetchArgs: string[]; }>; //# sourceMappingURL=update-check.d.ts.map