import { NativeEventEmitter } from 'react-native'; import type { AsyncHookResult } from './types'; /** * simple hook wrapper for async functions for 'on-mount / componentDidMount' that only need to fired once * @param asyncGetter async function that 'gets' something * @param initialResult -1 | false | 'unknown' */ export declare function useOnMount(asyncGetter: () => Promise, initialResult: T): AsyncHookResult; export declare const deviceInfoEmitter: NativeEventEmitter; /** * simple hook wrapper for handling events * @param eventName * @param initialValueAsyncGetter * @param defaultValue */ export declare function useOnEvent(eventName: string, initialValueAsyncGetter: () => Promise, defaultValue: T): AsyncHookResult;