export type CommandPaletteHotkeysOptions = { /** Off while the palette is open, or on a page that should not take the keys. Default `true`. */ isEnabled?: boolean; /** * A printable key typed outside an editable field opens the palette * with that character as the query. Default `true`. */ isOpenedByTyping?: boolean; /** Receives the text the palette should open with: `""`, or the character typed. */ onOpen: (initialQuery: string) => void; }; export declare const getIsTypingTarget: (target: EventTarget | null) => boolean; /** * The global keys that open a command palette, as an opt-in hook. * * - **`Ctrl K`, `Ctrl Space`** (or `⌘` on a Mac) open it from * anywhere, a text field included — the chord types nothing. * - **`/`** opens it when focus is not somewhere that types, and * the slash itself is not typed. * - **Any printable key** does the same and becomes the query, so * the page is a search box without a click (`isOpenedByTyping`). * * It is a hook, not something `CommandPalette` does on mount, * because a document-wide key listener is a page-level decision: an * app with two palettes, or a page where letters already mean * something (a board with its own shortcuts), must be able to say * no. See * `docs/decisions/2026-10-16-command-palette-hotkeys-are-an-opt-in-hook.md`. * * A key another handler already claimed (`defaultPrevented`), a key * pressed during IME composition, and a key with `Alt` held are all * left alone. */ export declare const useCommandPaletteHotkeys: ({ isEnabled, isOpenedByTyping, onOpen, }: CommandPaletteHotkeysOptions) => void; //# sourceMappingURL=useCommandPaletteHotkeys.d.ts.map