/*! * Convert JS SDK * Version 1.0.0 * Copyright(c) 2020 Convert Insights, Inc * License Apache-2.0 */ import { SystemEvents } from '../../../enums'; import { ContextInterface } from './context'; import { ConfigResponseData } from '../../../types'; export interface CoreInterface { data: ConfigResponseData; createContext(visitorId: string, visitorAttributes?: Record): ContextInterface; on(event: SystemEvents, fn: (args?: any, err?: any) => void): void; onReady(): Promise; }