import { AxiosInstance } from 'axios'; import { VeroComplianceClientConfig } from './config'; import { ApiResponse } from '../types'; /** * HTTP client for VeroCompliance API * Handles all HTTP communication with configurable endpoints */ export declare class HttpClient { private axiosInstance; private endpointBuilder; private config; private inflightGets; private _cachedToken; constructor(config: VeroComplianceClientConfig); buildEndpoint(controller: string, action: string): string; /** * Update the runtime locale used for the `Accept-Language` header on * subsequent requests. Called by the provider whenever the user switches * language in the SDK so workflow APIs (questionnaire, risk scoring, * appropriateness test, overview, upload-document, identity, …) refetch * translated content from the backend. * * Also clears the in-flight GET dedup cache so a refetch immediately after * a language change is not silently merged with the previous request. */ setLocale(locale: string | undefined): void; private dedupKey; get(controller: string, action: string, params?: any): Promise>; post(controller: string, action: string, data?: any): Promise>; /** * POST multipart form data — used to upload a document file on its own, streamed by the browser * instead of being base64-encoded into a JSON body with every other file of the step. * * Note this bypasses the SDK payload encryption: an encrypted envelope is JSON, which is exactly the * shape we're avoiding here. The upload is still protected by TLS like every other request. */ postForm(controller: string, action: string, form: FormData, onUploadProgress?: (percent: number) => void): Promise>; put(controller: string, action: string, data?: any): Promise>; delete(controller: string, action: string, params?: any): Promise>; private handleResponse; private isEncryptionActive; getAxiosInstance(): AxiosInstance; } //# sourceMappingURL=http-client.d.ts.map