from typing import Optional


class StorageClient:
    """S3 / Cloudflare R2 compatible storage wrapper."""
    def __init__(
        self,
        endpoint_url: Optional[str] = None,
        bucket_name: Optional[str] = None,
    ):
        self.endpoint_url = endpoint_url
        self.bucket_name = bucket_name

    async def upload_file(self, file_bytes: bytes, dest_path: str, content_type: str = "application/octet-stream") -> str:
        # Returns public or signed URL
        return f"https://storage.local/{dest_path}"
