/** * Runs the specified callback with the appropriate package manager and run command based on which lock file exists. * * @param {function} callback - The function to run with the package manager and run command. * @param {function} callback.packageManager - The package manager to use (either "npm" or "yarn"). * @param {function} callback.runCommand - The run command to use with npm (empty string) or yarn ("run"). * @returns {Promise} - A Promise that resolves when the callback function has completed. */ export declare const withPackageManager: (callback: (packageManager: "npm" | "yarn", runCommand: string) => Promise) => Promise; /** * Runs the specified callback with the version of the specified package, using the appropriate package manager. * * @param {string} packageName - The name of the package to get the version for. * @param {function} callback - The function to run with the package version. * @param {function} callback.packageVersion - The version of the package (or undefined if it is not installed). * @returns {Promise} - A Promise that resolves when the callback function has completed. */ export declare const withVersion: (packageName: string, callback: (packageVersion: string | undefined) => Promise) => Promise;