/**
 * Export/Import Type Definitions
 */

export type ExportFormat = 'csv' | 'xlsx';

export interface ExportRequest {
  format: ExportFormat;
  variation_ids?: number[];
  all_variations?: boolean;
}

export interface ExportResponse {
  success: boolean;
  filename: string;
  content: string; // base64 encoded
  content_type: string;
  count: number;
  // License limit fields (optional, only present if limited)
  limited?: boolean;
  exported?: number; // Number of rows actually exported (when limited)
  warning?: string;
  limit?: number;
  total?: number;
}

export interface ImportResponse {
  success: boolean;
  message: string;
  data: {
    updated: number;
    errors: string[];
  };
}
