/** * Ink key events translated into the editor's own keys. * * Every view that holds a text buffer has to agree on what Backspace, the * arrows, Home/End and Ctrl+K do — a gesture that works in the conversation and * not in an exec question is a bug the user has no way to explain. The mapping * lives here so there is one place to add a key to, and each view keeps only * what is its own: what Enter and Esc mean, and whether it takes pasted images. */ import type { Key } from 'ink'; import type { EditorKey } from './editorState.js'; /** * The editing key this event stands for, or null when the view has to decide. * * Null covers both "nothing to edit here" (a chord the buffer has no meaning * for) and the keys a view answers itself, which it therefore handles before * asking: Enter, Esc and the interrupts. */ export declare function resolveEditorKey(input: string, key: Key, contentWidth: number): EditorKey | null; //# sourceMappingURL=editorKeys.d.ts.map