import { ClientTransporterOptions } from '@algolia/client-common'; import { FindAnswersOptions } from '@algolia/client-search'; import { FindAnswersResponse } from '@algolia/client-search'; import { MultipleQueriesOptions } from '@algolia/client-search'; import { MultipleQueriesQuery } from '@algolia/client-search'; import { MultipleQueriesResponse } from '@algolia/client-search'; import { Request } from '@algolia/transporter'; import { RequestOptions } from '@algolia/transporter'; import { SearchClient as SearchClient_2 } from '@algolia/client-search'; import { SearchClientOptions } from '@algolia/client-search'; import { SearchForFacetValuesQueryParams } from '@algolia/client-search'; import { SearchForFacetValuesResponse } from '@algolia/client-search'; import { SearchIndex as SearchIndex_2 } from '@algolia/client-search'; import { SearchOptions } from '@algolia/client-search'; import { SearchResponse } from '@algolia/client-search'; declare function algoliasearch(appId: string, apiKey: string, options?: AlgoliaSearchOptions): SearchClient; declare namespace algoliasearch { var version: string; } export default algoliasearch; export declare type AlgoliaSearchOptions = Partial & WithoutCredentials; declare type Credentials = { readonly appId: string; readonly apiKey: string; }; export declare type SearchClient = SearchClient_2 & { readonly initIndex: (indexName: string) => SearchIndex; readonly search: (queries: readonly MultipleQueriesQuery[], requestOptions?: RequestOptions & MultipleQueriesOptions) => Readonly>>; readonly searchForFacetValues: (queries: ReadonlyArray<{ readonly indexName: string; readonly params: SearchForFacetValuesQueryParams & SearchOptions; }>, requestOptions?: RequestOptions) => Readonly>; readonly customRequest: (request: Request, requestOptions?: RequestOptions) => Readonly>; }; export declare type SearchIndex = SearchIndex_2 & { readonly search: (query: string, requestOptions?: RequestOptions & SearchOptions) => Readonly>>; readonly searchForFacetValues: (facetName: string, facetQuery: string, requestOptions?: RequestOptions & SearchOptions) => Readonly>; readonly findAnswers: (query: string, queryLanguages: readonly string[], requestOptions?: RequestOptions & FindAnswersOptions) => Readonly>>; }; export declare type WithoutCredentials = Omit; export { }