import { AriaAutocompleteProps } from 'react-aria/useAutocomplete'; import { AriaLabelingProps, DOMProps, FocusableElement, FocusEvents, KeyboardEvents, Node, ValueBase } from '@react-types/shared'; import { AriaTextFieldProps } from 'react-aria/useTextField'; import { AutocompleteState } from 'react-stately/private/autocomplete/useAutocompleteState'; import { ContextValue, SlotProps, SlottedContextValue } from './utils'; import React, { JSX } from 'react'; export interface AutocompleteProps extends AriaAutocompleteProps, SlotProps { } export declare const AutocompleteContext: React.Context>>>; export declare const AutocompleteStateContext: React.Context; export interface SelectableCollectionContextValue extends DOMProps, AriaLabelingProps { filter?: (nodeTextValue: string, node: Node) => boolean; /** Whether the collection items should use virtual focus instead of being focused directly. */ shouldUseVirtualFocus?: boolean; /** Whether typeahead is disabled. */ disallowTypeAhead?: boolean; } interface FieldInputContextValue extends DOMProps, FocusEvents, KeyboardEvents, Pick, 'onChange' | 'value'>, Pick { } export declare const SelectableCollectionContext: React.Context, HTMLElement>>; export declare const FieldInputContext: React.Context, FocusableElement>>; /** * An autocomplete allows users to search or filter a list of suggestions. */ export declare function Autocomplete(props: AutocompleteProps): JSX.Element; export {};