import * as react from 'react'; import { ReactNode } from 'react'; interface CommandContextValue { open: boolean; close: () => void; query: string; setQuery: (query: string) => void; activeIndex: number; setActiveIndex: (index: number) => void; } interface CommandProps { children: ReactNode; open: boolean; onClose: () => void; className?: string; } interface CommandInputProps { placeholder?: string; className?: string; } interface CommandListProps { children: ReactNode; className?: string; } interface CommandItemProps { children: ReactNode; value?: string; onSelect?: () => void; className?: string; } interface CommandGroupProps { children: ReactNode; heading?: string; className?: string; } interface CommandEmptyProps { children?: ReactNode; className?: string; } declare function CommandInput({ placeholder, className, }: CommandInputProps): react.JSX.Element; declare namespace CommandInput { var displayName: string; } declare function CommandList({ children, className }: CommandListProps): react.JSX.Element; declare namespace CommandList { var displayName: string; } declare function CommandItem({ children, value, onSelect, className, }: CommandItemProps): react.JSX.Element | null; declare namespace CommandItem { var displayName: string; } declare function CommandGroup({ children, heading, className, }: CommandGroupProps): react.JSX.Element; declare namespace CommandGroup { var displayName: string; } declare function CommandEmpty({ children, className, }: CommandEmptyProps): react.JSX.Element; declare namespace CommandEmpty { var displayName: string; } declare function CommandRoot({ children, open, onClose, className }: CommandProps): react.JSX.Element | null; declare const Command: typeof CommandRoot & { Input: typeof CommandInput; List: typeof CommandList; Item: typeof CommandItem; Group: typeof CommandGroup; Empty: typeof CommandEmpty; }; declare function useCommand(): CommandContextValue; export { Command, type CommandContextValue, type CommandEmptyProps, type CommandGroupProps, type CommandInputProps, type CommandItemProps, type CommandListProps, type CommandProps, useCommand };