/** * Interactive prompt with dropdown autocomplete and ghost-text. * * When completions are available, a dropdown list renders below the * prompt line. The user can navigate with Up/Down arrows and accept * with Tab. Ghost text (fish-shell style) also shows the highlighted * match inline. * * - Tab Accept the highlighted suggestion * - Up/Down Navigate the dropdown * - Right arrow Accept one ghost character (fish-style) * - Enter Submit the current input * - Escape Dismiss the dropdown * - Ctrl-C Exit */ /** Sentinel value returned by promptLine when the user presses Escape to back out. */ export declare const ESCAPE_SIGNAL = "\u001B__ESCAPE__"; export interface PromptOptions { prompt: string; /** Returns matching completions for the current input. */ getCompletions: (input: string) => string[]; /** Number of columns reserved on the right (e.g. sidebar). Input will not overflow into them. */ reservedRight?: number; } export declare function promptLine(opts: PromptOptions): Promise; //# sourceMappingURL=prompt.d.ts.map