/** * useConfigPanelKeyboard - ConfigPanelのキーボード操作専用カスタムフック * * このフックは、ConfigPanelでのキーボード操作ロジックを集約します。 * - ESCキーでキャンセル * - Enterキーで適用(IME変換確定時のEnterキーと、パネル内のリンク上のEnterキーは除外) * - ConfigPanel内の要素のみでEnterキーを有効化 * * @example * ```tsx * const { handleKeyDown } = useConfigPanelKeyboard({ * isOpen, * canApply, * handleApply, * onCancel, * floatingRef, * }); * ``` */ export type UseConfigPanelKeyboardProps = { isOpen: boolean; canApply: () => boolean; handleApply: () => void; onCancel: () => void; floatingRef: React.MutableRefObject; }; export type UseConfigPanelKeyboardReturn = { handleKeyDown: (event: React.KeyboardEvent) => void; }; export declare const useConfigPanelKeyboard: ({ isOpen, canApply, handleApply, onCancel, floatingRef, }: UseConfigPanelKeyboardProps) => UseConfigPanelKeyboardReturn;