accounts
Version:
Tempo Accounts SDK
24 lines • 1.14 kB
TypeScript
import { type Configuration } from 'react-native-mmkv';
import * as Storage from '../core/Storage.js';
/** Creates an encrypted storage adapter backed by `react-native-mmkv`. */
export declare function secureMmkv(options?: secureMmkv.Options): Storage.Storage;
export declare namespace secureMmkv {
/** Options for `secureMmkv`. */
type Options = Storage.from.Options & {
/** MMKV instance id. @default "tempo-secure" */
id?: string | undefined;
/** MMKV root path. */
path?: string | undefined;
/** MMKV encryption key. Defaults to a key loaded from Expo SecureStore. */
encryptionKey?: string | undefined;
/** MMKV encryption type. @default "AES-256" */
encryptionType?: Configuration['encryptionType'] | undefined;
/** MMKV process mode. */
mode?: Configuration['mode'] | undefined;
/** Whether the MMKV instance is read-only. */
readOnly?: boolean | undefined;
/** Whether MMKV should skip writes when the value is unchanged. */
compareBeforeSet?: boolean | undefined;
};
}
//# sourceMappingURL=secureMmkv.d.ts.map