/** * HTTP-layer constants shared by the core `createApi` factory. */ /** Canonical request/response header names used across the SDK. */ export declare const HTTP_HEADER: { readonly AUTHORIZATION: "Authorization"; readonly DEVICE_ID: "DeviceID"; readonly DEVICE_IP: "DeviceIP"; readonly CLIENT_ID: "X-Client-Id"; readonly USER_AGENT: "user-agent"; readonly REQUEST_ID: "x-request-id"; /** * Backend response-casing selector. Default backend casing is camelCase * (omit the header); send `snake` to receive snake_case bodies. */ readonly RESPONSE_CASING: "x-response-casing"; /** * Backend request-casing selector. Default is camelCase (omit the header); * send `snake` to declare a snake_case request body. */ readonly REQUEST_CASING: "x-request-casing"; }; /** Supported response-casing values. camelCase is the backend default. */ export declare const RESPONSE_CASING_VALUE: { readonly CAMEL: "camel"; readonly SNAKE: "snake"; }; export type ResponseCasing = (typeof RESPONSE_CASING_VALUE)[keyof typeof RESPONSE_CASING_VALUE]; export type RequestCasing = ResponseCasing; /** * Serialization format discriminator. Accepted by content / rules / * lenses list endpoints via `?format=json|yaml`. */ export declare const SERIALIZATION_FORMAT: { readonly JSON: "json"; readonly YAML: "yaml"; }; export type SerializationFormat = (typeof SERIALIZATION_FORMAT)[keyof typeof SERIALIZATION_FORMAT]; /** Default per-request tuning (overridable via `createCmsSDK` options). */ export declare const HTTP_DEFAULTS: { readonly TIMEOUT_MS: 30000; readonly RETRY: 0; }; /** Status codes eligible for automatic retry (transient failures). */ export declare const HTTP_RETRY_STATUS_CODES: readonly [408, 425, 429, 500, 502, 503, 504]; //# sourceMappingURL=http.constant.d.ts.map