import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { S as SiteDocumentSearch, a as SearchOptions, b as SearchResponse, D as DocumentTypeWithLiterals, A as AutocompleteOptions, c as AutocompleteResponse, d as SuggestOptions, e as SuggestResponse } from './search-platformized-v1-site-document-wix-site-search.universal-TdVMLStL.js'; export { o as Aggregation, w as AggregationData, p as AggregationKindOneOf, H as AggregationResults, I as AggregationResultsResultOneOf, z as AggregationResultsScalarResult, h as AggregationType, _ as AggregationTypeWithLiterals, K as AutocompleteRequest, L as AutocompleteResponseValue, $ as CommonSearchWithEntityContext, i as DocumentType, t as NestedAggregation, r as NestedAggregationItem, s as NestedAggregationItemKindOneOf, N as NestedAggregationType, Z as NestedAggregationTypeWithLiterals, E as NestedResultValue, F as NestedResultValueResultOneOf, G as NestedResults, P as Paging, J as PagingMetadata, R as Results, q as ScalarAggregation, C as ScalarResult, g as ScalarType, Y as ScalarTypeWithLiterals, l as Search, u as SearchDetails, m as SearchPagingMethodOneOf, k as SearchRequest, v as SearchResponsePagingOneOf, j as SiteDocument, U as SiteDocumentSearchSpec, f as SortOrder, X as SortOrderWithLiterals, n as Sorting, O as Suggest, T as SuggestDetails, Q as SuggestPagingMethodOneOf, M as SuggestRequest, V as ValueAggregation, x as ValueAggregationResult, B as ValueResult, y as ValueResults, W as utils } from './search-platformized-v1-site-document-wix-site-search.universal-TdVMLStL.js'; declare function search$1(httpClient: HttpClient): SearchSignature; interface SearchSignature { /** * Retrieves a list of site documents that match the provided search query and optionally performs aggregations on the data queried. * * The `search()` API supports the document types listed in the [Introduction](https://dev.wix.com/docs/sdk/backend-modules/search/wix-site-search/introduction), each with its own schema. These schemas define the fields available for filtering, sorting, and free-text searching. * * To learn more about working with the search query, see [API Query Language](https://dev.wix.com/docs/sdk/articles/working-with-the-sdk/api-query-language). * @param - Search query and aggregation information. */ (search: SiteDocumentSearch, options?: NonNullablePaths): Promise>; } /** @internal */ declare function autocomplete$1(httpClient: HttpClient): AutocompleteSignature; interface AutocompleteSignature { /** * Provides phrase completion. For example "blu" could return "blue", "blues" and "blunt" as candidate phrases. * This operation is resource heavy at index time and is reserved for special use cases. * @param - Query phrase to fetch completions for. * @param - Document type to use to search for phrases. */ (query: string, documentType: DocumentTypeWithLiterals, options?: AutocompleteOptions): Promise>; } /** @internal */ declare function suggest$1(httpClient: HttpClient): SuggestSignature; interface SuggestSignature { /** * Executes search query to fetch suggested items. Unlike search query, suggest will match * partial phrases (for example "blu" will match documents containing "blue", "blues" and "blunt"). * Phrase needs to be at least 3 symbols long. Suggestions can also perform optimizations in search * results and generally do not guarantee the same level of quality as regular Search endpoint. * @param - Document type of documents to search for. */ (documentType: DocumentTypeWithLiterals, options?: NonNullablePaths): Promise>; } declare const search: MaybeContext & typeof search$1>; /** @internal */ declare const autocomplete: MaybeContext & typeof autocomplete$1>; /** @internal */ declare const suggest: MaybeContext & typeof suggest$1>; export { AutocompleteOptions, AutocompleteResponse, DocumentTypeWithLiterals, SearchOptions, SearchResponse, SiteDocumentSearch, SuggestOptions, SuggestResponse, autocomplete, search, suggest };