import type { ActiveDescendantContext } from "./activeDescendantContext"; import type { KeyboardFocusCallbacks, KeyboardFocusHookReturnValue } from "./useKeyboardFocus"; /** * @internal * @remarks \@since 5.0.0 */ export interface ActiveDescendantFocusHookOptions extends KeyboardFocusCallbacks { /** * An optional DOM id for one of the children that should be focused by * default. */ defaultActiveId?: string; } /** * @internal * @remarks \@since 5.0.0 */ export interface ActiveDescendantFocusHookReturnValue extends KeyboardFocusHookReturnValue { /** * The current DOM id of a child that has keyboard focus. */ "aria-activedescendant": string; /** * An object of props that should be passed to the * {@link ActiveDescendantMovementProvider}. */ providerProps: Readonly; } /** * @see {@link ActiveDescendantMovementProvider} for an example * @internal * @remarks \@since 5.0.0 */ export declare function useActiveDescendantFocus({ defaultActiveId, ...options }?: ActiveDescendantFocusHookOptions): ActiveDescendantFocusHookReturnValue;