UNPKG

valor-interview

Version:

CLI tool for downloading Valor interview challenges

25 lines 1.08 kB
import type { Challenge } from '../types'; /** * Prompts the user to select a challenge from the available options * @param challenges - Array of available challenges * @returns The selected challenge * @throws {Error} If no challenges are provided */ export declare const promptChallengeSelection: (challenges: Challenge[]) => Promise<Challenge>; /** * Prompts the user for the destination path where the challenge should be copied * @returns The resolved destination path */ export declare const promptDestinationPath: () => Promise<string>; /** * Prompts the user whether to install dependencies after copying the challenge * @returns True if the user wants to install dependencies */ export declare const promptInstallDependencies: () => Promise<boolean>; /** * Prompts the user for confirmation before overwriting an existing directory * @param path - The path that would be overwritten * @returns True if the user confirms the overwrite */ export declare const promptOverwriteConfirmation: (path: string) => Promise<boolean>; //# sourceMappingURL=prompts.d.ts.map