/** * Upgrades the dependencies in a package.json file to their latest versions, removes existing * installed modules, and reinstalls them in the specified directory. * * This function performs the following steps: * 1. Checks for outdated dependencies by running `npm outdated --all --json`. * 2. Reads the project's package.json file and updates any existing dependencies to their latest versions. * 3. Removes all installed modules (`node_modules`) and the lock file (`package-lock.json`). * 4. Reinstalls and updates all dependencies. * 5. Logs a message indicating that all dependencies are up to date. * * @param directory - The path to the directory containing the Node.js project. * @returns A promise that resolves when the process is complete. */ export declare function upgradeDependencies(directory: string): Promise;