UNPKG

@linenext/dapp-portal-sdk

Version:

Dapp Portal SDK

16 lines (15 loc) 634 B
import { EventBannerType } from '../../ui/EventBanner'; import { DappPortalSDKConfig } from '../config/config'; import { EventBannerDto } from '../dto/EventDto'; export declare class BannerEventListner { private readonly config; constructor(config: DappPortalSDKConfig); private iframe?; private clickEvent?; private cancelEvent?; private eventListener?; setupListeners(type: EventBannerType, eventId: string): void; private clearListeners; reset(eventId: string): void; openBanner(eventId: string, eventBanner: EventBannerDto, clickEvent: () => void, closeEvent: () => void): Promise<void>; }