import { PackageManager } from './node-package-manager.js'; /** * Returns true if the current process is running in a global context. * * @param argv - The arguments passed to the process. * @returns `true` if the current process is running in a global context. */ export declare function currentProcessIsGlobal(argv?: string[]): boolean; /** * Installs the global Shopify CLI, using the provided package manager. * * @param packageManager - The package manager to use. */ export declare function installGlobalShopifyCLI(packageManager: PackageManager): Promise; export interface InstallGlobalCLIPromptResult { install: boolean; alreadyInstalled: boolean; } /** * Prompts the user to install the global CLI. * * @returns `true` if the user has installed the global CLI. */ export declare function installGlobalCLIPrompt(): Promise; /** * Infers the package manager used by the global CLI. * * @param argv - The arguments passed to the process. * @param env - The environment variables of the process. * @returns The package manager used by the global CLI. */ export declare function inferPackageManagerForGlobalCLI(argv?: string[], env?: NodeJS.ProcessEnv): PackageManager; /** * Returns the project directory for the given path. * * @param directory - The path to search upward from. * @returns The project root directory, or undefined if not found. */ export declare function getProjectDir(directory: string): string | undefined;