import { ApplicationCredentials, SinchClientParameters, UnifiedCredentials, VoiceRegion } from '@sinch/sdk-client'; import { ApplicationsApi } from './v1/applications'; import { ConferencesApi } from './v1/conferences'; import { CallsApi } from './v1/calls'; import { CalloutsApi } from './v1/callouts'; import { LazyVoiceApiClient, LazyVoiceApplicationManagementApiClient } from './v1/lazy-voice-api-client'; import { VoiceV2Service } from './v2'; /** * The Voice Service exposes the following APIs: * - applications * - callouts * - conferences * - calls * - v2 (Voice API v2: `v2.calls`, `v2.batches`, `v2.sessions`, `v2.services`, `v2.svaml`) */ export declare class VoiceService { readonly applications: ApplicationsApi; readonly conferences: ConferencesApi; readonly calls: CallsApi; readonly callouts: CalloutsApi; readonly v2: VoiceV2Service; /** @internal */ readonly lazyVoiceClient: LazyVoiceApiClient; /** @internal */ readonly lazyVoiceAppMgmtClient: LazyVoiceApplicationManagementApiClient; /** * Create a new VoiceService instance with its configuration. It needs the following parameters for authentication: * - `applicationKey` * - `applicationSecret` * * Other supported properties: * - `voiceRegion` * - `voiceHostname` * - `voiceApplicationManagementHostname` * - `projectId`, `keyId`, `keySecret` (required for Voice v2) * - `voiceV2Hostname` (optional Voice v2 hostname override) * @param {SinchClientParameters} params - an Object containing the necessary properties to initialize the service */ /** @internal */ constructor(params: SinchClientParameters); setApiClientConfig(newParams: SinchClientParameters): void; /** * Update the default hostname for each API except Applications * @param {string} hostname - The new hostname to use for all the APIs except Applications. */ setHostname(hostname: string): void; /** * Update the default hostname for the Applications API * @param {string} hostname - The new hostname to use for the Applications API. */ setApplicationsManagementHostname(hostname: string): void; /** * Update the default hostname for Voice API v2 * @param {string} hostname - The new hostname to use for Voice v2 APIs. */ setV2Hostname(hostname: string): void; /** * Update the current region for each API * @param {VoiceRegion} region - The new region to use in the production URL */ setRegion(region: VoiceRegion): void; /** * Updates the credentials used to authenticate API requests. * @param credentials - The new credentials to use for the APIs. */ setCredentials(credentials: Partial): void; /** * Updates the OAuth2 credentials used to authenticate Voice v2 API requests. * @param credentials - The new OAuth2 credentials to use for Voice v2. */ setV2Credentials(credentials: Partial): void; }