UNPKG

logsdx

Version:

<div align="center"><img alt="logsdx" width="300" src="https://github.com/user-attachments/assets/cc2a3b55-5bfd-44e8-a330-bfa146b50059" /></div>

34 lines (33 loc) 953 B
interface InputPrompt { message: string; default?: string; validate?: (value: string) => boolean | string | Promise<boolean | string>; transformer?: (value: string) => string; } interface SelectPrompt { message: string; choices: Array<{ name?: string; value: string; description?: string; } | string>; default?: string; } interface CheckboxPrompt { message: string; choices: Array<{ name: string; value: string; checked?: boolean; }>; } interface ConfirmPrompt { message: string; default?: boolean; } export declare function input(options: InputPrompt): Promise<string>; export declare function select(options: SelectPrompt): Promise<string>; export declare function checkbox(options: CheckboxPrompt): Promise<string[]>; export declare function confirm(options: ConfirmPrompt): Promise<boolean>; export declare function closePrompts(): void; export {};