narraleaf
Version:
Create your visual novel with Electron and React
30 lines (29 loc) • 876 B
TypeScript
/**
* Prompt for text input.
*/
export declare function input(message: string, options: {
default?: string;
required?: boolean;
prefix?: string;
}): Promise<string>;
/**
* Prompt for a confirmation.
* @param message - The message to display to the user.
* @param options - Additional options for the prompt.
* @returns The user's confirmation.
*/
export declare function confirm(message: string, options?: {
default?: boolean;
prefix?: string;
}): Promise<boolean>;
/**
* Prompt for a single selection from a list.
* @param message - The message to display to the user.
* @param choices - The list of choices.
* @param options - Additional options for the prompt.
* @returns The user's selection.
*/
export declare function select(message: string, choices: string[], options?: {
default?: string;
prefix?: string;
}): Promise<string>;