import { SubscriptionResponse, ErrorResponse, SuccessResponse } from "frontblock-generic/Service"; import { Coin, AccountMap, TransactionMap } from "frontblock-generic/Types"; import { FrontblockApi } from "frontblock-generic/Api"; import { Payment, PaymentService } from "./PaymentService"; import { FrontblockConf } from "./Types"; export declare class Frontblock implements PaymentService, FrontblockApi { private subscriptionUIDs; private payments; private paymentStreams; private dollarValues; private dollarValueProvider; private apikey; private conf; private socket; constructor(conf: FrontblockConf); private updateSubscribers; private updateModifyDate; private handlePayment; private updateDollarValue; createUsdValuePayment(currency: C, amount: number): Promise | ErrorResponse>; createCryptoPayment(currency: C, amount: number): Promise | ErrorResponse>; getPayment(paymentID: string | Payment): Promise | ErrorResponse>; cancelPayment(paymentID: string | Payment): Promise; resolvePayment(paymentID: string | Payment): Promise; finalizePayment(paymentID: string | Payment): Promise; cancelStream(uid: string | SubscriptionResponse): Promise; streamPayments(callback: (payment: Payment) => void): Promise; subscribe(apikey: string, coin: C, account: AccountMap[C], callback: (tx: TransactionMap[C]) => void): Promise; unsubscribe(apikey: string, uid: string | SubscriptionResponse): Promise; }