/**
 * API Service for making CRUD operations
 *
 * This service provides a simple interface for common API operations.
 * It works with any axios-compatible instance.
 */
import type { AxiosInstance } from 'axios';
export interface ApiService {
    fetch(params?: Record<string, any>): Promise<any>;
    create(data: any): Promise<any>;
    update(data: any): Promise<any>;
    delete(id: string | number): Promise<any>;
    get(id: string | number): Promise<any>;
    exportExcel(params?: Record<string, any>, customUrl?: string): Promise<any>;
}
/**
 * Creates an API service instance for a given resource
 * @param axiosInst - Axios instance to use (defaults to library's configured instance)
 * @param resource - API resource path (e.g., '/api/users')
 */
export default function apiService(axiosInst: AxiosInstance, resource: string): ApiService;
//# sourceMappingURL=apiService.d.ts.map