import React from 'react'; import { WithStyles } from './CoinflowWebView'; import { CoinflowPurchaseProps, WithGeo } from './common'; export type CoinflowApplePayButtonProps = CoinflowPurchaseProps & WithStyles & WithGeo & { /** Background color of the Apple Pay button. Defaults to `black`. */ color?: 'white' | 'black'; /** Fires once the purchase completes, with the resulting payment. */ onApprove?: (info: { paymentId: string; }) => void; /** Fires if the purchase fails, with the error message. */ onError?: (error: string) => void; /** Called once the button has loaded. */ onLoad?: () => void; }; /** * Standalone Apple Pay button for the React Native SDK. * * Renders the hosted `/apple-pay/:merchantId` button page inside a WebView and, * unlike {@link CoinflowPurchase}, shows only the Apple Pay button rather than * the full checkout. Mirrors the web `CoinflowApplePayButton`: an Apple Pay * logo overlay is rendered permanently above the WebView and passes touches * through to it, so the button appears instantly and there is no visual change * when the hosted page finishes loading. * * Apple Pay only works on a real iOS device — it will not run in the simulator. */ export declare function CoinflowApplePayButton(props: CoinflowApplePayButtonProps): React.JSX.Element; export declare function AppleButtonOverlayLogo({ color, }: Pick): React.JSX.Element;