UNPKG

@promptbook/google

Version:

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

12 lines (11 loc) • 656 B
import type { NormalizedQuestionsCliOptions } from '../questionsCliOptions'; /** * Asks the user in the terminal whether an npm package should be installed or updated now. * * 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 $askForNpmPackageInstallationApproval(question: string, questionsOptions: NormalizedQuestionsCliOptions): Promise<boolean>;