import { JSX, SyntheticEvent } from 'react'; import { Search } from '../../search'; import { BaseSearch } from '../../search/constants'; export type LocationInputProps = { placeholder?: string; searchOnSelection?: boolean; searchOnEnter?: boolean; className?: string; inputClassName?: string; submitSearch?: (e?: SyntheticEvent) => void; setSearchField: (payload: { [key: string]: string | number | null | undefined; }) => void; search: S; }; export declare const DEBOUNCE_DELAY = 200; /** * Renders a search text input with location autosuggest. * * You must pass both the search and the setSearchField function from the useSearchForm hook. * * @example * ```tsx * const { search, setSearchField } = useSearchForm(); * * * ``` */ declare function LocationInput({ placeholder, searchOnSelection, searchOnEnter, className, inputClassName, submitSearch, setSearchField, search, }: LocationInputProps): JSX.Element; export default LocationInput; //# sourceMappingURL=location-input.d.ts.map