/** * BigCrunchRewarded - API for rewarded ads */ import type { RewardedAd, AdRequestOptions, AdEvent, AdEventListener, EventSubscription } from './types'; /** * Static API for BigCrunch rewarded ads * * @example * ```typescript * // Load a rewarded ad * await BigCrunchRewarded.load({ placementId: 'rewarded-extra-life' }); * * // Set up reward listener * BigCrunchRewarded.addEventListener( * 'rewarded-extra-life', * 'rewardEarned', * (event) => { * console.log(`User earned ${event.rewardAmount} ${event.rewardType}`); * } * ); * * // Show when ready * if (await BigCrunchRewarded.isLoaded('rewarded-extra-life')) { * await BigCrunchRewarded.show('rewarded-extra-life'); * } * ``` */ export declare class BigCrunchRewarded { private static instances; /** * Load a rewarded ad * * @param options - Ad request options including placementId */ static load(options: AdRequestOptions): Promise; /** * Show a loaded rewarded ad * * @param placementId - The placement ID of the ad to show */ static show(placementId: string): Promise; /** * Check if a rewarded ad is loaded and ready to show * * @param placementId - The placement ID to check */ static isLoaded(placementId: string): Promise; /** * Destroy a rewarded ad instance * * @param placementId - The placement ID of the ad to destroy */ static destroy(placementId: string): void; /** * Destroy all rewarded ad instances */ static destroyAll(): void; /** * Create a rewarded ad instance * Alternative to static methods for more control * * @param placementId - The placement ID for this ad */ static createAd(placementId: string): RewardedAd; /** * 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; /** * Convenience method to listen for reward earned events * * @param placementId - The placement ID to listen to * @param listener - Callback when user earns reward */ static onRewardEarned(placementId: string, listener: (reward: { rewardType: string; rewardAmount: number; }) => void): EventSubscription; } export default BigCrunchRewarded; //# sourceMappingURL=BigCrunchRewarded.d.ts.map