import { ValueConverter } from "@odata2ts/converter-api"; import { ODataHttpClient } from "@odata2ts/http-client-api"; import { ODataValueResponseV4 } from "@odata2ts/odata-core"; import { ODataServiceOptionsInternal } from "../ODataServiceOptions"; import { UrlRequestCmd } from "../request"; import { ServiceStateHelper } from "../ServiceStateHelper.js"; import { ValueModificationResponseV4 } from "./ResponseTypeChoicesV4"; export declare class PrimitiveTypeServiceV4 { protected readonly __base: ServiceStateHelper; protected readonly __converter: ValueConverter; constructor(client: ClientType, basePath: string, name: string, converter?: ValueConverter, options?: ODataServiceOptionsInternal); getPath(): string; /** * Get the value. * Spec: {@link https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_RequestingIndividualProperties} * * Requesting a `null` value actually results in 204 (No Content), so `data: undefined` and not `data: { value: undefined }`. */ getValue(): UrlRequestCmd | undefined, undefined>; /** * Update the value. * Spec: https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_UpdateaPrimitiveProperty * * The response of this operation is dependent on the `Prefer` header. * By default, you get 204 and no response data, while adding the prefer header with `Prefer: return=representation` * should yield status 200 with the proper and complete model. * * If you know in which way your server responds, you can easily supply this information via a boolean switch * to get the correct typing. `true` means that the complete entity is returned, while `false` (default) determines * that no data is returned, e.g. `updateValue(...)`. * * @param value */ updateValue(value: T): UrlRequestCmd, T>; /** * Delete the value. * Spec: https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_UpdateaPrimitiveProperty * * The response should be 204 and no data. */ deleteValue(): UrlRequestCmd; }