import * as i0 from "@angular/core"; import { EnvironmentProviders, ModuleWithProviders } from "@angular/core"; import { DaffAuthorizeNetConfig, DaffAuthorizeNetPaymentDriverInterface, DaffAuthorizeNetService } from "@daffodil/authorizenet/driver"; import * as i1 from "@angular/common"; import { Observable } from "rxjs"; import { DaffAcceptJsLoadingService, DaffAuthorizeNetTokenRequest, DaffAuthorizenetPaymentRequest, DaffAuthorizenetPaymentResponse } from "@daffodil/authorizenet"; /** * @deprecated in favor of {@link provideDaffAuthorizeNetMagentoDriver} Deprecated in version 0.95.0. Will be removed in version 0.98.0. */ export declare class DaffMagentoAuthorizeNetDriverModule { static forRoot(config: DaffAuthorizeNetConfig): ModuleWithProviders; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * Provides the Magento implementations of the `@daffodil/authorizenet/driver` interfaces. * * Throws if `config` does not contain an `apiLoginID` and `clientKey`. */ export declare const provideDaffAuthorizeNetMagentoDriver: (config: DaffAuthorizeNetConfig) => EnvironmentProviders; export interface MagentoAuthorizeNetPayment { code: string; authorizenet_acceptjs: { cc_last_4: number; opaque_data_descriptor: string; opaque_data_value: string; }; } export declare const MAGENTO_AUTHORIZE_NET_PAYMENT_ID = "authorizenet_acceptjs"; export declare class DaffMagentoAuthorizeNetService implements DaffAuthorizeNetService { config: DaffAuthorizeNetConfig; private acceptJsLoader; constructor(config: DaffAuthorizeNetConfig, acceptJsLoader: DaffAcceptJsLoadingService); generateToken(paymentTokenRequest: DaffAuthorizeNetTokenRequest): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export declare class DaffMagentoAuthorizeNetPaymentService implements DaffAuthorizeNetPaymentDriverInterface { private authorizenetService; constructor(authorizenetService: DaffMagentoAuthorizeNetService); generateToken(request: DaffAuthorizenetPaymentRequest): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }