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; /** * Ingestion host. Only change this if you run a self-hosted Nohmo, or to * point a test build at a local server. Matches the Flutter SDK's `host`. */ host?: string; } 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; /** The resolved Smart Link destination (e.g. "product/123"), or null if none. */ getDeepLink: () => string | null; /** Subscribe to Smart Link destinations (direct + deferred). Returns an unsubscribe. */ onDeepLink: (cb: (value: string) => void) => () => void; } 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 };