/** * Google Mobile Ads plugin for displaying advertisements. * * @remarks * Handles banner ads, interstitial ads, rewarded ads, and privacy options. * Set ad unit IDs once via `setAdUnitId()`, then call load/show as normal. * * @example * ```ts * import { Ads } from '@yandeu/js-bridge/lib/plugins/ads.js' * * Ads.banner.setAdUnitId('ca-app-pub-XXXX/YYYY') * Ads.interstitial.setAdUnitId('ca-app-pub-XXXX/ZZZZ') * Ads.rewarded.setAdUnitId('ca-app-pub-XXXX/WWWW') * * await Ads.interstitial.load() * await Ads.interstitial.show() * ``` */ export declare const Ads: { /** * Check if privacy options are required. * @returns True if privacy options must be presented */ isPrivacyOptionsRequired(): Promise; /** Present the privacy options form */ presentPrivacyOptionsForm(): void; /** Reset consent */ resetConsent(): void; readonly banner: { /** Set the ad unit ID for banner ads */ setAdUnitId: (adUnitId: string) => void; /** Show a banner ad */ show: () => void; /** Dispose the banner ad */ dispose: () => void; }; readonly interstitial: { /** Set the ad unit ID for interstitial ads */ setAdUnitId: (adUnitId: string) => void; /** Load an interstitial ad */ load: () => Promise; /** * Show an interstitial ad. Resolves when the ad is dismissed or fails to display. * @returns `true` if the ad was shown and dismissed, `false` if no ad was loaded or it failed to show. */ show: () => Promise; }; readonly rewarded: { /** Set the ad unit ID for rewarded ads */ setAdUnitId: (adUnitId: string) => void; /** Load a rewarded ad */ load: () => Promise; /** * Show a rewarded ad. Resolves when the ad is dismissed or fails to display. * @returns `ok: true` with `payload` containing the reward amount if the user earned the reward, * `ok: false` if no ad was loaded, it failed to show, or the user dismissed without earning. */ show: () => Promise<{ ok: boolean; amount: number; }>; }; }; //# sourceMappingURL=ads.d.ts.map