/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Vectara from "../../../index"; export declare namespace Rerankers { interface Options { environment?: core.Supplier; token?: core.Supplier; /** Override the x-api-key header */ apiKey?: core.Supplier; fetcher?: core.FetchFunction; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the x-api-key header */ apiKey?: string | undefined; /** Additional headers to include in the request. */ headers?: Record; } } /** * List rerankers for reranking search results */ export declare class Rerankers { protected readonly _options: Rerankers.Options; constructor(_options?: Rerankers.Options); /** * Rerankers are used to improve the ranking (ordering) of search results. * * @param {Vectara.RerankersListRequest} request * @param {Rerankers.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Vectara.ForbiddenError} * * @example * await client.rerankers.list({ * filter: "vectara.*" * }) */ list(request?: Vectara.RerankersListRequest, requestOptions?: Rerankers.RequestOptions): Promise>; protected _getAuthorizationHeader(): Promise; }