askeroo
Version:
A modern CLI prompt library with flow control, history navigation, and conditional prompts
21 lines • 621 B
TypeScript
export interface ConfirmOption {
value: any;
label: string;
color?: string;
hint?: string;
}
/**
* User-provided options for the confirm plugin
*/
export interface ConfirmOptions {
label?: string;
message?: string;
shortLabel?: string;
options?: ConfirmOption[];
allowLoop?: boolean;
hintPosition?: "bottom" | "inline" | "side";
initialValue?: any;
onSubmit?: (value: any) => any | void;
}
export declare const confirm: (opts?: import("../../types/index.js").PluginOptionsWithBuiltins<ConfirmOptions, any> | undefined) => Promise<any>;
//# sourceMappingURL=index.d.ts.map