/** * Interactive Prompt Utilities (NO external dependencies) * * Features: * - TTY detection (auto-confirm in non-TTY) * - --yes flag support for automation * - --no-input flag support for CI * - Safe defaults (N for destructive actions) * - Input validation with retry */ interface ConfirmOptions { default?: boolean; } interface InputOptions { default?: string; validate?: (value: string) => string | null; } interface PasswordOptions { mask?: string; } interface SelectOption { id: string; label: string; } interface SelectOptions { defaultIndex?: number; } export declare class InteractivePrompt { /** * Ask for confirmation */ static confirm(message: string, options?: ConfirmOptions): Promise; /** * Get text input from user */ static input(message: string, options?: InputOptions): Promise; /** * Get password/secret input (masked) * * Handles bracketed paste mode escape sequences that terminals send: * - Start paste: ESC[200~ * - End paste: ESC[201~ * These are stripped automatically so pasted API keys work correctly. */ static password(message: string, options?: PasswordOptions): Promise; /** * Select from a numbered list * * Displays options with numbers and waits for user selection. * Shows default with asterisk (*) prefix. */ static selectFromList(prompt: string, options: SelectOption[], selectOptions?: SelectOptions): Promise; } export {}; //# sourceMappingURL=prompt.d.ts.map