import React from 'react'; interface DocSearchModalShortcuts { /** * Enable/disable the Ctrl/Cmd+K shortcut to toggle the DocSearch modal. * * @default true */ 'Ctrl/Cmd+K'?: boolean; /** * Enable/disable the / shortcut to open the DocSearch modal. * * @default true */ '/'?: boolean; } interface SidepanelShortcuts { /** * Enable/disable the Ctrl/Cmd+I shortcut to toggle the DocSearch sidepanel. * * @default true */ 'Ctrl/Cmd+I'?: boolean; } type KeyboardShortcuts = DocSearchModalShortcuts & SidepanelShortcuts; interface UseDocSearchKeyboardEventsProps { isOpen: boolean; onOpen: () => void; onClose: () => void; /** * Deprecated: Still here for backwards compat. * * @deprecated */ onInput?: (event: KeyboardEvent) => void; /** * Deprecated: Still here for backwards compat. * * @deprecated */ searchButtonRef?: React.RefObject; isAskAiActive: boolean; onAskAiToggle: (toggle: boolean) => void; keyboardShortcuts?: KeyboardShortcuts; } declare function useDocSearchKeyboardEvents({ isOpen, isAskAiActive, onAskAiToggle, onClose, onOpen, keyboardShortcuts, }: UseDocSearchKeyboardEventsProps): void; export { useDocSearchKeyboardEvents }; export type { UseDocSearchKeyboardEventsProps };