export interface StorageAdapter { getItem(key: string): string | null | Promise; setItem(key: string, value: string): void | Promise; removeItem(key: string): void | Promise; } type MMKVLike = { getString: (key: string) => string | undefined; set: (key: string, value: string | number | boolean | ArrayBuffer) => void; remove: (key: string) => boolean; }; export declare class MemoryStorageAdapter implements StorageAdapter { private readonly store; getItem(key: string): string | null; setItem(key: string, value: string): void; removeItem(key: string): void; } export declare class MMKVStorageAdapter implements StorageAdapter { private readonly storage; constructor(storage: MMKVLike); getItem(key: string): string | null; setItem(key: string, value: string): void; removeItem(key: string): void; } /** Uses the existing namespace so historical logs and preferences remain readable. * Native initialization is deferred to the first operation, inside the runtime's * failure boundary. Merely importing this module never opens MMKV. */ export declare function createDefaultLogStorage(): StorageAdapter; /** Mirror current values in memory and stop using a failed disk permanently. */ export declare function createResilientStorage(disk: StorageAdapter, onFailure: (error: unknown) => void, rejectFailedWrites?: boolean, isActive?: () => boolean): StorageAdapter; export {}; //# sourceMappingURL=StorageAdapter.d.ts.map