import { Token } from '../types'; import { TenantMetaData } from '../types'; import SdkBase from './SdkBase'; import { SdkConfiguration } from './SdkConfiguration'; export declare class AuthenticationSdk extends SdkBase { /** * Instantiate the SDK. * @param {SdkConfiguration} config - The SDK configuration. */ constructor(config: SdkConfiguration); /** * Generate an authentication token. * @param {string} email - The user's email address. * @param {string} tenantId - The tenant ID. * @param {string} password - The user's password. * @param {AbortController} [cancellationToken] - Optional cancellation token for cancelling the request. * @returns {Promise} The generated authentication token */ generateToken(email: string, password: string, tenantId: string, cancellationToken?: AbortController): Promise; /** * Fetch details about an authentication token. * @param {string} token - The authentication token to inspect. * @param {AbortController} [cancellationToken] - Optional cancellation token for cancelling the request. * @returns {Promise} The token details */ getTokenDetails(token: string, cancellationToken?: AbortController): Promise; /** * Get tenants associated with an email address. * @param {string} email - The email address to lookup tenants for. * @param {AbortController} [cancellationToken] - Optional cancellation token for cancelling the request. * @returns {Promise} Array of tenants associated with the email * @throws {Error | ApiErrorResponse} Rejects if the URL is invalid or if the request fails. */ getTenantsForEmail(email: string, cancellationToken?: AbortController): Promise; }