createEncryptedProtoDataStore
fun <T : Any> createEncryptedProtoDataStore(storage: Storage<T>, migrations: List<DataMigration<T>> = emptyList(), corruptionHandler: ReplaceFileCorruptionHandler<T>? = null, registry: StoreRegistry? = null): DataStore<T>
Creates a DataStore over a caller-supplied storage (Okio, IndexedDB, etc.).
Prefer the producePath overload for file targets and createEncryptedProtoDataStoreIndexedDb for web typed stores.
Callers must ensure io.github.jdbenitez94.criollo.kmp.foundation.kryptostore.crypto.CryptoRuntime is Ready before reading/writing encrypted stores (REQ-STO-05).
fun <T : Any> createEncryptedProtoDataStore(cipher: Cipher, kSerializer: KSerializer<T>, defaultValue: T, producePath: () -> Path, options: EncryptedStoreOptions = EncryptedStoreOptions(), migrations: List<DataMigration<T>> = emptyList(), corruptionHandler: ReplaceFileCorruptionHandler<T>? = null, registry: StoreRegistry? = null): DataStore<T>
File-backed encrypted proto DataStore using Okio + platform kryptostoreFileSystem.