from __future__ import annotations

import asyncio
from typing import Any

from app.utils.export import json_to_csv


class ExportService:
    async def export_session(self, output: Any, session_id: str) -> None:
        await asyncio.to_thread(json_to_csv, output, session_id)
