import { ComponentPropsWithoutRef } from 'react'; import { ButtonProps as RACButtonProps } from 'react-aria-components'; type RACButtonPassthrough = Omit; export type SuggestionProps = RACButtonPassthrough & { /** Used as both visible text and the accessible name. */ label: string; className?: string; }; export type SuggestionListProps = Omit, "children" | "onSelect" | "style"> & { /** * Suggestions in display order; each string is both label and selection * payload. Enforce the maximum count upstream. */ suggestions: string[]; /** Receives selected text and its zero-based display position. */ onSelect: (suggestion: string, index: number) => void; className?: string; }; export {};