export interface TextInputState { value: string; cursor: number; } export declare function createTextInput(value?: string, cursor?: number): TextInputState; export declare function normalizeTextInput(state: TextInputState): TextInputState; export declare function insertText(state: TextInputState, text: string): TextInputState; export declare function backspaceText(state: TextInputState): TextInputState; export declare function deleteText(state: TextInputState): TextInputState; export declare function moveCursor(state: TextInputState, delta: number): TextInputState; export declare function moveCursorHome(state: TextInputState): TextInputState; export declare function moveCursorEnd(state: TextInputState): TextInputState; export declare function moveCursorWordLeft(state: TextInputState): TextInputState; export declare function moveCursorWordRight(state: TextInputState): TextInputState; export declare function backspaceWord(state: TextInputState): TextInputState; export declare function deleteWord(state: TextInputState): TextInputState; export declare function charLength(value: string): number;