UNPKG

airbridge-react-native-sdk

Version:

Airbridge SDK for React Native

20 lines (19 loc) 1.01 kB
import { NativeEventEmitter } from 'react-native'; export declare const createDependency: { (): void; FetchModule(): { emitter: NativeEventEmitter; interactor: FetchInteractor; }; }; type FetchInteractor = { fetchDeviceUUID(promiseID: string, onSuccess: (deviceUUID: string) => void, onFailure: (message: string) => void): Promise<boolean>; fetchAirbridgeGeneratedUUID(promiseID: string, onSuccess: (airbridgeGeneratedUUID: string) => void, onFailure: (message: string) => void): Promise<boolean>; }; export type FetchModule = ReturnType<typeof createFetchModule>; export declare const createFetchModule: () => { fetchDeviceUUID: (onSuccess: (deviceUUID: string) => void, onFailure?: (error: Error) => void) => Promise<boolean>; fetchAirbridgeGeneratedUUID: (onSuccess: (airbridgeGeneratedUUID: string) => void, onFailure?: (error: Error) => void) => Promise<boolean>; isUninstallTrackingNotification: (notification: Record<string, any>) => boolean; }; export {};