import { ApolloClient } from "apollo-client"; export interface WidgetIdent { tenantAlias?: string; appDomain?: string; token?: string; userId?: string; accountId?: string; engagementMedium?: "POPUP" | "EMBED" | string; programId?: string; env?: string; } /** * Links up to Squatch.js running in the parent frame, and exposes an API for trigger things outside of the scope of a single widget. */ export interface SquatchJSApi { open(): any; close(): any; } export declare function widgetIdent(): WidgetIdent; declare const API: { version: string; analytics: { shareEvent(shareMedium: string): Promise; loadEvent(): Promise<{ event: string; }>; }; graphql: { getClient(): ApolloClient; getReferralCode(): Promise; getSegments(): any; getUserFragment(userFragment: any, fragmentVariables: any): any; getShareLink(): any; getMessageLinks(mediums: Array): any; getReferrals(offset?: number, limit?: number): any; getTokens(): any; exchangeReward(unit: string, rewardKey: string): any; getMessageLink(medium: string): any; }; ui: any; }; export { API }; /** * Key-value simple object */ export interface SimpleObject { [key: string]: any; }