UNPKG

@promptbook/utils

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

12 lines (11 loc) • 624 B
import type { NormalizedQuestionsCliOptions } from './questionsCliOptions'; /** * Asks the user in the terminal to confirm one optional change. * * Note: `$` is used to indicate that this function is not a pure function - it reads the answer from stdin. * * @returns `true` when the user confirms, `false` when the user declines, the terminal is not interactive * or the questions are disabled by `--no-questions`. * @private internal utility of `promptbookCli` */ export declare function $askForConfirmation(question: string, { isAskingQuestionsEnabled }: NormalizedQuestionsCliOptions): Promise<boolean>;