import { HeadersProvider } from '../auth'; /** * Error thrown when an HTTP request to the MLflow backend returns a non-2xx response. * Carries the parsed status code and (when present) the `error_code` field from the * response body so callers can branch on status without matching error messages. */ export declare class MlflowHttpError extends Error { readonly status: number; readonly statusText: string; readonly body: string; readonly errorCode?: string; constructor(status: number, statusText: string, body: string); private static formatMessage; private static extractErrorCode; } /** * Make a request to the given URL with the given method, headers, body, and timeout. * * TODO: add retry logic for transient errors */ export declare function makeRequest(method: string, url: string, headerProvider: HeadersProvider, body?: any, timeout?: number): Promise; /** * Send a raw (already-serialized) body — e.g. OTLP protobuf bytes — to `url`. * `extraHeaders` merge over the auth headers (to override `Content-Type` etc). * The response body is ignored; non-2xx throws {@link MlflowHttpError} so * callers can branch on `status` (e.g. 501 capability gating). */ export declare function makeRawRequest(method: string, url: string, headerProvider: HeadersProvider, body: BodyInit, extraHeaders?: Record, timeout?: number): Promise;