import React from "react"; export interface ListboxOptionProps extends Omit, "role" | "tabIndex"> { /** * Unique ID used for tracking which option has virtual focus. */ id: string; hasVirtualFocus: boolean; children: React.ReactNode; /** * Callback when option is selected. * To improve performance when you have many options, * memoize the prop with e.g. useEventCallback. */ onClick: React.MouseEventHandler; } declare function ListboxOptionComponent({ id, hasVirtualFocus, children, className, ...rest }: ListboxOptionProps): React.JSX.Element; /** * This component is memoized. To improve performance when you have many options, * make sure all object props have stable references (i.e. memoize the event handlers with e.g. useEventCallback). * * NB: Remember to set `aria-selected` on selected options! */ export declare const ListboxOption: typeof ListboxOptionComponent; export {};