import { ODataHttpClient } from "@odata2ts/http-client-api"; import { ODataVersionV4 } from "@odata2ts/odata-core"; import { MultipartBatchBuilder } from "./batch/BatchBuilder.js"; import { ODataServiceOptionsInternal } from "./ODataServiceOptions"; import { ServiceStateHelper } from "./ServiceStateHelper.js"; /** * The base class for the main OData service client. * * @template V The odata version of the service * @template TBuilder The {@link BatchBuilder} a generated service is stamped with - the wire format fixed at * generation time, so {@link batch} returns a builder whose `add` matches that format (a JSON one may name * `dependsOn`, a multipart one may not). */ export declare class ODataService> { protected readonly __base: ServiceStateHelper; /** * Takes the internal options, so that generated main services can pass on what the generator decided, * e.g. the OData version. Users only get to see the public options via the generated service. */ constructor(client: ODataHttpClient, basePath: string, options?: ODataServiceOptionsInternal); getPath(): string; /** * Starts collecting requests to send them as one `$batch`. * * The builder applies the service's `batch` option: it refuses to be built at all where the feature was * switched off. The wire format is the `TBuilder` the service is stamped with at generation - a JSON batch is * built where that format is configured, a multipart batch otherwise. * * The result is a tuple, element-for-element the type the application would get from running those * requests one by one, so the answer of a slot that never ran is `T | undefined` rather than a second, * batch-specific shape. */ batch(): TBuilder; }