/** * Engine-based prompt implementations * * These are internal implementations of the standard prompts (list, autocomplete, checkbox) * using the UIEngine for rendering and event handling. */ import { TerminalKeypress } from '../keypress'; import { OptionValue } from '../question'; import { Readable, Writable } from 'stream'; /** * Render the prompt header lines */ export declare function renderPromptHeader(promptMessage: string, input: string): string[]; /** * Filter options based on input (matches existing prompt.ts behavior) */ export declare function filterOptions(options: OptionValue[], input: string): OptionValue[]; export interface ListPromptConfig { options: OptionValue[]; promptMessage: string; maxLines: number; keypress: TerminalKeypress; input: Readable; output: Writable; noTty: boolean; } export declare function listPromptEngine(config: ListPromptConfig): Promise; export interface AutocompletePromptConfig { options: OptionValue[]; promptMessage: string; maxLines: number; keypress: TerminalKeypress; input: Readable; output: Writable; noTty: boolean; } export declare function autocompletePromptEngine(config: AutocompletePromptConfig): Promise; export interface CheckboxPromptConfig { options: OptionValue[]; defaultSelections: boolean[]; promptMessage: string; maxLines: number; returnFullResults: boolean; keypress: TerminalKeypress; input: Readable; output: Writable; noTty: boolean; } export declare function checkboxPromptEngine(config: CheckboxPromptConfig): Promise;