import * as readline from "readline"; import type { PromptChoice } from "./types"; export declare class Prompt { protected rl: readline.Interface | undefined; constructor(); close(): void; private ensureCookedMode; private ask; input(message: string, defaultValue?: string): Promise; confirm(message: string, defaultValue?: boolean): Promise; list(message: string, choices: PromptChoice[]): Promise; checkbox(message: string, choices: PromptChoice[]): Promise; } export declare const createPrompt: (callback: (prompt: Prompt) => Promise) => Promise;