import type * as React from 'react'; export interface AutocompleteItem extends Omit, 'name'> { /** * Unique identifier for this item */ id: string; /** * Displayed value of the item. May alternatively provide a `children` value */ name?: string; /** * Custom React node as an alternative to a string-only `name` */ children?: React.ReactNode; /** * Whether this item should be counted as one of the results for the purpose of announcing the * result count to screen readers * @deprecated This is no longer used, as we no longer have custom messaging for screen readers * @hide-prop [Deprecated] */ isResult?: boolean; } export interface AutocompleteItemGroup { /** * Label displayed as the group header in the autocomplete menu. */ label: string; /** * Array of items contained within this group. * Each item should conform to the `AutocompleteItem` type. */ items: AutocompleteItem[]; /** * Unique identifier for the group. */ id: string; } export type AutocompleteItems = Array; export interface AutocompleteProps { /** * Screen reader-specific label for the Clear search `