import { type SwappedInboundMessage } from '@funkit/connect-core'; import { type ViewStyle } from 'react-native'; export interface SwappedWebViewProps { /** The selected FOP's `embeddedFlowUrl` (a swapped.com/.dev widget URL). */ url: string; /** Typed, origin-validated inbound messages from the embed. */ onMessage: (msg: SwappedInboundMessage) => void; /** * Android hardware back once the WebView has no page history left to pop — * the same destination as the embed's own `SWAPPED_GO_BACK`. */ onBack?: () => void; style?: ViewStyle; } /** * Renders the Swapped embedded payment flow in a `WebView` and bridges its * messages to the typed {@link SwappedTransport} contract — the React Native * counterpart of web's iframe. The {@link SWAPPED_WEBVIEW_INJECTED_JS} bridge * redirects the embed's `postMessage` to the native channel; `onMessage` is * parsed + origin-validated before reaching the handler. */ export declare function SwappedWebView({ url, onMessage, onBack, style, }: SwappedWebViewProps): import("react").JSX.Element; //# sourceMappingURL=SwappedWebView.d.ts.map