"""
LDR News - AI-powered news aggregation and analysis module.
"""

# Import core classes
from ..database.models import (
    NewsSubscription as BaseSubscription,
    SubscriptionFolder,
    UserPreference,
    UserRating as Rating,
)
from ..scheduler.background import (
    BackgroundJobScheduler,
    get_background_job_scheduler,
)
from .folder_manager import FolderManager

# Import API functions
from .api import (
    get_news_feed,
    research_news_item,
    save_news_preferences,
    get_news_categories,
)

# Backward-compat aliases (deprecate in next minor version).
NewsScheduler = BackgroundJobScheduler
get_news_scheduler = get_background_job_scheduler

__all__ = [
    # Core classes
    "BaseSubscription",
    "SubscriptionFolder",
    "UserPreference",
    "Rating",
    "BackgroundJobScheduler",
    "get_background_job_scheduler",
    "NewsScheduler",  # deprecated alias
    "get_news_scheduler",  # deprecated alias
    "FolderManager",
    # API functions
    "get_news_feed",
    "research_news_item",
    "save_news_preferences",
    "get_news_categories",
]
