export const errorConfig = {
  // Authentication timeouts
  auth: {
    tokenRefreshInterval: 45 * 60 * 1000, // 45 minutes
    sessionTimeout: 60 * 60 * 1000, // 1 hour
    maxRetryAttempts: 3,
  },
  
  // Upload timeouts
  upload: {
    maxUploadTime: 300000, // 5 minutes
    maxFileSize: 100 * 1024 * 1024, // 100MB
    progressCheckInterval: 2000, // 2 seconds
  },
  
  // Processing timeouts
  processing: {
    maxProcessingTime: 1800000, // 30 minutes
    progressUpdateInterval: 5000, // 5 seconds
    maxRetries: 3,
  },
  
  // Network timeouts
  network: {
    requestTimeout: 30000, // 30 seconds
    retryDelay: 1000, // 1 second
    maxRetries: 3,
  },
  
  // Error messages
  messages: {
    tokenExpired: 'Your session has expired. Please log in again.',
    uploadFailed: 'File upload failed. Please try again.',
    processingFailed: 'Document processing failed. Please try again.',
    networkError: 'Network error. Please check your connection and try again.',
    unauthorized: 'You are not authorized to perform this action.',
    serverError: 'Server error. Please try again later.',
  },
  
  // Logging levels
  logging: {
    auth: 'info',
    upload: 'info',
    processing: 'info',
    error: 'error',
  },
}; 