import { Network } from '@dcl/schemas'; import { TransakConfig } from '../types'; import { OrderData } from './types'; export declare class Transak { private readonly sdk; private readonly address; constructor(config: TransakConfig, address: string, network: Network); /** * Uses the sdk to suscribe to changes in the status of the transaction and dispatch an action depending on each different state. * * @param network - Network in which the trasanctions will be done */ private suscribeToEvents; /** * Uses redux-saga channels to emit a message every time a transaction changes its status. * * @param orderData - Order entity that comes from the Transak SDK. * @param status - Status of the order. * @param Network - Network in which the transaction will be done. */ emitPurchaseEvent(orderData: OrderData, network: Network): void; private getPurchaseStatus; /** * Given the data of the order and its status, returns an object with the relevant information of the purchase. * * @param orderData - Order entity that comes from the Transak SDK. * @param status - Status of the order. */ private createPurchase; /** * Opens a widget using the init method of the Transak SDK. * * @param address - Address of the connected wallet. * @param network - Network in which the transaction will be done. */ openWidget(network: Network): void; }