import { ComboboxItem, OptionsFilter } from '@mantine/core'; import { UseLookupOptionsParams } from './types'; /** * Searches a column through the given `lookup` (usually `useApi().lookup`) for a Mantine `Select` or * `MultiSelect`, loads the next page when the dropdown is scrolled to the bottom, and keeps the labels of the * selected values. * * @param params - The column, the lookup function, the lookup mode, the selected values and the search query props. * @returns The props to spread onto the select: `data`, `loading`, `filter`, `onSearchChange`, `onDropdownOpen`, `onDropdownClose`, `scrollAreaProps`. */ export declare function useLookupOptions(params: UseLookupOptionsParams): { data: ComboboxItem[]; loading: boolean; filter: OptionsFilter; onSearchChange: (text: string) => void; onDropdownOpen: () => void; onDropdownClose: () => void; scrollAreaProps: { onBottomReached: () => void; }; };