import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs"; import * as core from "../../../../core/index.mjs"; import * as Corti from "../../../index.mjs"; export declare namespace AuthClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class AuthClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options: AuthClient.Options); /** * @param {Corti.OAuthTokenRequest} request * @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.auth.getToken({ * clientId: "client_id", * clientSecret: "client_secret" * }) */ getToken(request: Corti.OAuthTokenRequest, requestOptions?: AuthClient.RequestOptions): core.HttpResponsePromise; private __getToken; /** * Exchange credentials for a short-lived access token. Supports grant_type client_credentials (server-to-server), * authorization_code (with client_secret), authorization_code with PKCE (code_verifier), password (ROPC), or refresh_token. Use the returned access_token in the Authorization header when calling the Corti API. * * @param {string} tenantName * @param {Corti.AuthTokenRequestBody} request * @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.BadRequestError} * @throws {@link Corti.UnauthorizedError} * * @example * await client.auth.token("tenantName", { * clientId: "client_id", * clientSecret: "client_secret", * grantType: "client_credentials" * }) */ token(tenantName: string, request: Corti.AuthTokenRequestBody, requestOptions?: AuthClient.RequestOptions): core.HttpResponsePromise; private __token; }