export interface TextInputProps { value: string; cursor: number; /** Show * for each character instead of the actual value */ mask?: boolean; /** Placeholder text shown when value is empty */ placeholder?: string; /** Color of the input text */ color?: string; } export declare function TextInput({ value, cursor, mask, placeholder, color }: TextInputProps): import("react/jsx-runtime").JSX.Element; export interface InputState { value: string; cursor: number; } export declare const EMPTY_INPUT: InputState; /** Reduce a key event into an InputState. Returns null if the key was not handled. */ export declare function reduceInput(state: InputState, ch: string, key: { backspace?: boolean; delete?: boolean; leftArrow?: boolean; rightArrow?: boolean; home?: boolean; end?: boolean; ctrl?: boolean; meta?: boolean; }): InputState | null; //# sourceMappingURL=TextInput.d.ts.map