UNPKG

react-native-cloud-store

Version:
18 lines (17 loc) 833 B
export declare function kvSync(): Promise<void>; export declare function kvSetItem(key: string, value: string): Promise<void>; export declare function kvGetItem(key: string): Promise<string | undefined>; export declare function kvRemoveItem(key: string): Promise<void>; export declare function kvGetAllItems(): Promise<Record<string, string>>; export declare enum KVStoreChangedReason { NSUbiquitousKeyValueStoreServerChange = 0, NSUbiquitousKeyValueStoreInitialSyncChange = 1, NSUbiquitousKeyValueStoreQuotaViolationChange = 2, NSUbiquitousKeyValueStoreAccountChange = 3 } interface KVStoreChangedData { reason: KVStoreChangedReason; changedKeys?: string[]; } export declare function onICloudKVStoreRemoteChange(fn: (data: KVStoreChangedData) => void): import("react-native").EmitterSubscription; export {};