/** * Interceptores de Axios para request/response */ import type { AxiosInstance, AxiosResponse, InternalAxiosRequestConfig } from 'axios'; import { RateLimitError, AuthenticationError, QuotaExceededError } from '../errors'; import type { Logger } from '../utils/logger'; export interface InterceptorConfig { logger?: Logger; onRateLimit?: (error: RateLimitError) => void; onAuthError?: (error: AuthenticationError) => void; onQuotaExceeded?: (error: QuotaExceededError) => void; sanitizeHeaders?: boolean; } export declare function setupInterceptors(axiosInstance: AxiosInstance, config?: InterceptorConfig): void; export declare function addCustomInterceptor(axiosInstance: AxiosInstance, interceptor: { request?: (config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise; response?: (response: AxiosResponse) => AxiosResponse | Promise; error?: (error: any) => any; }): { eject: () => void; }; //# sourceMappingURL=index.d.ts.map