/** * MemoryStack Provider Component * Wrap your app with this to enable MemoryStack hooks */ import React, { ReactNode } from 'react'; import type { MemoryStackConfig } from '../types'; export interface MemoryStackProviderProps { /** Children components */ children: ReactNode; /** MemoryStack configuration */ config: MemoryStackConfig; /** * Optional AsyncStorage instance for offline support * Pass @react-native-async-storage/async-storage */ storage?: { getItem: (key: string) => Promise; setItem: (key: string, value: string) => Promise; removeItem: (key: string) => Promise; }; /** * Optional NetInfo instance for network detection * Pass @react-native-community/netinfo */ netInfo?: { fetch: () => Promise<{ isConnected: boolean | null; isInternetReachable: boolean | null; }>; addEventListener: (callback: (state: { isConnected: boolean | null; }) => void) => () => void; }; } /** * MemoryStack Provider * * @example * ```tsx * import AsyncStorage from '@react-native-async-storage/async-storage'; * import NetInfo from '@react-native-community/netinfo'; * * function App() { * return ( * * * * ); * } * ``` */ export declare function MemoryStackProvider({ children, config, storage, netInfo, }: MemoryStackProviderProps): React.ReactElement; export default MemoryStackProvider; //# sourceMappingURL=MemoryStackProvider.d.ts.map