import type { Readable, Writable } from 'node:stream'; export interface PromptIo { input: Readable; output: Writable; /** * Whether a person is actually there. A wizard must never wait forever on a * pipe, so a non-interactive stream is refused with instructions instead. */ interactive: boolean; } export declare function defaultPromptIo(): PromptIo; export declare function ask(io: PromptIo, question: string, fallback?: string): Promise; export declare function confirm(io: PromptIo, question: string): Promise; /** * Reads a secret from a non-interactive stream, or prompts for one. * * Piping a secret in is the SAFE path and is why this accepts a closed stream * rather than refusing it: a token passed as a command-line argument is kept by * both the shell history and the process list, so `--access-token-stdin` has to * work without a terminal. */ export declare function askSecret(io: PromptIo, question: string): Promise; export declare function select(io: PromptIo, question: string, choices: Array<{ value: T; label: string; detail?: string; }>): Promise; //# sourceMappingURL=prompt.d.ts.map