UNPKG

valor-interview

Version:

CLI tool for downloading Valor interview challenges

29 lines 1.25 kB
import type { InstallOptions, PackageManager, CommandOptions } from '../types'; /** * Executes a command in a child process * @param command - Command to execute * @param args - Command arguments * @param options - Execution options * @returns Promise that resolves when command completes successfully * @throws {Error} If the command fails */ export declare const runCommand: (command: string, args: string[], options?: CommandOptions) => Promise<void>; /** * Installs dependencies using the specified package manager * @param options - Installation options * @throws {Error} If the installation fails */ export declare const installDependencies: ({ cwd, packageManager, }: InstallOptions) => Promise<void>; /** * Checks if a package manager is available on the system * @param packageManager - Package manager to check * @returns True if the package manager is available */ export declare const checkPackageManagerAvailable: (packageManager: string) => Promise<boolean>; /** * Detects the best available package manager on the system * Priority order: pnpm > yarn > npm * @returns The best available package manager */ export declare const detectPackageManager: () => Promise<PackageManager>; //# sourceMappingURL=process.d.ts.map