import * as ClientSearch from '@algolia/client-search'; import type * as AlgoliaSearch from 'algoliasearch/lite'; declare type AnyToUnknown = (any extends TSubject ? true : false) extends true ? unknown : TSubject; declare type SearchClientShape = { search: unknown; }; declare type ClientLiteV5 = AnyToUnknown< /** @ts-ignore */ ReturnType>; declare type ClientSearchV5 = AnyToUnknown< /** @ts-ignore */ ReturnType>; declare type ClientV5 = ClientLiteV5 extends SearchClientShape ? ClientLiteV5 : ClientSearchV5 extends SearchClientShape ? ClientSearchV5 : unknown; declare type PickForClient = ClientV5 extends SearchClientShape ? TMapping['v5'] : TMapping['v4']; export declare type SearchClient = PickForClient<{ /** @ts-ignore */ v4: AlgoliaSearch.SearchClient; /** @ts-ignore */ v5: ClientV5; }>; export declare type MultipleQueriesQuery = PickForClient<{ /** @ts-ignore */ v4: ClientSearch.MultipleQueriesQuery; /** @ts-ignore */ v5: AlgoliaSearch.LegacySearchMethodProps[number]; }>; export declare type SearchForFacetValuesResponse = PickForClient<{ /** @ts-ignore */ v4: ClientSearch.SearchForFacetValuesResponse; /** @ts-ignore */ v5: AlgoliaSearch.SearchForFacetValuesResponse; }>; export declare type SearchResponse = PickForClient<{ /** @ts-ignore */ v4: ClientSearch.SearchResponse; /** @ts-ignore */ v5: AlgoliaSearch.SearchResponse; }>; export declare type HighlightResult = PickForClient<{ /** @ts-ignore */ v4: ClientSearch.HighlightResult; /** @ts-ignore */ v5: AlgoliaSearch.HighlightResult; }>; export declare type SnippetResult = PickForClient<{ /** @ts-ignore */ v4: ClientSearch.SnippetResult; /** @ts-ignore */ v5: AlgoliaSearch.SnippetResult; }>; export {};