master
ts 22 lines 817 Bytes
Raw
1 import { MobileAd, type MobileAdOptions } from "./common";
2 import { PluginListener } from "@tauri-apps/api/core";
3 export declare class RewardedAd extends MobileAd<RewardedAdOptions> {
4 static cls: string;
5 isLoaded(): Promise<unknown>;
6 load(): Promise<void>;
7 show(): Promise<void>;
8 onRewarded(handler: (payload: any) => void): Promise<PluginListener>;
9 }
10 export declare function onRewarded(handler: (payload: any) => void): Promise<PluginListener>;
11 export declare class RewardedInterstitialAd extends MobileAd<RewardedAdOptions> {
12 static cls: string;
13 isLoaded(): Promise<unknown>;
14 load(): Promise<void>;
15 show(): Promise<void>;
16 }
17 export interface RewardedAdOptions extends MobileAdOptions {
18 serverSideVerification?: {
19 userId?: string;
20 customData?: string;
21 };
22 }