import { EventInputType } from './models'; import { Environment, EventsTrackerInit } from './models/schemas/types'; export default class EventsManager { merchant: string; sessionLocal: boolean; env: Environment; userIdLocal: string; sourceLocal: string; /** * Method that allow 'instance' and object and makes an merchant id validation, validate and * retrieve their info like, id, country, name * @param apiKey * @param userId * @param source * @param environment */ constructor({ apiKey, userId, source, environment }: EventsTrackerInit); /** * Method that allow to a user 'authenticated' send events to rudderstack * @param eventName Event name that identified to the event * @param event Object that keeps all the transaction data */ sendEvent(event: EventInputType): void; isDeUnaIntegration(): boolean; hasSession(): boolean; getApiKey(): string; }