/** * Returns the version of the local dependency of the CLI if it's installed in the provided directory. * * @param directory - Path of the project to look for the dependency. * @returns The CLI version or undefined if the dependency is not installed. */ export declare function localCLIVersion(directory: string): Promise; /** * Returns the version of the globally installed CLI, only if it's greater than 3.59.0 (when the global CLI was introduced). * * @returns The version of the CLI if it is globally installed or undefined. */ export declare function globalCLIVersion(): Promise; /** * Returns true if the given version is a pre-release version. * Meaning is a `nightly`, `snapshot`, or `experimental` version. * * @param version - The version to check. * @returns True if the version is a pre-release version. */ export declare function isPreReleaseVersion(version: string): boolean; /** * Checks if there is a major version change between two versions. * Pre-release versions (0.0.0-*) are treated as not having a major version change. * * @param currentVersion - The current version. * @param newerVersion - The newer version to compare against. * @returns True if there is a major version change. */ export declare function isMajorVersionChange(currentVersion: string, newerVersion: string): boolean;