export declare enum Interfaces { Terminal = "terminal", Slack = "slack" } export interface APIError { } export interface APIResponse { data: T; error?: APIError[]; } export declare type Questions = Question | Question[] | ReadonlyArray>; export declare type Answers = Record; interface QuestionCommon { /** * The name to use when storing the answer in the answers hash. * If the name contains periods, it will define a path in the answers hash. */ name: string; /** * The question to print. If defined as a function, the first parameter will be * the current inquirer session answers. * Defaults to the value of `name` (followed by a colon). */ message: string; flag?: string; } export declare type Question = InputQuestion | NumberQuestion | SecretQuestion | PasswordQuestion | ConfirmQuestion | ListQuestion | AutoCompleteQuestion | CheckboxQuestion | EditorQuestion | DateTimeQuestion; interface InputQuestion extends QuestionCommon { type: 'input'; default?: string; allowEmpty?: boolean; } interface NumberQuestion extends QuestionCommon { type: 'number'; default?: number; minimum?: number; maximum?: number; } interface SecretQuestion extends QuestionCommon { type: 'secret'; } interface PasswordQuestion extends QuestionCommon { type: 'password'; confirm?: boolean; } interface ConfirmQuestion extends QuestionCommon { type: 'confirm'; default?: boolean; } interface ListQuestion extends QuestionCommon { type: 'list'; choices: string[]; default?: string | number; } interface AutoCompleteQuestion extends QuestionCommon { type: 'autocomplete'; choices: string[]; default?: string | number; } interface CheckboxQuestion extends QuestionCommon { type: 'checkbox'; choices: string[]; } interface EditorQuestion extends QuestionCommon { type: 'editor'; default?: string | number; } interface DateTimeQuestion extends QuestionCommon { type: 'datetime'; variant?: 'date' | 'time' | 'datetime'; default?: string | Date; minimum?: string | Date; maximum?: string | Date; } export {};