export type PackageManager = "npm" | "pnpm" | "yarn" | "yarn-classic" | "bun"; /** * The lockfile in the project wins over the tool that started us: `npm init mobilewright` * inside a pnpm project should still install with pnpm. */ export declare function detectPackageManager(targetDir: string, packageManagerField?: string, userAgent?: string | undefined, homeDir?: string): PackageManager; export declare function isWorkspaceRoot(targetDir: string, workspacesField: unknown): boolean; export declare function installDevCommand(packageManager: PackageManager, specs: string[], isWorkspaceRoot?: boolean): string; export declare function installProdCommand(packageManager: PackageManager, specs: string[], isWorkspaceRoot?: boolean): string; export declare function installAllCommand(packageManager: PackageManager): string; /** How the user runs the mobilewright binary that was just installed. */ export declare function runCommand(packageManager: PackageManager, args: string): string; export declare function createProjectCommand(packageManager: PackageManager): string;