import { BackupFn, BulkUploadItemsFn, ModalState } from '@wix/bex-core';
import { CreateExportAsyncJobRequest } from '@wix/bex-utils/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/types';

type ImportButtonToolbarType = 'default' | 'bulkActionToolbar';

export interface ImportButtonParams
  extends Pick<CreateExportAsyncJobRequest, 'fields'> {
  bulkUploadItems: BulkUploadItemsFn;
  backup?: BackupFn;
  batchSize?: number;
}

export type ImportButtonProps = ImportButtonParams & {
  toolbarType?: ImportButtonToolbarType;
};

export type ImportModalProps = ImportButtonParams;

export type ImportButtonModalLayoutProps = ImportModalProps & {
  importModalState: ModalState;
};
