import prompts from 'prompts'; export declare type InputType = 'number' | 'text' | 'select' | 'confirm'; export declare type InputValidator = (value: any) => string | boolean | Promise; export interface Choice { title: string; description?: string; value: string | number; } export declare const onCancel: () => never; export declare const getNumber: (message: string, validator: InputValidator, defaultValue: number) => Promise; export declare const getString: (message: string, validator: InputValidator, defaultValue?: string) => Promise; export declare const getConfirmation: (message: string, defaultValue: boolean) => Promise; export declare const getChoice: (message: string, errorMessage: string, choices?: Choice[]) => Promise; export declare const getUrl: (message: string, errorMessage: string, defaultValue?: string) => Promise; export declare const readAndValidateInput: (type: InputType, fieldName: string, message: string, validator: InputValidator, defaultValue?: string | number | boolean, choices?: Choice[]) => Promise>;