/** * A write to a resource under optimistic concurrency control, for which no ETag is known. * * Thrown before the request is sent: the service would answer `428 Precondition Required` and change * nothing (OData V4.01 Part 1, ยง11.4.1.1), so the round trip has nothing to offer. */ export declare class ODataConcurrencyError extends Error { readonly resource: string; constructor(resource: string); } /** * Whether a failed request failed because the resource had changed since its ETag was read - the conflict * optimistic concurrency control exists to surface. * * Resolving it is the application's business: re-read, merge, write again. odata2ts reports the conflict * and does nothing clever about it. */ export declare function isConcurrencyConflict(error: unknown): boolean; /** * Whether the service demanded an ETag which was not sent. * * With a service that annotates itself this should not happen - odata2ts would have thrown an * {@link ODataConcurrencyError} before sending anything. Reaching this means the service requires * optimistic concurrency control without announcing it, which is the one case odata2ts cannot detect on * its own, so the guard earns its place as a diagnostic. */ export declare function isConcurrencyRequired(error: unknown): boolean;