import type { AxiosError, AxiosInstance, AxiosResponse } from "axios"; import type { CompiledServiceInfo, CompileUrlResult, ResponseFormat } from "../types/driver"; /** Lower-cases axios header keys, joining array values, into a plain record. */ export declare function normalizeAxiosHeaders(headers: unknown): Record | null; /** Adapts a raw AxiosResponse into the canonical ResponseFormat. */ export declare function axiosResponseToResponseFormat(res: AxiosResponse, duration: number): ResponseFormat; /** Maps an AxiosError to a standardized PROBLEM_CODE string. */ export declare function mapAxiosErrorToProblem(error: AxiosError): string; /** * Executes one request through the axios instance and normalizes the result. * The method is resolved dynamically per call (`axiosInstance[method]`) so that * consumers/tests can swap `instance.get`, `instance.request`, etc. at runtime. */ export declare function executeAxiosCall(axiosInstance: AxiosInstance, apiInfo: CompileUrlResult, serviceInfo: CompiledServiceInfo, globalTimeout: number | undefined): Promise>;