/// import { EventEmitter } from 'events'; import { ITransporter, ITransporterOptions } from './interfaces'; export declare class Transporter implements ITransporter { options: ITransporterOptions; private transporter; private externalTransporterOptions; private MAX_EVENT_FIRED; private EVENT_FIRED; private _eventBus; private _lambdaEvent; private _lambdaContext; private _lambdaErrorMessage; constructor(options?: ITransporterOptions); /** * The function listens to the event bus for a broadcast message, and when it receives one, it * checks if the error level is the same as the one specified in the options, and if it is, it * calls the transporter function * @returns the transporter function. */ private listen; /** * The function takes an event emitter as an argument and assigns it to the private variable * _eventBus * @param {EventEmitter} tevent - EventEmitter - This is the event emitter that will be used to * emit events to the transporter. */ set eventBus(tevent: EventEmitter); /** * It returns the event emitter. * @returns The EventEmitter object. */ get eventBus(): EventEmitter; /** * This function is used to register an external transporter * @param {any} externalTransporter - This is the transporter that you want to use. * @param externalTransporterOptions - This is an object that contains the options for the * transporter. */ register(externalTransporter: any, externalTransporterOptions?: {}): void; /** * It tries to create a new instance of the function, and if it fails, it checks if the error * message contains the string "is not a constructor" * @param fn - The function to check if it's a constructor. * @returns A boolean value. */ private isConstructor; } //# sourceMappingURL=transporter.class.d.ts.map