import type { PromptAnswers, PromptQuestion as PromptQuestionApi } from '@yeoman/types'; import type Storage from './util/storage.js'; export type { PromptAnswers } from '@yeoman/types'; /** * Represents a question. */ export type PromptQuestion = PromptQuestionApi & { name: string; /** * The storage to store the answer. */ storage?: Storage; /** * A value indicating whether to store the user's previous answer for others projects. */ store?: boolean; }; /** * Provides options for registering a prompt. */ export type QuestionRegistrationOptions = PromptQuestion & { /** * A value indicating whether an option should be exported for this question. */ exportOption?: boolean | Record; }; /** * Provides a set of questions. */ export type PromptQuestions = PromptQuestion | Array>; // | Observable>;