import type { StopwordsBody } from '../models/StopwordsBody.js'; import type { SynonymsBody } from '../models/SynonymsBody.js'; import type { CancelablePromise } from '../core/CancelablePromise.js'; import type { BaseHttpRequest } from '../core/BaseHttpRequest.js'; export declare class ResourcesService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Store stop words * Stop words are the words in a stop list (or stop list or negative dictionary) which are filtered out (stopped) before or after processing of natural language data (text) because they are insignificant * @param requestBody * @param languageRouting * @param sourceRouting * @returns void * @throws ApiError */ upsertStopwordHandler(requestBody: StopwordsBody, languageRouting?: string, sourceRouting?: string): CancelablePromise; /** * Delete stop words * @param languageRouting * @param sourceRouting * @returns void * @throws ApiError */ deleteStopwordHandler(languageRouting?: string, sourceRouting?: string): CancelablePromise; /** * Store synonyms * When you write a query, you can use synonyms to expand the keywords to get results that users otherwise may not have found. * This reduces the problem of getting too few or no results, leading to fewer chances of conversions or even search abandonment. * For example, if you search for "H2O", you mat want to find results that contain "water". * This happens when you store synonyms in Optimizely Graph and enable them per field in your query. Otherwise, many relevant results may not be retrieved. * @param requestBody * @param languageRouting * @param sourceRouting * @param synonymSlot * @returns void * @throws ApiError */ upsertSynonymHandler(requestBody: SynonymsBody, languageRouting?: string, sourceRouting?: string, synonymSlot?: 'one' | 'two'): CancelablePromise; /** * Delete synonyms * @param languageRouting * @param sourceRouting * @returns void * @throws ApiError */ deleteSynonymHandler(languageRouting?: string, sourceRouting?: string): CancelablePromise; }