/// import { EventEmitter } from 'events'; import { ApplicationConfiguration } from './configuration'; import { Transaction } from './transaction'; import { CreateTransactionResponse } from './protos/types/transaction'; export declare const TRANSPORTER_EVENTS: { TRANSACTION_PUBLISH_SUCCESS: symbol; TRANSACTION_PUBLISH_ERROR: symbol; TRANSACTION_CANCELLED: symbol; CONNECTION_CREATED: symbol; CONNECTION_CLOSED: symbol; }; export interface TransactionPublishedPayload { callId: string; transaction: Transaction; } export interface TransactionErrorPayload { callId?: string; reason: string; transaction?: Transaction; } export interface TransactionCancelledPayload { transaction: Transaction; } export interface TransactionErrorPayload { callId?: string; reason: string; metadata?: any; details?: any; transaction?: Transaction; } export interface TransactionTransporter extends EventEmitter { start(): void; stop(): void; push(transaction: Transaction): void; } export declare class DefaultTransactionTransporter extends EventEmitter implements TransactionTransporter { static readonly PROCESS_INTERVAL = 1000; static readonly PROCESS_COUNT = 50; private config; private pendingTransactions; private processableTransactions; private processingTransactions; private interval; private call; private client; private checkCount; get isRunning(): boolean; constructor(config: ApplicationConfiguration); start(): void; stop(): void; push(transaction: Transaction): void; removeTransaction(transaction: Transaction | CreateTransactionResponse): void; private createCall; private processTransaction; private retryAll; private processList; }