import { Axios } from "axios"; import { JWK } from "jose"; import { IConsentByHandleResponse, IConsentByIdResponse, IConsentResponse, IConstentDetail, } from "./consent"; import { IFIFetchRequest, IFIFetchResponse, IFIRequest, IFIRequestResponse, IKeys, KeyMaterial, } from "./fi"; import { IResponse } from "./common"; import { Logger } from "pino"; interface IOptions { privateKey: JWK; httpClient: Axios; logger: Logger; } declare class AAClient { private _pvtKey; private _httpClient; private _logger; constructor(opts: IOptions); private _generateHeader; private _postRequest; generateDetachedJWS(payload: Record): Promise; verifySignature( payload: Record, signature: string, publicKey: JWK, ): Promise<{ isVerified: boolean; message?: string; }>; raiseConsent( baseUrl: string, token: string, consentDetail: IConstentDetail, publicKey: JWK, ): Promise>; getConsentByHandle( baseUrl: string, token: string, handle: string, publicKey: JWK, ): Promise>; getConsentById( baseUrl: string, token: string, id: string, publicKey: JWK, ): Promise>; raiseFIRequest( baseUrl: string, token: string, body: IFIRequest, keys: IKeys, publicKey: JWK, ): Promise<{ keys: IKeys; response: IResponse; }>; fetchFI( baseUrl: string, token: string, body: IFIFetchRequest, publicKey: JWK, ): Promise<{ response: IResponse; }>; generateRedirectUrl( url: string, ecReq: { txnid: string; sessionid: string; srcref: string[]; userid: string; redirect: string; fi: string; pan?: string; email?: string; dob?: string; fipid?: string[]; }, secret: string, ): Promise<{ url: string; reqdate: string; ecreq: string; fi: string; }>; getHeartBeat(baseUrl: string, token: string): Promise>; } export default AAClient;