UNPKG

mongoose-management

Version:
21 lines (20 loc) 851 B
import { DistinctQuestion } from 'inquirer'; import ora from 'ora'; import { TableUserConfig } from 'table'; import { choicesType, choiceValueType } from './types'; export declare const regexpName: RegExp; export declare const regexpNameMessage: string; export declare const promptTableOptions: TableUserConfig; export default class Prompts { protected clearScreen: boolean; private options; constructor(clearScreen?: boolean); exit(): Promise<void>; clear(): void; retry(message: string): Promise<boolean>; remove(name: string): Promise<boolean>; pressKey(messages?: string | string[] | Error, isError?: boolean): Promise<void>; call<T>(questions: ReadonlyArray<DistinctQuestion>): Promise<T>; menu<T>(message: string, choices: Array<choicesType<T>>): Promise<choiceValueType<T>>; getSpinner(): ora.Ora; }