import * as React from "react"; /** * Single source of truth for keyboard keys and modifier checks used in custom UI logic. * Radix UI primitives keep their built-in keyboard behavior; use these only where * the codebase adds its own key handling (data grid, sidebar, charts, carousel, etc.). */ /** Key string constants for consistent comparisons (event.key === Keys.Enter). */ export declare const Keys: { readonly Enter: "Enter"; readonly Escape: "Escape"; readonly Tab: "Tab"; readonly Space: " "; readonly ArrowLeft: "ArrowLeft"; readonly ArrowRight: "ArrowRight"; readonly ArrowUp: "ArrowUp"; readonly ArrowDown: "ArrowDown"; readonly Home: "Home"; readonly End: "End"; readonly PageUp: "PageUp"; readonly PageDown: "PageDown"; readonly F2: "F2"; readonly Backspace: "Backspace"; readonly Delete: "Delete"; }; /** Whether Ctrl (Windows/Linux) or Cmd (macOS) is pressed. */ export declare function isMod(event: KeyboardEvent | React.KeyboardEvent): boolean; /** True when target is an input, textarea, or contenteditable — skip shortcuts while typing. */ export declare function shouldIgnoreKeyboardShortcut(target: EventTarget | null): boolean; /** App-level shortcut key characters (used with modifiers in components). */ export declare const SHORTCUT_KEYS: { readonly search: "f"; readonly sidebarToggle: "b"; readonly commandPalette: "k"; readonly shortcutsDialog: "/"; readonly filter: "f"; readonly sort: "s"; }; /** Keys that remove filter/sort when focused on filter/sort trigger (Backspace, Delete). */ export declare const REMOVE_SHORTCUT_KEYS: readonly ["Backspace", "Delete"]; //# sourceMappingURL=keyboard.d.ts.map