/** * BigCrunchInterstitial - API for interstitial ads */ import type { InterstitialAd, AdRequestOptions, AdEvent, AdEventListener, EventSubscription } from './types'; /** * Static API for BigCrunch interstitial ads * * @example * ```typescript * // Load an interstitial * await BigCrunchInterstitial.load({ placementId: 'interstitial-level-complete' }); * * // Show when ready * if (await BigCrunchInterstitial.isLoaded('interstitial-level-complete')) { * await BigCrunchInterstitial.show('interstitial-level-complete'); * } * ``` */ export declare class BigCrunchInterstitial { private static instances; /** * Load an interstitial ad * * @param options - Ad request options including placementId */ static load(options: AdRequestOptions): Promise; /** * Show a loaded interstitial ad * * @param placementId - The placement ID of the ad to show */ static show(placementId: string): Promise; /** * Check if an interstitial is loaded and ready to show * * @param placementId - The placement ID to check */ static isLoaded(placementId: string): Promise; /** * Destroy an interstitial instance * * @param placementId - The placement ID of the ad to destroy */ static destroy(placementId: string): void; /** * Destroy all interstitial instances */ static destroyAll(): void; /** * Create an interstitial ad instance * Alternative to static methods for more control * * @param placementId - The placement ID for this ad */ static createAd(placementId: string): InterstitialAd; /** * Add event listener for a specific placement * * @param placementId - The placement ID to listen to * @param eventType - The event type to listen for * @param listener - The callback function */ static addEventListener(placementId: string, eventType: T['type'], listener: AdEventListener): EventSubscription; } export default BigCrunchInterstitial; //# sourceMappingURL=BigCrunchInterstitial.d.ts.map