react-native-onyx
Version:
State management for React Native
10 lines (9 loc) • 460 B
TypeScript
import type { OnyxKey, OnyxValue } from '../../types';
import type StorageProvider from './types';
type Store = Record<OnyxKey, OnyxValue<OnyxKey>>;
declare const storeInternal: Store;
declare const set: (key: OnyxKey, value: OnyxValue<OnyxKey>) => Promise<unknown>;
declare const provider: StorageProvider<Store>;
declare const setMockStore: (data: Store) => void;
export default provider;
export { set as mockSet, storeInternal as mockStore, setMockStore };