/** * Facade over `client.store` (`aaf_sdk.js`): `get`, `set`, `delete`. * * ECC source: `com.drishti.ameyo.application.app.impl.StoreDataService` * (service name **`store`**). Runtime-only key/value store scoped to the * current `appId` — values are **not** persisted to the database. Use * `appConf` for configuration that must survive reload. */ export interface AafStoreApi { get: (key: string) => Promise; set: (key: string, value: unknown) => Promise; delete: (key: string) => Promise; } export interface HasStore { store: AafStoreApi; } export function storeGet(client: HasStore, key: string): Promise { return client.store.get(key); } export function storeSet(client: HasStore, key: string, value: unknown): Promise { return client.store.set(key, value); } export function storeDelete(client: HasStore, key: string): Promise { return client.store.delete(key); }