import React from "react"; import { BookingForm } from "./use-react-booking-form"; import { OffsetType } from "./guest-select"; export declare type SelectType = { formatResults?: any; debounceDelay?: number; form: BookingForm; name: string; menuContainer: React.ElementType; menu: React.ElementType; placeholder?: string; inputComponent: React.ElementType; emptyOption?: any; selectOnClick?: boolean; autoComplete?: string; option: React.ElementType; /** * Popup window position offset */ offset?: OffsetType; /** * This is a hack: when the selector is used in Gatsby inside of a @headlessui/react Dialog * then if Portal isn't passed externally and used here from @headlessui/react * then it would create a bug where the Dialog would close whenever user clicks on the Option * and not select anything. This prop allows to ensure intended behavior. */ portal?: React.ElementType; }; export declare const LocationSelect: ({ form, menu: Menu, menuContainer: MenuContainer, option: Option, inputComponent: InputComponent, emptyOption, debounceDelay, selectOnClick, name, formatResults, autoComplete, placeholder, offset, portal: PortalInput, }: SelectType) => JSX.Element;