/** * Provides context and state management for NativeAdView and its child asset views. * Shares asset view refs and native ad data between internal components and the native SDK. */ import * as React from 'react'; import type { ReactNode } from 'react'; import type { Image, NativeMethods, Text, View } from 'react-native'; import type { NativeAd } from '../types/NativeAd'; import type { NativeProps } from '../specs/AppLovinMAXNativeAdViewNativeComponent'; /** * Native component type for the rendered NativeAdView. */ export type NativeAdViewType = React.Component & NativeMethods; type TextRef = React.ElementRef; type ImageRef = React.ElementRef; type ViewRef = React.ElementRef; /** * Context type used internally by NativeAdView. * Stores references to asset views and the current native ad data. */ export type NativeAdViewContextType = { titleRef: React.RefObject; advertiserRef: React.RefObject; bodyRef: React.RefObject; callToActionRef: React.RefObject; imageRef: React.RefObject; optionViewRef: React.RefObject; mediaViewRef: React.RefObject; nativeAd: NativeAd; setNativeAd: React.Dispatch>; }; /** * Internal context used by NativeAdView to provide access to asset view refs and native ad data. */ export declare const NativeAdViewContext: React.Context; /** * React provider that wraps components requiring access to NativeAdViewContext. */ export declare const NativeAdViewProvider: React.FC<{ children: ReactNode; }>; export {}; //# sourceMappingURL=NativeAdViewProvider.d.ts.map