UNPKG

overcentric

Version:

Overcentric watches your website, product, and users - and tells you what matters and what to do about it.

29 lines (28 loc) 1.03 kB
import { CONFIG, log } from "./config"; import { Context, InitOptions, UserInfo } from "./types"; declare global { interface Window { overcentricProjectId?: string; overcentricInitialized?: boolean; overcentricContext?: Context | null; overcentricSessionId?: string; overcentricDeviceId?: string; overcentricUserIdentity?: any; } } export { CONFIG, log }; declare function test(): string; declare function init(id: string, options: InitOptions): Promise<void>; declare function identify(id: string, info?: UserInfo): void; declare function trackEvent(eventName: string, properties?: Record<string, any>, cb?: (() => void) | null): void; declare function setContext(ctx: Context): void; declare function isInitialized(): boolean; declare const _default: { test: typeof test; init: typeof init; identify: typeof identify; trackEvent: typeof trackEvent; setContext: typeof setContext; isInitialized: typeof isInitialized; }; export default _default;