import type { SearchResponse } from '@algolia/client-search'; import type { ComputedRef } from 'vue'; import type { AlgoliaIndices, RequestOptionsObject } from '../../types'; export type SearchParams = { query: string; } & RequestOptionsObject; export type UseSearchReturnType = { result: ComputedRef>; search: (params: SearchParams) => Promise>; }; export declare function useAlgoliaSearch(indexName?: K): UseSearchReturnType; export declare function useAlgoliaSearch(indexName?: string): UseSearchReturnType;