/** Guards page shortcuts from firing inside text fields, editors, dialogs, and * widgets with typeahead such as menus, lists and trees. */ export declare function isTextEntryContext(target: EventTarget | null): boolean; /** The key, or none while UIProvider's `characterKeyShortcuts` is off and it is a character key, * which speech input can press. A named key such as Escape isn't one, so it stays. */ export declare function useOfferedShortcut(key: string | undefined): string | undefined; /** Calls `onPress` on a single key, such as F to filter, unless the key goes to a text field or * `useOfferedShortcut` drops it. */ export declare function useShortcutKey(shortcut: string | undefined, onPress: () => void): void;