import { ChangeEvent, Dispatch } from 'react'; import { ShareRightAction, ShareRightWithVisibles, ShareSubject } from '@edifice.io/client'; import { OptionListItemType } from '../../../../components'; import { ShareOptions } from '../ShareResources'; import { ShareAction } from './useShare'; export declare const useSearch: ({ resourceId, resourceCreatorId, shareRights, shareDispatch, urlResourceRights, defaultActions, }: { resourceId: ShareOptions["resourceCreatorId"]; resourceCreatorId: ShareOptions["resourceCreatorId"]; shareRights: ShareRightWithVisibles; shareDispatch: Dispatch; urlResourceRights?: string; defaultActions?: ShareRightAction[]; }) => { state: { searchInputValue: string; searchResults: OptionListItemType[]; searchAPIResults: ShareSubject[]; isSearching: boolean; }; showSearchAdmlHint: () => boolean; showSearchLoading: () => boolean; showSearchNoResults: () => boolean; getSearchMinLength: () => number; handleSearchInputChange: (event: ChangeEvent) => void; handleSearchResultsChange: (model: Array) => Promise; };