package com.optix.android.domain.repository

import com.optix.android.domain.model.Session
import kotlinx.coroutines.flow.Flow

interface SessionRepository {
    suspend fun saveSession(session: Session): Long
    suspend fun getSession(id: Long): Session?
    fun getAllSessions(): Flow<List<Session>>
    fun getSessionsByTool(toolSlug: String): Flow<List<Session>>
    suspend fun deleteSession(id: Long)
    fun exportToJson(session: Session): String
    fun importFromJson(json: String): Session?
}
