import { HTMLAttributes } from "react"; export interface CreateActiveDescendantOptions { onKeyDown?: HTMLAttributes["onKeyDown"]; includeSpace?: boolean | null; } /** * A small util function that will click an active descendant when the * Enter or space keys are pressed from a container element. */ export default function createKeyboardClickHandler(onKeyDown: HTMLAttributes["onKeyDown"], includeSpace?: boolean): (event: import("react").KeyboardEvent) => void;