/** * Composer overrides for the native Textarea key-binding table (INPUT-002, * V2-040/041). * * OpenTUI's `TextareaRenderable` already implements move/select/word/delete/ * undo semantics (INPUT-004/005) — this module only overrides the small set * of chords where the library default is wrong for a submit-on-Enter * composer, plus explicit word vs line kill chords: * * Option/Alt + Backspace/Delete → delete one word * Cmd (Mac) / Ctrl (Win) + Backspace/Delete → delete whole line * * Terminals report modifiers inconsistently: Option is usually `meta`, Cmd * is usually `super` (and sometimes arrives as Ctrl+U for Backspace). */ export type TextareaActionName = "submit" | "newline" | "delete-to-line-start" | "delete-to-line-end" | "delete-line" | "delete-word-backward" | "delete-word-forward" | "select-all" | "select-word-backward" | "select-word-forward" | "select-line-home" | "select-line-end"; export interface TextareaKeyBindingLike { readonly name: string; readonly ctrl?: boolean; readonly shift?: boolean; readonly meta?: boolean; readonly super?: boolean; readonly action: TextareaActionName; } export declare function buildComposerTextareaOverrides(): TextareaKeyBindingLike[];