import { AxiosRequestConfig } from 'axios';
import { HelpCenterConfig } from '../lib/types';
export declare class ApiService {
    private axiosInstance;
    private config;
    private tokenExpiryTime;
    private currentToken;
    constructor(config: HelpCenterConfig);
    private setupInterceptors;
    private getValidToken;
    get<T>(endpoint: string, config?: AxiosRequestConfig): Promise<T>;
    post<T>(endpoint: string, data?: unknown, config?: AxiosRequestConfig): Promise<T>;
    put<T>(endpoint: string, data?: unknown, config?: AxiosRequestConfig): Promise<T>;
    delete<T>(endpoint: string, config?: AxiosRequestConfig): Promise<T>;
    private handleError;
}
