import { Schema } from '@coveo/bueno'; import type { PostprocessSearchResponseMiddleware } from '../../api/search/search-api-client-middleware.js'; import { type EngineConfiguration } from '../engine-configuration.js'; /** * The recommendation engine configuration. */ export interface RecommendationEngineConfiguration extends EngineConfiguration { /** * Specifies the name of the query pipeline to use for the query. If not specified, the default query pipeline will be used. */ pipeline?: string; /** * The first level of origin of the request, typically the identifier of the graphical search interface from which the request originates. * Coveo Machine Learning models use this information to provide contextually relevant output. * Notes: * This parameter will be overridden if the search request is authenticated by a search token that enforces a specific searchHub. * When logging a Search usage analytics event for a query, the originLevel1 field of that event should be set to the value of the searchHub search request parameter. */ searchHub?: string; /** * The locale of the current user. Must comply with IETF’s BCP 47 definition: https://www.rfc-editor.org/rfc/bcp/bcp47.txt. * * Notes: * Coveo Machine Learning models use this information to provide contextually relevant output. * Moreover, this information can be referred to in query expressions and QPL statements by using the $locale object. */ locale?: string; /** * The [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) identifier of the time zone to use to correctly interpret dates in the query expression, facets, and result items. * By default, the timezone will be [guessed](https://day.js.org/docs/en/timezone/guessing-user-timezone). * * @example * America/Montreal */ timezone?: string; /** * Allows for augmenting a search response before the state is updated. */ preprocessSearchResponseMiddleware?: PostprocessSearchResponseMiddleware; /** * The base URL to use to proxy Coveo search requests (for example, `https://example.com/search`). * * This is an advanced option that you only set if you proxy Coveo search requests through your own * server. In most cases, you should not set this option. * * See [Headless proxy: Recommendation engine](https://docs.coveo.com/en/headless/latest/usage/proxy#recommendation-engine). */ proxyBaseUrl?: string; } export declare const recommendationEngineConfigurationSchema: Schema; /** * Creates a sample recommendation engine configuration. * * @returns The sample recommendation engine configuration. */ export declare function getSampleRecommendationEngineConfiguration(): RecommendationEngineConfiguration;