import { AnalyticSession } from '../analytics'; import { BeatApi } from '../../core/api/BeatApi'; import { Beat } from '../../core/types/Beat'; export interface ErrPromise { then(onfulfilled?: ((value: TSuccess) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: TError) => TResult2 | PromiseLike) | undefined | null): Promise; catch(onrejected?: ((reason: TError) => TResult | PromiseLike) | undefined | null): Promise; } export declare class InsightsMicroWidgetStore { onAnalyticEvent: (event: string, session: AnalyticSession) => ErrPromise; onAnalyticPageView: (event: string, session: AnalyticSession) => ErrPromise; beatApi: BeatApi; constructor(); initialize: (endpoint: string, token: string, logOutUser: () => void) => Promise; updateBeat: (beat: Beat) => Promise; updateOffer: (beat: Beat) => Promise; }