import { Dispatch, RefObject, SetStateAction, Context } from 'react'; /** Internal state shared by all Command compound slots. */ export type CommandContextValue = { /** Current search string entered in `Command.Input`. */ search: string; setSearch: Dispatch>; /** ID of the currently highlighted `Command.Item` (`aria-activedescendant`). */ activeId: string | undefined; setActiveId: Dispatch>; /** Stable ID for `Command.List` — referenced by `Command.Input` as `aria-controls`. */ listId: string; /** Ref attached to the `Command.List` DOM node for keyboard navigation DOM queries. */ listRef: RefObject; }; export declare const CommandContext: Context; /** Consume the Command context. Throws when used outside `Command.Content`. */ export declare const useCommandContext: () => CommandContextValue;