import EventEmitter from 'eventemitter3'; export { CocoonAds } from './Providers/cocoon'; export { CordovaGamedistribution } from './Providers/cordova-gamedistribution'; export { CordovaGamedock } from './Providers/cordova-gamedock'; export { CordovaHeyzap } from './Providers/cordova-heyzap'; export { CordovaIronSource } from './Providers/cordova-ironsource'; export { GameDistribution, GameDistributionBannerSize, GameDistributionAlignment, GameDistributionBanner } from './Providers/gamedistribution'; export { Ima3 } from './Providers/ima3'; export { IProvider } from './Providers/ad-provider'; export declare enum AdEvents { CONTENT_PAUSED = "onContentPaused", CONTENT_RESUMED = "onContentResumed", AD_PROGRESSION = "onAdProgression", AD_DISABLED = "onAdsDisabled", AD_CLICKED = "onAdClicked", AD_REWARDED = "onAdRewardGranted", BANNER_SHOWN = "onBannerShown", BANNER_HIDDEN = "onBannerHidden", AD_LOADED = "onAdLoaded", AD_PROVIDER_LOADED = "onAdProviderLoaded" } export declare enum AdType { interstitial = 0, rewarded = 1, banner = 2 } export declare class H5AdWrapper extends EventEmitter { bannerActive: boolean; private provider; /** * Here we set an adprovider, any can be given as long as it implements the IProvider interface * * @param provider */ setAdProvider(provider: any): void; /** * Here we request an ad, the arguments passed depend on the provider used! * @param adType * @param args */ showAd(adType: AdType, ...args: any[]): void; createBanner(...args: any[]): any; loadBanner(...args: any[]): any; /** * Some providers might require you to preload an ad before showing it, that can be done here * * @param adType * @param args */ preloadAd(adType: AdType, ...args: any[]): void; /** * Some providers require you to destroy an add after it was shown, that can be done here. * * @param adType * @param args */ destroyAd(adType: AdType, ...args: any[]): void; /** * Some providers allow you to hide an ad, you might think of an banner ad that is shown in show cases * * @param adType * @param args */ hideAd(adType: AdType, ...args: any[]): void; /** * Checks if ads are enabled or blocked */ adsEnabled(): boolean; /** * Checks if ads are enabled or blocked * * @param adType * @param args */ adAvailable(adType: AdType, ...args: any[]): boolean; } export declare const adWrapper: H5AdWrapper; export as namespace h5ads;