package com.tt.honeyDue.data

/**
 * Platform-specific persistence manager for storing app data to disk.
 * Each platform implements this using their native storage mechanisms.
 *
 * Android: SharedPreferences
 * iOS: UserDefaults
 * JVM: Properties file
 * Wasm: LocalStorage
 */
@Suppress("NO_ACTUAL_FOR_EXPECT")
expect class PersistenceManager {
    /**
     * Save a string value to persistent storage.
     */
    fun save(key: String, value: String)

    /**
     * Load a string value from persistent storage.
     * Returns null if the key doesn't exist.
     */
    fun load(key: String): String?

    /**
     * Remove a specific key from storage.
     */
    fun remove(key: String)

    /**
     * Clear all stored data.
     */
    fun clear()
}
