/** * Prompt - a minimal interactive yes/no confirmation. * * On a non-interactive stdin (no TTY - e.g. piped input or CI) the prompt * cannot be answered, so the configured default is used instead. */ /** * Interpret a raw yes/no answer string. * An empty answer takes the default; otherwise "y"/"yes" mean yes. */ export declare function interpretYesNo(answer: string, defaultYes: boolean): boolean; export interface PromptOptions { /** Answer used for an empty response and for non-interactive stdin. */ defaultYes?: boolean; input?: NodeJS.ReadStream; output?: NodeJS.WriteStream; } /** * Ask a yes/no question and resolve to the user's choice. * The prompt suffix reflects the default: "(Y/n)" or "(y/N)". */ export declare function promptYesNo(question: string, options?: PromptOptions): Promise; //# sourceMappingURL=prompt.d.ts.map