/** * 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 Encoders { 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 available encoders (such as Boomerang) that turn text into vectors */ export declare class Encoders { protected readonly _options: Encoders.Options; constructor(_options?: Encoders.Options); /** * Encoders are used to store and retrieve from a corpus. * * @param {Vectara.EncodersListRequest} request * @param {Encoders.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Vectara.ForbiddenError} * * @example * await client.encoders.list({ * filter: "vectara.*" * }) */ list(request?: Vectara.EncodersListRequest, requestOptions?: Encoders.RequestOptions): Promise>; protected _getAuthorizationHeader(): Promise; }