import { Component } from 'react'; import { TextInputProps } from 'react-native'; export declare enum ShortcutEnums { TAB = "tab", ESC = "esc", ENTER = "enter", BACKSPACE = "backspace", UP = "up", DOWN = "down", LEFT = "left", RIGHT = "right" } interface ShortcutHandlerProps extends TextInputProps { /** Object of functions to call for each shortcut. */ handlers: { [T in ShortcutEnums]?: () => void; }; /** Whether the TextInput handling the shortcuts should be rendered. */ hidden?: boolean; } interface ShortcutHandlerState { selection: { start: number; end: number; }; } export declare class ShortcutHandler extends Component { constructor(props: ShortcutHandlerProps); private readonly inputRef; private lastHandledShortcut; private get input(); blur(): void | null; clear(): void | null; focus(): void | null; isFocused(): boolean | null; private readonly onKeyPress; private readonly onSelectionChange; render(): JSX.Element; } export {};