import { GetCallInformation, GetCallResultRequestData, ManageWithCallLegRequestData, UpdateCallRequestData } from '../../../models'; import { VoiceDomainApi } from '../voice-domain-api'; import { LazyVoiceApiClient } from '../voice-service'; export declare class CallsApi extends VoiceDomainApi { constructor(lazyClient: LazyVoiceApiClient); /** * Get information about a call * You can retrieve information about an ongoing or completed call using a call ID. You can find the call ID of an ongoing call by viewing the response object from a callout request. You can find the call ID of a completed call by looking at your call logs in your Sinch [Dashboard](https://dashboard.sinch.com/voice/logs). Note: You can only use this method for calls that terminate to PSTN or SIP networks from an In-app call. * @param { GetCallResultRequestData } data - The data to provide to the API call. */ get(data: GetCallResultRequestData): Promise; /** * Manage Call with `callLeg` * This method is used to manage ongoing, connected calls. This method is only used when using the `PlayFiles` and `Say` instructions in the request body. This method uses SVAML in the request body to perform various tasks related to the call. For more information about SVAML, see the [Callback API](/docs/voice/api-reference/svaml/) documentation. Note: You can only use this method for calls that originate from or terminate to PSTN or SIP networks. * @param { ManageWithCallLegRequestData } data - The data to provide to the API call. */ manageWithCallLeg(data: ManageWithCallLegRequestData): Promise; /** * Update a call in progress * This method is used to manage ongoing, connected calls. This method uses SVAML in the request body to perform various tasks related to the call. For more information about SVAML, see the [Callback API](/docs/voice/api-reference/svaml/) documentation. This method can only be used for calls that originate from or terminate to PSTN or SIP networks. * @param { UpdateCallRequestData } data - The data to provide to the API call. */ update(data: UpdateCallRequestData): Promise; }