import { TaplyticsProviderHooksArgs } from './TaplyticsProvider.types'; /** * @description This hook utilizes the `setTaplyticsNewSessionListener` listener to detect * when a new session has been initiated and updates the context state. The listener also * gets triggered when the `user_id` or `email` attribute of the user is updated through the * `setUserAttributes` method. * * On `android` the `setTaplyticsNewSessionListener` is not triggered upon app start. * The `getRunningExperimentsAndVariations` method is used instead. * * @param setStateFunctions An object of type `TaplyticsProviderHooksArgs` which contains * functions to manipulate the context state. */ export declare const useAppStartAndNewSessionListener: ({ setError, setIsLoading, setRunningFeatureFlags, setExperiments, }: TaplyticsProviderHooksArgs) => void; /** * @description This hook utilizes the react-native `AppState` listener to detect * when the app goes from background to foreground and updates the context state. * * @param setStateFunctions An object of type `TaplyticsProviderHooksArgs` which contains * functions to manipulate the context state. */ export declare const useAppStateListener: ({ setError, setIsLoading, setRunningFeatureFlags, setExperiments }: TaplyticsProviderHooksArgs) => void;