/** * Utility class for cloning Git repositories and checking directory existence. * * The `CloneUtils` class provides methods to clone a Git repository from a specified URL * and to verify if a given directory exists on the filesystem. It logs the cloning process, * including success and error messages, and offers troubleshooting tips if cloning fails. * * @example * ```typescript * const utils = new CloneUtils('https://github.com/example/'); * utils.cloneRepository('my-repo.git'); * ``` * * @remarks * - Uses `runCommand` to execute the `git clone` operation. * - Logs informative messages using the `log` and `Colors` utilities. * - Checks directory existence using Node.js `fs.existsSync`. * * @public */ export declare class CloneUtils { private readonly repositoryUrl; private readonly root; constructor(repositoryUrl: string); /** * Clones a Git repository from the specified repository name or path. * * Logs the cloning process, including success and error messages. * If cloning fails, logs an error and provides a troubleshooting tip. * * @param repository - The name or path of the repository to clone. * @returns The result of the `runCommand` function if successful; otherwise, logs errors. */ cloneRepository: (repository: string) => any; /** * Checks if the specified directory exists on the filesystem. * * @param repository - The path to the directory or repository to check. * @returns `true` if the directory exists, otherwise `false`. */ checkDirectory: (repository: string) => boolean; }