import { Api, ApiClient, ApplicationCredentials, VoiceRegion } from '@sinch/sdk-client'; import { LazyVoiceApiClient, LazyVoiceApplicationManagementApiClient } from './voice-service'; export declare class VoiceDomainApi implements Api { readonly lazyClient: LazyVoiceApiClient | LazyVoiceApplicationManagementApiClient; readonly apiName: string; constructor(lazyClient: LazyVoiceApiClient | LazyVoiceApplicationManagementApiClient, apiName: string); get client(): ApiClient; /** * Kept for backward compatibility - TODO: remove in future major release * @return {ApiClient} * @deprecated */ getSinchClient(): ApiClient; /** * Update the default hostname for the API * @param {string} hostname - The new hostname to use for the APIs. */ setHostname(hostname: string): void; /** * Update the region in the hostname * @param {VoiceRegion} region - The new region to send the requests to */ setRegion(region: VoiceRegion): void; /** * Updates the application credentials used to authenticate API requests * @param {ApplicationCredentials} credentials */ setCredentials(credentials: Partial): void; /** * @deprecated Use setCredentials instead */ setApplication(credentials: ApplicationCredentials): void; }