import { BatchRequestBuilder } from '@sap-cloud-sdk/odata-common/internal'; import type { HttpDestinationOrFetchOptions } from '@sap-cloud-sdk/connectivity'; import type { DeSerializers, DefaultDeSerializers } from '../de-serializers'; import type { BatchResponse } from '../batch-response'; /** * Create a batch request to invoke multiple requests as a batch. The batch request builder accepts retrieve requests, i.e. {@link GetAllRequestBuilder | getAll} and {@link GetByKeyRequestBuilder | getByKey} requests and change sets, which in turn can contain {@link CreateRequestBuilder | create}, {@link UpdateRequestBuilder | update} or {@link DeleteRequestBuilder | delete} requests. * The retrieve and change sets will be executed in order, while the order within a change set can vary. */ export declare class ODataBatchRequestBuilder extends BatchRequestBuilder { /** * Execute the given request and return the according promise. Please notice: The sub-requests may fail even the main request is successful. * @param destination - Targeted destination or DestinationFetchOptions on which the request is performed. * @returns Promise resolving to the requested data. */ execute(destination: HttpDestinationOrFetchOptions): Promise[]>; }