UNPKG

@types/inquirer

Version:
38 lines (31 loc) 832 B
import { Interface as ReadlineInterface } from "readline"; import inquirer, { StreamOptions } from "../../index.js"; /** * Represents a ui. */ declare class UI { /** * Gets or sets an object for performing read from and write to the console. */ protected rl: ReadlineInterface; /** * Gets or sets the currently active prompt. */ protected activePrompt: inquirer.prompts.PromptBase; /** * Initializes a new instance of the {@link UI `UI`} class. * * @param options * The input- and output-stream of the ui. */ constructor(options?: StreamOptions); /** * Handles a forced exit of the application. */ protected onForceClose(): void; /** * Releases all unmanaged resources. */ protected close(): void; } export default UI;