import * as React from 'react' ; import { SqVerificationDetails , SqError , SqVerificationResult } from './models' ; export interface ContextInterface { /** Apple pay state*/ applePayState ? : 'loading' | 'unavailable' | 'ready' ; /** Unique form ID */ formId ? : string ; /** Google pay state*/ googlePayState ? : 'loading' | 'unavailable' | 'ready' ; /** Masterpass state */ masterpassState ? : 'loading' | 'unavailable' | 'ready' ; /** Function that is called to create a nonce */ onCreateNonce ? : ( ) => void ; /** Function that is called to verify the buyer */ onVerifyBuyer ? : ( source : string , verificationDetails : SqVerificationDetails , callback : ( err : SqError , verificationResult : SqVerificationResult ) => void ) => void ; } /**
 * Internal helper that the `SquarePaymentForm` uses to manage internal state and expose access to the SqPaymentForm library.
 *
 * This is available for developers who require more customization over their payment form implementation. Please refer to the
 * [customization](customization.md) page for usage details.
 */ export const Context = React . createContext ( { applePayState : 'loading' , formId : '' , googlePayState : 'loading' , masterpassState : 'loading' , onCreateNonce : ( ) => { } , onVerifyBuyer : ( source , verificationDetails , callback ) => { } , } ) ; export default Context ;