import { SubscriptionResponse, ErrorResponse, SuccessResponse } from "frontblock-generic/Service"; import { Coin, AccountMap, TransactionMap } from "frontblock-generic/Types"; import { Payment, PaymentService } from "./PaymentService"; import { FrontblockConf } from "./Types"; export declare class ServiceConf { publicPort: number; privatePort: number; constructor(publicPort: number, privatePort: number); } export declare class WebConf { httpPort: number; constructor(httpPort: number); } export declare class PaymentServer implements PaymentService { private publicSock; private publicWsServer; private privateSock; private privateWsServer; private frontBlock; private apikey; constructor(svcConf: ServiceConf, frontblockConf: FrontblockConf); private subscriptionHandlerGenerator; private streamHandlerGenerator; 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; streamPayments(callback: (payment: Payment) => void): Promise; cancelStream(uid: string | SubscriptionResponse): Promise; subscribe(currency: C, account: AccountMap[C], callback: (tx: TransactionMap[C]) => void): Promise; unsubscribe(uid: string | SubscriptionResponse): Promise; }