import { Ref } from 'vue'; import { UseQueryReturnType } from '@tanstack/vue-query'; import { GlobalSearchResultType, GlobalSearchResponse } from './CGlobalSearch.types'; export interface SearchAPI { query: Ref | string; includeExpired?: Ref | boolean; } export interface UseGlobalSearchParams { debounceTime?: number; initialSearchQuery?: string; resultTypes?: GlobalSearchResultType[] | Ref; includeExpired?: Ref | boolean; api: (params: SearchAPI) => UseQueryReturnType; } declare const useGlobalSearch: ({ api, debounceTime, resultTypes, includeExpired, }: UseGlobalSearchParams) => { isSearchOpen: Ref; openSearch: (open?: boolean) => void; data: import('vue').ComputedRef; isLoading: import('vue').ComputedRef; search: Ref; updateSearch: (query: string) => void; }; export default useGlobalSearch;