UNPKG

expo-native-storage

Version:
19 lines 984 B
export declare class NativeStorage { setItem(key: string, value: string): Promise<void>; getItem(key: string): Promise<string | null>; removeItem(key: string): Promise<void>; clear(): Promise<void>; setObject<T extends Record<string, unknown>>(key: string, value: T): Promise<void>; getObject<T extends Record<string, unknown> = Record<string, unknown>>(key: string): Promise<T | null>; setItemSync(key: string, value: string): void; getItemSync(key: string): string | null; removeItemSync(key: string): void; clearSync(): void; setObjectSync<T extends Record<string, unknown>>(key: string, value: T): void; getObjectSync<T extends Record<string, unknown> = Record<string, unknown>>(key: string): T | null; multiGet(keys: string[]): Promise<Record<string, string | null>>; multiSet(items: Record<string, string>): Promise<void>; } declare const Storage: NativeStorage; export default Storage; //# sourceMappingURL=index.d.ts.map