/**
 * @ai-summary API client for user data export
 * @ai-context Downloads user export as tar.gz blob
 */

import { apiClient } from '../../../core/api/client';

export const exportApi = {
  downloadUserExport: async (): Promise<Blob> => {
    const response = await apiClient.get('/user/export', {
      responseType: 'blob',
      timeout: 120000, // 2 minute timeout for large exports
    });
    return response.data;
  },
};
