import { a as QueryParams, c as StatusCode1xx, d as StatusCode4xx, f as StatusCode5xx, i as HeaderParams, l as StatusCode2xx, n as HeadersInit, o as Server, r as Res, s as StatusCode, t as AbstractFetchClientConfig, u as StatusCode3xx } from "./types-Dv8r_Ddi.cjs"; //#region ../typescript-common-runtime/dist/esm/request-bodies/url-search-params.d.mts //#region src/request-bodies/url-search-params.d.ts type Style = "deepObject" | "form" | "pipeDelimited" | "spaceDelimited"; interface Encoding { explode?: boolean; style?: Style; } /** * Serializes a request body as `application/x-www-form-urlencoded` with the exact * semantics defined by the provided encodings, falling back to the default encoding * specified by the OAI specification. */ //#endregion //#region src/main.d.ts declare abstract class AbstractFetchClient { protected readonly basePath: string; protected readonly defaultHeaders: Record; protected readonly defaultTimeout: number | undefined; protected constructor(config: AbstractFetchClientConfig); protected _fetch>(url: string, opts: RequestInit, timeout?: number | undefined): Promise; protected _query(params: QueryParams, encodings?: Record): string; /** * Combines headers for a request, with precedence * 1. default headers * 2. route level header parameters * 3. raw request config (escape hatch) * * following these rules: * - header values of `undefined` are skipped * - header values of `null` will remove/delete any previously set headers * * Eg: * Passing `Authorization: null` as a parameter, will clear out any * default `Authorization` header. * * But passing `Authorization: undefined` as parameter will fallthrough * to the default `Authorization` header. * * @param paramHeaders * @param optsHeaders * @protected */ protected _headers(paramHeaders?: HeaderParams, optsHeaders?: HeadersInit): Headers; protected _requestBodyToUrlSearchParams(obj: Record, encoding?: Record): URLSearchParams; private setHeaders; private headersAsArray; } //#endregion export { AbstractFetchClient, AbstractFetchClientConfig, type HeaderParams, HeadersInit, type QueryParams, Res, type Server, type StatusCode, type StatusCode1xx, type StatusCode2xx, type StatusCode3xx, type StatusCode4xx, type StatusCode5xx }; //# sourceMappingURL=main.d.cts.map