import { ODataHttpClient } from "@odata2ts/http-client-api"; import { ODataModelPayloadFor, ODataVersionV4 } from "@odata2ts/odata-core"; import { CollectionQueryBuilderV4, ModelQueryBuilderV4 } from "@odata2ts/odata-query-builder"; import { QueryObjectModel } from "@odata2ts/odata-query-objects"; import { ODataServiceOptionsInternal } from "../ODataServiceOptions"; import { ConcurrencyOptions } from "../request/RequestCmd.js"; import { ServiceStateHelper } from "../ServiceStateHelper.js"; export interface SubtypeOptions { withCastPathSegment?: boolean; withTypeControlInfo?: boolean; } export declare class ServiceStateHelperV4 extends ServiceStateHelper { qModel: Q; constructor(client: ODataHttpClient, basePath: string, name: string, qModel: Q, options?: ODataServiceOptionsInternal); createQueryBuilder: (queryFn?: (builder: CollectionQueryBuilderV4, qObject: Q) => void, path?: string) => CollectionQueryBuilderV4; createModelQueryBuilder: (queryFn?: (builder: ModelQueryBuilderV4, qObject: Q) => void, path?: string) => ModelQueryBuilderV4; /** * The concurrency options for a command addressing this very entity. * * An arrow-function property rather than a method, like everything else on the state helper the * services reach for: they destructure it off `this.__base`, and a method would lose its `this` the * moment it is pulled off the object. * * Reading the body's ETag goes through {@link getBodyETagV4}, which knows both the 4.0 and the 4.01 * spelling - never hard-code either here. */ getConcurrencyOptions: () => ConcurrencyOptions; evaluateSubtypeOptions(options: SubtypeOptions | undefined): { dontUseCastPathSegment: boolean; useTypeCi: boolean | undefined; }; addTypeControlInfo(model: ODataModelPayloadFor): ODataModelPayloadFor; }