from abc import ABC, abstractmethod
from typing import List
from app.common_models.search_response import NewsResponse

class NewsRepository(ABC):

    @abstractmethod
    async def save_news(self, news: List[NewsResponse]) -> None:
        pass
    @abstractmethod 
    async def list_news(self) -> List:
        pass