export type InputState = { value: string; cursor: number; }; export declare function clampCursor(value: string, cursor: number): number; export declare function insertText(state: InputState, text: string): InputState; export declare function moveCursorLeft(state: InputState): InputState; export declare function moveCursorRight(state: InputState): InputState; export declare function moveCursorWordLeft(state: InputState): InputState; export declare function moveCursorWordRight(state: InputState): InputState; export declare function findLineStart(value: string, cursor: number): number; export declare function findLineEnd(value: string, cursor: number): number; export declare function moveCursorLineStart(state: InputState): InputState; export declare function moveCursorLineEnd(state: InputState): InputState; export declare function moveCursorUp(state: InputState, targetColumn?: number): { state: InputState; targetColumn: number; }; export declare function moveCursorDown(state: InputState, targetColumn?: number): { state: InputState; targetColumn: number; }; export declare function deleteBackward(state: InputState): InputState; export declare function deleteForward(state: InputState): InputState; export declare function deleteWordBackward(state: InputState): InputState; export declare function deleteWordForward(state: InputState): InputState; export declare function deleteToLineStart(state: InputState): InputState; export declare function deleteToLineEnd(state: InputState): InputState;