/// import { APIGatewayEventDefaultAuthorizerContext } from 'aws-lambda/common/api-gateway'; import { Context } from 'aws-lambda/handler'; import { EventEmitter } from 'events'; import { IStructuredLog, ISindry } from './interfaces'; export declare class Sindry implements ISindry { private message; private contextTracker; private _event; private _context; private _blacklist; private canDeliverMessage; private defaultLogger; private _eventBus; constructor(); fatal: (msg: any, placeholder?: string) => void; error: (msg: any, placeholder?: string) => void; warn: (msg: any, placeholder?: string) => void; info: (msg: any, placeholder?: string) => void; debug: (msg: any, placeholder?: string) => void; trace: (msg: any, placeholder?: string) => void; /** * It takes a message, a level and a placeholder, and then it emits a broadcast message event with * the message and the level * @param [placeholder] - This is the name of the function that is logging the message. * @param msg - The message you want to log * @param level - The log level. */ private log; /** * 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; /** * It returns the message log structured ready foy use in a bd * @returns The structured message */ get structuredLog(): IStructuredLog; /** * It sets the event property of the class. * @param {APIGatewayEventDefaultAuthorizerContext} _event - The event that triggered the lambda function. */ set event(_event: APIGatewayEventDefaultAuthorizerContext); /** * It returns the event object. * @returns The event object */ get event(): APIGatewayEventDefaultAuthorizerContext; /** * It sets the context of the class. * @param {Context} _context - The context of the application. */ set context(_context: Context); /** * It returns the context of the current object. * @returns The context property is being returned. */ get context(): Context; /** * > This function sets the event and context objects, and then creates a new LambdaRequestTracker * object * @param {APIGatewayEventDefaultAuthorizerContext} event - The event parameter is the input to the handler. It is the * event data that triggered the function. * @param {Context} context - Context - The context object passed to the Lambda function. */ setTracker(event: APIGatewayEventDefaultAuthorizerContext, context: Context): void; /** * It returns the value of the private variable _blacklist. * @returns The value of the private variable _blacklist. */ get blacklist(): any[]; /** * It sets the blacklist property to the value of the element parameter. * @param {any} element - The element to be added to the blacklist. */ set blacklist(element: any[]); /** * It takes an object and an object of key/value pairs and returns true if the object contains a * key/value pair that matches one of the key/value pairs in the second object * @param {any} item - the item in the array of objects * @param response - The response object from the server. * @returns A boolean value. */ private checkBlackList; } //# sourceMappingURL=sindry.class.d.ts.map