UNPKG

openai-cli-unofficial

Version:

A powerful OpenAI CLI Coding Agent built with TypeScript

30 lines 902 B
export interface NativeInputOptions { message: string; default?: string; validate?: (input: string) => string | boolean; transform?: (input: string) => string; mask?: boolean; } export declare class NativeInput { /** * 原生输入方法,兼容InteractiveMenu的stdin状态管理 */ static prompt(options: NativeInputOptions): Promise<string>; /** * 简化的输入方法 */ static text(message: string, defaultValue?: string): Promise<string>; /** * 密码输入方法 */ static password(message: string): Promise<string>; /** * 数字输入方法 */ static number(message: string, defaultValue?: number, min?: number, max?: number): Promise<number>; /** * URL输入方法 */ static url(message: string, defaultValue?: string): Promise<string>; } //# sourceMappingURL=native-input.d.ts.map