import { BigNumber } from "ethers/utils"; /** * Successful payment result includes the amount (wei) locked and the remaining current balance. * Otherwise, if it fails, the current balance is included (and although no coins are locked we include * the minimum balance that would be required so that a caller can verify their balance is less than that). */ export interface PaymentResultSerialisation { /** Minimum balance required to accept the transaction */ readonly minimumBalance: string; /** Balance that can be spent by the user */ readonly currentBalance: string; } export interface AccountBalanceSerialisation { /** Balance that can be spent by the user */ readonly balance: string; } /** * Request object supplemented with a log */ export declare class PaymentGatewayRoutes { /** API route to call balance */ static readonly BALANCE_ROUTE = "balance"; /** API route to call spend */ static readonly SPEND_ROUTE = "spend"; } export declare class PaymentResult { readonly minimumBalance: BigNumber; readonly currentBalance: BigNumber; /** * Records whether the payment was accepted by any.sender and the quantity of wei locked up. * @param minimumBalance Minimum balance required to issue transaction * @param currentBalance Balance that can be spent by the user */ constructor(minimumBalance: BigNumber, currentBalance: BigNumber); /** * Serializes the payment result */ serialise(): PaymentResultSerialisation; /** * Deserializes the payment result * @param serialisation Serialised Payment Result */ static deserialise(serialisation: PaymentResultSerialisation): PaymentResult; } //# sourceMappingURL=paymentResult.d.ts.map