import type { ReactElement } from 'react'; import type { SlashCompletion } from './slashCompletion.js'; /** * The draft can grow past the terminal height, and every extra row makes the * interactive frame taller. The conversation starts its window on the caret's * row, so no draft row sits above the IME cursor near the live-region anchor. * Other callers keep the centered window they used before. */ export declare const MAX_VISIBLE_ROWS = 6; export interface PromptInputProps { readonly text: string; readonly cursor: number; /** Columns the box has for text; the view resolves it once for keys and layout. */ readonly contentWidth: number; /** Row of the prompt within Ink's live output frame; omitted when the caller does not own cursor positioning. */ readonly cursorRowOffset?: number; /** Start the editor window on the caret row; only the top border may precede it. */ readonly cursorFirst?: boolean; readonly placeholder: string; readonly hint: string; readonly completions: readonly SlashCompletion[]; readonly completionIndex: number; /** True once the terminal is handed to a selector: the box takes no more keys. */ readonly disabled: boolean; /** Maximum editor rows available in the caller's live terminal area. */ readonly maxVisibleRows?: number; /** Maximum completion rows available in the caller's live terminal area. */ readonly maxVisibleCompletions?: number; readonly showHint?: boolean; readonly showBorder?: boolean; } /** Draws a bounded editor window and aligns the physical IME cursor with its rendered caret. */ export declare function PromptInput({ text, cursor, contentWidth, cursorRowOffset, cursorFirst, placeholder, hint, completions, completionIndex, disabled, maxVisibleRows, maxVisibleCompletions, showHint, showBorder, }: PromptInputProps): ReactElement; //# sourceMappingURL=PromptInput.d.ts.map