import { ODataHttpClient, ODataHttpMethods } from "@odata2ts/http-client-api"; import { CollectionQueryBuilderV4, ModelQueryBuilderV4 } from "@odata2ts/odata-query-builder"; import { QueryObjectModel } from "@odata2ts/odata-query-objects"; import { RequestCmdOptions } from "./RequestCmd"; import { UrlBuilderRequestCmdV4 } from "./UrlBuilderRequestCmdV4"; /** * A V4 request which modifies the resource its query builder addresses - `create`, `update` and `patch`. * * Reads and writes share {@link UrlBuilderRequestCmdV4}, so the two controls over optimistic concurrency * live here rather than there: they mean nothing on a `query`. */ export declare class UrlBuilderWriteRequestCmdV4 = CollectionQueryBuilderV4, DataStructure = undefined> extends UrlBuilderRequestCmdV4 { constructor(client: ODataHttpClient, method: ODataHttpMethods, urlBuilder: Builder, q: Q, data?: DataStructure, options?: RequestCmdOptions); /** * State the ETag to write against, instead of letting odata2ts look it up - see * {@link UrlWriteRequestCmd.withETag}. */ withETag(etag: string): this; /** * Write regardless of who else changed the resource, by sending `If-Match: *` (OData V4.01 Part 1, * ยง8.2.1). Services may reject it. */ ignoreETag(): this; /** * Overridden so the clone is a write command too: the inherited version names its own class, and would * hand back a command that has silently forgotten the ETag just stated on this one. */ addToQuery(modFunction: (urlBuilder: Builder, q: Q) => Builder): UrlBuilderWriteRequestCmdV4; }