use std::path::PathBuf;

/// Search backend (mirrors Python `--search-engine`).
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RegistryEngine {
    Kvk,
    Northdata,
}

/// NL + KVK only: optional Bizzy HTML VAT backfill.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum VatIdSearchEngine {
    None,
    Bizzy,
}

/// Full pipeline settings (randomized loop + single-query mode).
#[derive(Clone, Debug)]
pub struct GlobalRegistryPipelineConfig {
    pub engine: RegistryEngine,
    pub country_code: String,
    pub output_csv: PathBuf,
    pub kvk_api_url: String,
    pub northdata_base_url: String,
    pub northdata_cookie: Option<String>,
    pub min_query_len: usize,
    pub max_query_len: usize,
    pub query_seed: String,
    pub words_file: PathBuf,
    pub seed_csv_path: Option<PathBuf>,
    pub randomize_no_seed_csv: bool,
    pub insert: bool,
    pub max_workers: usize,
    pub vat_id_search_engine: VatIdSearchEngine,
}

/// Backwards-compatible name (KVK-only callers can set `engine: Kvk`).
pub type RandomizedKvkConfig = GlobalRegistryPipelineConfig;
