/* tslint:disable:all */ import "reflect-metadata"; import { IApplePayService } from "./../../lib/repository/IApplePayService"; import { IKushkiGateway } from "./../../lib/repository/IKushkiGateway"; import { AppleTokenResponse } from "./../../lib/types/apple_pay_get_token_events"; import { ApplePayGetTokenOptions } from "./../../lib/types/apple_pay_get_token_options"; import { ApplePayOptions } from "./../../lib/types/apple_pay_options"; import { ErrorResponse } from "./../../lib/types/error_response"; declare global { interface Window { ApplePaySession: any; } } /** * Implementation */ export declare class ApplePayService implements IApplePayService { private readonly _gateway; private readonly _appleSdkCdn; private readonly _appleSdkId; private readonly _appleButtonElement; private readonly _appleButtonContainer; private readonly _requiredMerchantCapabilities; private readonly _maxCompatibleVersion; constructor(gateway: IKushkiGateway); initApplePayButton(options: ApplePayOptions, mid: string, isTest: boolean, regional: boolean, onInit: () => void, onClick: () => void, onError: (error: ErrorResponse) => void): void; requestApplePayToken(options: ApplePayGetTokenOptions, mid: string, isTest: boolean, regional: boolean, callback: (value: AppleTokenResponse | ErrorResponse) => void, onCancel: () => void): void; private _validateAppleDomain; private _isNotPaymentAvailable; private _getSupportedApplePayVersion; private _loadAppleSdk; private _buildAppleButton; private _onValidateMerchant; private _onPaymentAuthorized; static getClientDomain(): string; }