doc.yeswiki.pro/node_modules/@algolia/autocomplete-preset-algolia/dist/esm/search/fetchAlgoliaResults.d.ts

20 lines
737 B
TypeScript
Raw Normal View History

2023-05-20 16:37:42 +00:00
import { UserAgent } from '@algolia/autocomplete-shared';
import type { MultipleQueriesQuery, SearchForFacetValuesResponse, SearchResponse, SearchClient } from '../types';
export interface SearchParams {
/**
* The initialized Algolia search client.
*/
searchClient: SearchClient;
/**
* A list of queries to execute.
*/
queries: MultipleQueriesQuery[];
/**
* A list of user agents to add to the search client.
*
* This is useful to track usage of an integration.
*/
userAgents?: UserAgent[];
}
export declare function fetchAlgoliaResults<TRecord>({ searchClient, queries, userAgents, }: SearchParams): Promise<Array<SearchResponse<TRecord> | SearchForFacetValuesResponse>>;