UNPKG

faj-cli

Version:

FAJ - A powerful CLI resume builder with AI enhancement and multi-format export

39 lines 1.23 kB
export interface PromptField { name: string; type: 'input' | 'confirm' | 'list' | 'checkbox' | 'editor'; message: string; default?: any; validate?: (input: any) => boolean | string; when?: (answers: any) => boolean; choices?: any[]; filter?: (input: any) => any; } export declare class PromptHelper { /** * Collect multiple inputs with ESC support * Returns undefined if user pressed ESC at any point */ static collectInputs(fields: PromptField[], options?: { context?: string; showEscHint?: boolean; }): Promise<any | undefined>; /** * Show a simple confirmation with ESC support */ static confirm(message: string, defaultValue?: boolean): Promise<boolean>; /** * Get a single input with ESC support */ static input(message: string, options?: { default?: string; validate?: (input: string) => boolean | string; }): Promise<string | undefined>; /** * Show a list selection with ESC support */ static select(message: string, choices: any[], options?: { default?: any; backValue?: string; }): Promise<string | undefined>; } //# sourceMappingURL=PromptHelper.d.ts.map