/** * Utility function for generating an install command for the user to run * to install an updated version of Shopify CLI. * * @returns A string with the command to run. */ export declare function cliInstallCommand(): string | undefined; /** * Runs the CLI upgrade using the appropriate package manager. * Determines the install command and executes it. * * @throws AbortError if the package manager or command cannot be determined. */ export declare function runCLIUpgrade(): Promise; /** * Returns the version to auto-upgrade to, or undefined if auto-upgrade should be skipped. * Auto-upgrade is disabled by default and must be enabled via `shopify upgrade`. * Also skips for CI, pre-release versions, or when no newer version is available. * * @returns The version string to upgrade to, or undefined if no upgrade should happen. */ export declare function versionToAutoUpgrade(): string | undefined; /** * Shows a daily upgrade-available warning for users who have not enabled auto-upgrade. * Skipped in CI and for pre-release versions. When auto-upgrade is enabled this is a no-op * because the postrun hook will handle the upgrade directly. */ export declare function warnIfUpgradeAvailable(): Promise; /** * Generates a message to remind the user to update the CLI. * * @param version - The version to update to. * @returns The message to remind the user to update the CLI. */ export declare function getOutputUpdateCLIReminder(version: string): string; /** * Prompts the user to enable or disable automatic upgrades, then persists their choice. * * @returns Whether the user chose to enable auto-upgrade. */ export declare function promptAutoUpgrade(): Promise;