import { ODataHttpClient } from "@odata2ts/http-client-api"; import { CollectionQueryBuilderV2, ModelQueryBuilderV2 } from "@odata2ts/odata-query-builder"; import { QueryObjectModel } from "@odata2ts/odata-query-objects"; import { ODataServiceOptionsInternalV2 } from "../ODataServiceOptions"; import { ConcurrencyOptions } from "../request/RequestCmd.js"; import { ServiceStateHelper } from "../ServiceStateHelper"; export declare class ServiceStateHelperV2 extends ServiceStateHelper { qModel: Q; /** * Whether every response of this service is reshaped as V4 - see {@link ODataServiceOptionsInternalV2}. * * Kept as its own field rather than widening the inherited (V4-shaped) {@link ServiceStateHelper.options}, * since `v2ResponseAsV4` has no place in that type. */ private readonly asV4; constructor(client: ODataHttpClient, basePath: string, name: string, qModel: Q, options?: ODataServiceOptionsInternalV2); isAsV4(): AsV4; /** * The ETag this response states for the addressed entity. * * V2 puts it in `__metadata.etag` and wraps the entity in a `d` envelope. A service reshaping its * responses as V4 has had both undone by the time a harvest runs, so that one reads the V4 control * information instead - which is why the reader is chosen here rather than inside a single helper * trying every spelling. */ private etagOf; /** * The concurrency options for a command addressing this very entity - an arrow-function property, since * the services destructure it off `this.__base`. */ getConcurrencyOptions: () => ConcurrencyOptions; createQueryBuilder: (queryFn?: (builder: CollectionQueryBuilderV2, qObject: Q) => void, path?: string) => CollectionQueryBuilderV2; createModelQueryBuilder: (queryFn?: (builder: ModelQueryBuilderV2, qObject: Q) => void, path?: string) => ModelQueryBuilderV2; }