"""
Módulo de gestión de configuración para pyRofex-To-Excel.

Este módulo proporciona gestión centralizada de la configuración con
soporte para variables de entorno usando python-dotenv.
"""

# Import all configuration variables and functions
try:
    from .excel_config import (EXCEL_FILE, EXCEL_PATH, EXCEL_SHEET_PRICES,
                               EXCEL_SHEET_TICKERS, EXCEL_SHEET_TRADES,
                               EXCEL_UPDATE_INTERVAL, TRADES_BATCH_SIZE,
                               TRADES_COLUMNS, TRADES_REALTIME_ENABLED,
                               TRADES_SYNC_ENABLED,
                               TRADES_SYNC_INTERVAL_SECONDS,
                               validate_excel_config)
    from .pyrofex_config import (ACCOUNT, API_URL, ENVIRONMENT, PASSWORD, USER,
                                 WS_URL, validate_pyRofex_config)
    
    __all__ = [
        # Excel configuration
        'EXCEL_FILE', 'EXCEL_PATH', 'EXCEL_SHEET_PRICES', 'EXCEL_SHEET_TICKERS',
        'EXCEL_UPDATE_INTERVAL', 'validate_excel_config',
        
        # Trades configuration
        'EXCEL_SHEET_TRADES', 'TRADES_BATCH_SIZE', 'TRADES_SYNC_ENABLED',
        'TRADES_REALTIME_ENABLED', 'TRADES_SYNC_INTERVAL_SECONDS', 'TRADES_COLUMNS',
        
        # pyRofex configuration  
        'ENVIRONMENT', 'API_URL', 'WS_URL', 'USER', 'PASSWORD', 'ACCOUNT',
        'validate_pyRofex_config'
    ]
    
except ImportError as e:
    # Graceful fallback if config modules are not available
    print(f"Advertencia: No se pudieron importar los módulos de configuración: {e}")
    __all__ = []