import type { ComponentType } from "react"; /** * Options for `withArrowKeyNavigation()`. * * @deprecated This HOC is deprecated and will be removed in a future release * (5.42.0). Please use alternative navigation methods. */ export interface WithArrowKeyNavigationOptions { /** * Primary selector to determine child nodes. */ selector: string; /** * Secondary selector to get secondary nodes that are logically associated * with primary nodes (must match count and position). */ secondarySelector?: string; /** * Callback to allow arrow key navigation to get the active node. If false, * the first node found will be used as the active node. */ getActiveNode: (props: T) => number | false; /** * Callback to handle the delete key being pressed. */ onDeleteKey?: (props: T, nodeIndex: number) => void; /** * Determines whether the control expects up/down navigation, or left/right * navigation. */ isVertical?: (props: T) => boolean; } /** * A HOC that adds arrow key navigation between child elements of a component. * * @deprecated This HOC is deprecated and will be removed in a future release * (5.42.0). Please use alternative navigation methods. * @param WrappedComponent The component to wrap. * @param options Options to control navigation. */ export declare function withArrowKeyNavigation(WrappedComponent: ComponentType, options: WithArrowKeyNavigationOptions): ComponentType;