import { IconType } from '@autoguru/icons'; import { type ComponentPropsWithoutRef, type ReactElement, type Ref } from 'react'; import { TextInput } from '../TextInput/TextInput'; export interface AutoSuggestValue { text: string; payload: PayloadType | null | undefined; skip?: boolean; } export type AutoSuggestItemRenderer = (props: { value: AutoSuggestValue; highlight: boolean; suggestions: Array>; }) => ReactElement; type Suggestions = Array>; export interface AutoSuggestProps extends Omit, 'onChange' | 'value' | 'type' | 'suffixIcon'> { autoFocus?: boolean; autoWidth?: boolean; inlineOptions?: boolean; fieldIcon?: IconType; value: AutoSuggestValue | null; suggestions: Suggestions; itemRenderer?: AutoSuggestItemRenderer; onChange?(value: AutoSuggestValue): void; onEnter?(value: AutoSuggestValue): void; } export declare const AutoSuggest: (p: AutoSuggestProps & { ref?: Ref; }) => ReactElement; export {}; //# sourceMappingURL=AutoSuggest.d.ts.map