import "globalpayments-lib/polyfills"; export * from "./enums"; export * from "./interfaces"; import { IBrowserData, IChallengeNotificationData, IChallengeWindowOptions, ICheckVersionRequestData, ICheckVersionResponseData, IInitiateAuthenticationRequestData, IInitiateAuthenticationResponseData, IMethodNotificationData } from "./interfaces"; /** * Retrieves client browser runtime data. */ export declare function getBrowserData(): IBrowserData; /** * Facilitates backend request to merchant integration to check the enrolled 3DS version for the consumer's card. * * @param endpoint Merchant integration endpoint responsible for performing the version check * @param data Request data to aid in version check request * @param headers The request headers * @throws When an error occurred during the request */ export declare function checkVersion(endpoint: string, data?: ICheckVersionRequestData, headers?: Record): Promise; /** * Facilitates backend request to merchant integration to initiate 3DS 2.0 authentication workflows with the consumer. * * @param endpoint Merchant integration endpoint responsible for initiating the authentication request * @param data Request data to aid in initiating authentication * @param headers The request headers * @throws When an error occurred during the request */ export declare function initiateAuthentication(endpoint: string, data: IInitiateAuthenticationRequestData, headers?: Record): Promise; /** * Handles response from merchant integration endpoint for the version check request. When a card is enrolled and a * method URL is present, a hidden iframe to the method URL will be created to handle device fingerprinting * requirements. * * @param data Version check data from merchant integration endpoint * @param options Configuration options for the method window * @throws When a card is not enrolled */ export declare function handle3dsVersionCheck(data: ICheckVersionResponseData, options?: IChallengeWindowOptions): Promise; /** * Handles response from merchant integration endpoint for initiating 3DS 2.0 authentication flows with consumer. If a * challenge is mandated, an iframe will be created for the issuer's necessary challenge URL. * * @param data Initiate authentication data from merchant integration endpoint * @param options Configuration options for the challenge window * @throws When a challenge is mandated but no challenge URL was supplied * @throws When an error occurred during the challenge request */ export declare function handleInitiateAuthentication(data: IInitiateAuthenticationResponseData, options: IChallengeWindowOptions): Promise; /** * Assists with notifying the parent window of challenge status * * @param data Raw data from the challenge notification * @param origin Target origin for the message. Default is `window.location.origin`. */ export declare function handleChallengeNotification(data: IChallengeNotificationData, origin?: string): void; /** * Assists with notifying the parent window of method status * * @param data Raw data from the method notification * @param origin Target origin for the message. Default is `window.location.origin`. */ export declare function handleMethodNotification(data: IMethodNotificationData, origin?: string): void;