import * as react_jsx_runtime from 'react/jsx-runtime'; import React from 'react'; interface NohmoStorage { getItem(key: string): Promise; setItem(key: string, value: string): Promise; } interface NohmoRNConfig { projectId: string; apiKey: string; appVersion?: string; flushInterval?: number; debug?: boolean; autoAppLifecycle?: boolean; /** * Automatically capture JS errors and crashes. Non-fatal errors are sent as * JS_ERROR; a fatal crash is persisted and reported as APP_CRASH on the next * app launch. Defaults to true. Catches JS-thread errors only (not native * crashes). Set false to disable. */ autoErrors?: boolean; storage?: NohmoStorage; } interface NohmoRNContextValue { send: (event: string, data?: Record) => void; trackScreenView: (screenName: string) => void; trackConversion: (slug: string, properties?: Record) => void; buildInviteLink: (opts?: { channel?: string; campaign?: string; source?: string; }) => Promise; linkUser: (userId: string, email?: string, meta?: Record) => Promise; registerPushToken: (token: string) => Promise; setInstallReferrer: (referrerString: string) => Promise; } interface NohmoProviderProps { children: React.ReactNode; projectId: string; apiKey: string; options?: Partial>; } declare function NohmoProvider({ children, projectId, apiKey, options, }: NohmoProviderProps): react_jsx_runtime.JSX.Element; declare function useNohmo(): NohmoRNContextValue; declare function useScreenView(screenName: string): void; export { NohmoProvider, NohmoRNConfig, NohmoRNContextValue, useNohmo, useScreenView };