import { ApiListPromise } from '@sinch/sdk-client'; import { Call, CallResponse, CreateCallRequestData, GetCallByIdRequestData, ListCallsRequestData, PatchCallByIdRequestData, PatchCallBySessionAndNameRequestData } from '../../../models/v2'; import { VoiceV2DomainApi } from '../voice-v2-domain-api'; import { LazyVoiceV2ApiClient } from '../voice-v2-service'; export declare class CallsApi extends VoiceV2DomainApi { /** @internal */ constructor(lazyClient: LazyVoiceV2ApiClient); /** * Create and initiate an outbound voice call * Create a new outbound call associated to the project's default service or to the service * specified in the `serviceId` query parameter. For a batch of outbound call sessions, use * `voice.v2.batches.start` instead. * @param { CreateCallRequestData } data - The data to provide to the API call. */ start(data: CreateCallRequestData): Promise; /** * List calls made with Sinch Voice API * List and filter calls made with Sinch * @param { ListCallsRequestData } data - The data to provide to the API call. * @return {ApiListPromise} */ list(data?: ListCallsRequestData): ApiListPromise; /** * Retrieve call details by call ID * Retrieve detailed information about a specific call using its unique identifier. * @param { GetCallByIdRequestData } data - The data to provide to the API call. */ get(data: GetCallByIdRequestData): Promise; /** * Patch an ongoing call by call ID * Interact with an ongoing call by submitting a set of SVAML commands. * Use this to force disconnect, play messages, bridge with another call, or perform other call control actions. * @param { PatchCallByIdRequestData } data - The data to provide to the API call. */ interactByCallId(data: PatchCallByIdRequestData): Promise; /** * Patch an ongoing call by session ID and call name * Interact with an ongoing call identified by its session and call name by submitting a set of SVAML commands. * Use this to force disconnect, play messages, bridge with another call, or perform other call control actions. * @param { PatchCallBySessionAndNameRequestData } data - The data to provide to the API call. */ interactByCallName(data: PatchCallBySessionAndNameRequestData): Promise; }