import { UpdateRequestBuilderBase } from '@sap-cloud-sdk/odata-common/internal'; import type { HttpDestinationOrFetchOptions } from '@sap-cloud-sdk/connectivity'; import type { HttpResponse } from '@sap-cloud-sdk/http-client'; import type { EntityIdentifiable, EntityApi } from '@sap-cloud-sdk/odata-common/internal'; import type { Entity } from '../entity'; import type { DefaultDeSerializers, DeSerializers } from '../de-serializers'; /** * Create OData query to update an entity. * @template EntityT - Type of the entity to be updated. */ export declare class UpdateRequestBuilder extends UpdateRequestBuilderBase implements EntityIdentifiable { readonly _entity: EntityT; /** * Creates an instance of UpdateRequestBuilder. * @param entityApi - Entity API for building and executing the request. * @param _entity - Entity to be updated. */ constructor(entityApi: EntityApi, _entity: EntityT); /** * Executes the query. * @param destination - Destination or DestinationFetchOptions to execute the request against. * @returns A promise resolving to the entity once it was updated. */ execute(destination: HttpDestinationOrFetchOptions): Promise; /** * Execute request and return an {@link @sap-cloud-sdk/http-client!HttpResponse}. The request is only executed if some properties of the entity are modified. * @param destination - Destination or DestinationFetchOptions to execute the request against. * @returns A promise resolving to an {@link @sap-cloud-sdk/http-client!HttpResponse} when the request is executed or `undefined` otherwise. */ executeRaw(destination: HttpDestinationOrFetchOptions): Promise; }