/** * This file was auto-generated by Fern from our API Definition. */ import * as core from "../../../../core"; import * as environments from "../../../../environments"; import * as Vectara from "../../../index"; export declare namespace Auth { 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; } } export declare class Auth { protected readonly _options: Auth.Options; constructor(_options?: Auth.Options); /** * Obtain an OAuth2 access token using client credentials * * @param {Vectara.AuthGetTokenRequest} request * @param {Auth.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.auth.getToken({ * clientId: "client_id", * clientSecret: "client_secret" * }) */ getToken(request: Vectara.AuthGetTokenRequest, requestOptions?: Auth.RequestOptions): Promise; protected _getAuthorizationHeader(): Promise; }