import * as i0 from '@angular/core'; import { OnInit, OnChanges, ElementRef } from '@angular/core'; declare class GooglePayButtonComponent implements OnInit, OnChanges { private elementRef; private manager; paymentRequest: google.payments.api.PaymentDataRequest; environment: google.payments.api.Environment; existingPaymentMethodRequired: boolean; buttonColor?: google.payments.api.ButtonColor; buttonType?: google.payments.api.ButtonType; buttonRadius?: number; buttonSizeMode?: google.payments.api.ButtonSizeMode; buttonLocale?: string; buttonBorderType?: google.payments.api.ButtonBorderType; nonce?: string; paymentDataChangedCallback?: google.payments.api.PaymentDataChangedHandler; paymentAuthorizedCallback?: google.payments.api.PaymentAuthorizedHandler; readyToPayChangeCallback?: (result: any) => void; loadPaymentDataCallback?: (paymentData: google.payments.api.PaymentData) => void; cancelCallback?: (reason: google.payments.api.PaymentsError) => void; errorCallback?: (error: Error | google.payments.api.PaymentsError) => void; clickCallback?: (event: Event) => void; constructor(elementRef: ElementRef); get isReadyToPay(): boolean | undefined; ngOnInit(): Promise; ngOnChanges(): Promise; private initializeButton; private assertRequiredProperty; /** * Throws an error. * * Used for testing purposes so that the method can be spied on. */ private throwError; private dispatch; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class GooglePayButtonModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ interface ReadyToPayChangeResponse { isButtonVisible: boolean; isReadyToPay: boolean; paymentMethodPresent?: boolean; } export { GooglePayButtonComponent, GooglePayButtonModule }; export type { ReadyToPayChangeResponse };