/** * Available actions */ export declare enum GTMEventAction { SIGNUP_COMPLETED = "signup_completed", USER_VERIFIED = "user_verified", LOGIN_COMPLETED = "login_completed" } /** * Mapping between event action to event payload */ interface EventToPayloadMap { [GTMEventAction.SIGNUP_COMPLETED]: any; [GTMEventAction.USER_VERIFIED]: any; [GTMEventAction.LOGIN_COMPLETED]: any; } declare global { interface Window { onFronteggEvent: (action: GTMEventAction, payload: EventToPayloadMap[GTMEventAction]) => void; } } /** * Report GTM event by onFronteggEvent * onFronteggEvent is coming by the customer GTM tag * @param action action (like signup_completed) * @param payload */ export declare function reportGTMEvent(action: GTMEventAction, payload: EventToPayloadMap[GTMEventAction]): void; export {};