import { VastAd, VastCreativeLinear, VastResponse } from '@dailymotion/vast-client'; import { PalNonceManager } from '@streamlayer/feature-gamification/externalAd'; /** * Get the first valid creative from an ad */ export declare const getCreative: (ad: VastAd) => VastCreativeLinear; /** * Get the URL of the first media file in the creative */ export declare const getMediaFileUrl: (creative?: VastCreativeLinear) => string; type AdData = { creative: VastCreativeLinear; order: number; mediaFileUrl?: string; ad: VastAd; raw: VastResponse; }; export type AdStore = { ads: AdData[]; autoplay: boolean; muted: boolean; adLoaded?: boolean; nonceManager?: PalNonceManager; key?: string; }; export declare const useVastAds: (externalGamUrl?: string, key?: string, container?: HTMLDivElement | null) => import('nanostores').PreinitializedWritableAtom & object; export {};