import { HttpHeaders, HttpClient } from '@angular/common/http'; import * as i0 from '@angular/core'; import { OnInit } from '@angular/core'; import { Observable } from 'rxjs'; type ThreeDsEnvironmentName = 'sandbox' | 'production'; interface ThreeDsEnvironment { readonly name: ThreeDsEnvironmentName; readonly sandboxMode: boolean; readonly baseUrl: string; } declare class UtilsService { sandboxMode: boolean; url: string | undefined; constructor(); setUrl(url: string): void; setSandboxMode(flag: boolean): void; getSandboxMode(): boolean; environmentURL(): string; getEnvironmentSnapshot(): ThreeDsEnvironment; getHeaders(): { headers: HttpHeaders; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface JwtRequest { cardAccNumber: string; amount: number; } interface ThreeDsScriptConfig { version: string; url: string; integrity: string; crossOrigin: 'anonymous' | 'use-credentials'; releaseDate?: string; } declare class ApiService { private http; private utils; constructor(http: HttpClient, utils: UtilsService); getJwt(jwtRequest: JwtRequest): Observable; getJwtForEnvironment(jwtRequest: JwtRequest, environment: ThreeDsEnvironment): Observable; getThreeDsConfig(environment: ThreeDsEnvironment): Observable; confirm(transactionTokenId: string, processorTransactionId: string): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface JwtResponse { jwt: string; } declare global { interface Window { songbird: any; } } declare class Netpay3dsService { private readonly utilsService; private readonly apiService; jwtRequest: JwtRequest; jwtResponse: JwtResponse; private readonly eventChannels; private readonly operationEnvironments; private readonly cardinalOperationQueues; private readonly songbirdLoader; constructor(utilsService: UtilsService, apiService: ApiService); ngOnInit(): void; init(callback: any): void; validate(successCallback: any): void; setUrl(url: string): void; setSandboxMode(flag: boolean): void; config(_this: any, amount: number, callback: any): void; setup(_this: any, data: JwtResponse, callback: any): void; proceed(_this: any, acsUrl: string, paReq: string, authenticationTransactionID: string, callback: any): void; canProceed(status: string, responseCode: number, acsUrl: string): boolean; test(): void; private setupCardinal; private continueAuthentication; private subscribeCardinalEvent; private getProcessorTransactionId; private readProcessorTransactionId; private decodeResponseJwtPayload; private decodeJwtPayload; private normalizeReferenceId; private mapBackendError; private rememberOperationEnvironment; private enqueueCardinalOperation; private getOperationEnvironment; private forgetOperationEnvironment; private invokeCallback; private reportError; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class Netpay3dsComponent implements OnInit { constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class TestViewComponent implements OnInit { constructor(); ngOnInit(): void; works(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class Netpay3dsModule { static forRoot(): { ngModule: typeof Netpay3dsModule; providers: (typeof Netpay3dsService)[]; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { Netpay3dsComponent, Netpay3dsModule, Netpay3dsService, TestViewComponent };