import { AxiosInstance } from 'axios'; /** * @fileoverview * Provides a utility to generate a customized Axios instance configured * for internal communication with Kubernetes-based services. * * This factory function abstracts the internal token setup and * base URL configuration to ensure consistent HTTP client behavior * across the application. The internal token is passed as a custom * header to authenticate internal service-to-service requests. */ /** * @property {string} [baseUrl] - Optional base URL to be used for HTTP requests. * @property {string} k8sToken - Kubernetes service account token used for internal authentication. */ type AxiosConfigurationOptions = { baseUrl?: string; k8sToken: string; }; /** * Creates a pre-configured Axios instance for internal service communication. * * This function sets up an Axios client with the appropriate base URL and * authentication headers using the Kubernetes token. This abstraction ensures * secure and consistent use of internal headers in HTTP requests made from * services running within the cluster. * * @param {AxiosConfigurationOptions} options - Configuration details for the Axios instance. * @returns {AxiosInstance} A customized Axios client with internal auth headers set. */ export declare function createInternalAxiosClient(options: AxiosConfigurationOptions): AxiosInstance; export {};